compose

package
v0.0.1-alpha.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2022 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCompose

func BuildCompose(conf BuildComposeConfig) (string, error)

func BuildPrometheus

func BuildPrometheus(conf BuildPrometheusConfig) (string, error)

func NewCluster

func NewCluster(name, workdir string, logger logger.Logger) (runtime.Runtime, error)

Types

type BuildComposeConfig

type BuildComposeConfig struct {
	ProjectName string

	PrometheusImage            string
	EtcdImage                  string
	KubeApiserverImage         string
	KubeControllerManagerImage string
	KubeSchedulerImage         string
	KwokControllerImage        string

	PrometheusPath          string
	AdminKeyPath            string
	AdminCertPath           string
	CACertPath              string
	KubeconfigPath          string
	InClusterAdminKeyPath   string
	InClusterAdminCertPath  string
	InClusterCACertPath     string
	InClusterKubeconfigPath string
	InClusterEtcdDataPath   string
	InClusterPrometheusPath string

	SecretPort bool
	QuietPull  bool

	ApiserverPort  uint32
	PrometheusPort uint32

	RuntimeConfig string
	FeatureGates  string
}

type BuildPrometheusConfig

type BuildPrometheusConfig struct {
	ProjectName  string
	SecretPort   bool
	AdminCrtPath string
	AdminKeyPath string
}

type Cluster

type Cluster struct {
	*runtime.Cluster
}

func (*Cluster) Down

func (c *Cluster) Down(ctx context.Context) error

func (*Cluster) Install

func (c *Cluster) Install(ctx context.Context) error

func (*Cluster) ListBinaries

func (c *Cluster) ListBinaries(ctx context.Context, actual bool) ([]string, error)

ListBinaries list binaries in the cluster

func (*Cluster) ListImages

func (c *Cluster) ListImages(ctx context.Context, actual bool) ([]string, error)

ListImages list images in the cluster

func (*Cluster) Logs

func (c *Cluster) Logs(ctx context.Context, name string, out io.Writer) error

func (*Cluster) LogsFollow

func (c *Cluster) LogsFollow(ctx context.Context, name string, out io.Writer) error

func (*Cluster) Start

func (c *Cluster) Start(ctx context.Context, name string) error

func (*Cluster) Stop

func (c *Cluster) Stop(ctx context.Context, name string) error

func (*Cluster) Uninstall

func (c *Cluster) Uninstall(ctx context.Context) error

func (*Cluster) Up

func (c *Cluster) Up(ctx context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳