Documentation
¶
Index ¶
- func BuildCompose(conf BuildComposeConfig) (string, error)
- func BuildPrometheus(conf BuildPrometheusConfig) (string, error)
- func NewCluster(name, workdir string, logger logger.Logger) (runtime.Runtime, error)
- type BuildComposeConfig
- type BuildPrometheusConfig
- type Cluster
- func (c *Cluster) Down(ctx context.Context) error
- func (c *Cluster) Install(ctx context.Context) error
- func (c *Cluster) ListBinaries(ctx context.Context, actual bool) ([]string, error)
- func (c *Cluster) ListImages(ctx context.Context, actual bool) ([]string, error)
- func (c *Cluster) Logs(ctx context.Context, name string, out io.Writer) error
- func (c *Cluster) LogsFollow(ctx context.Context, name string, out io.Writer) error
- func (c *Cluster) Start(ctx context.Context, name string) error
- func (c *Cluster) Stop(ctx context.Context, name string) error
- func (c *Cluster) Uninstall(ctx context.Context) error
- func (c *Cluster) Up(ctx context.Context) error
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)
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 Cluster ¶
func (*Cluster) ListBinaries ¶
ListBinaries list binaries in the cluster
func (*Cluster) ListImages ¶
ListImages list images in the cluster
func (*Cluster) LogsFollow ¶
Click to show internal directories.
Click to hide internal directories.