Documentation ¶
Index ¶
- func BuildKind(conf BuildKindConfig) (string, error)
- func BuildKwokControllerPod(conf BuildKwokControllerPodConfig) (string, error)
- func BuildPrometheusDeployment(conf BuildPrometheusDeploymentConfig) (string, error)
- func NewCluster(name, workdir string) (runtime.Runtime, error)
- type BuildKindConfig
- type BuildKwokControllerPodConfig
- type BuildPrometheusDeploymentConfig
- type Cluster
- func (c *Cluster) Down(ctx context.Context) error
- func (c *Cluster) EtcdctlInCluster(ctx context.Context, stm exec.IOStreams, args ...string) error
- func (c *Cluster) Install(ctx context.Context) error
- func (c *Cluster) ListBinaries(ctx context.Context) ([]string, error)
- func (c *Cluster) ListImages(ctx context.Context) ([]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) Ready(ctx context.Context) (bool, error)
- func (c *Cluster) SnapshotRestore(ctx context.Context, path string) error
- func (c *Cluster) SnapshotSave(ctx context.Context, path string) error
- func (c *Cluster) Start(ctx context.Context) error
- func (c *Cluster) StartComponent(ctx context.Context, name string) error
- func (c *Cluster) Stop(ctx context.Context) error
- func (c *Cluster) StopComponent(ctx context.Context, name string) error
- func (c *Cluster) Up(ctx context.Context) error
- func (c *Cluster) WaitReady(ctx context.Context, timeout time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildKind ¶
func BuildKind(conf BuildKindConfig) (string, error)
func BuildKwokControllerPod ¶ added in v0.1.0
func BuildKwokControllerPod(conf BuildKwokControllerPodConfig) (string, error)
func BuildPrometheusDeployment ¶
func BuildPrometheusDeployment(conf BuildPrometheusDeploymentConfig) (string, error)
Types ¶
type BuildKindConfig ¶
type BuildKwokControllerPodConfig ¶ added in v0.1.0
type Cluster ¶
func (*Cluster) EtcdctlInCluster ¶ added in v0.1.0
EtcdctlInCluster implements the ectdctl subcommand
func (*Cluster) ListBinaries ¶
ListBinaries list binaries in the cluster
func (*Cluster) ListImages ¶
ListImages list images in the cluster
func (*Cluster) LogsFollow ¶
func (*Cluster) SnapshotRestore ¶
SnapshotRestore restore the snapshot of cluster
func (*Cluster) SnapshotSave ¶
SnapshotSave save the snapshot of cluster
func (*Cluster) StartComponent ¶ added in v0.1.0
func (*Cluster) StopComponent ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.