kind

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: Apache-2.0 Imports: 22 Imported by: 1

Documentation

Index

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)

func NewCluster

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

Types

type BuildKindConfig

type BuildKindConfig struct {
	KubeApiserverPort uint32
	PrometheusPort    uint32

	RuntimeConfig []string
	FeatureGates  []string

	AuditPolicy string
	AuditLog    string

	KubeconfigPath  string
	SchedulerConfig string
	ConfigPath      string
}

type BuildKwokControllerPodConfig added in v0.1.0

type BuildKwokControllerPodConfig struct {
	KwokControllerImage     string
	KwokControllerImageName string
	KwokControllerImageTag  string
	Name                    string
}

type BuildPrometheusDeploymentConfig

type BuildPrometheusDeploymentConfig struct {
	PrometheusImage string
	Name            string
}

type Cluster

type Cluster struct {
	*runtime.Cluster
}

func (*Cluster) Down

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

func (*Cluster) EtcdctlInCluster added in v0.1.0

func (c *Cluster) EtcdctlInCluster(ctx context.Context, stm exec.IOStreams, args ...string) error

EtcdctlInCluster implements the ectdctl subcommand

func (*Cluster) Install

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

func (*Cluster) ListBinaries

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

ListBinaries list binaries in the cluster

func (*Cluster) ListImages

func (c *Cluster) ListImages(ctx context.Context) ([]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) Ready added in v0.1.0

func (c *Cluster) Ready(ctx context.Context) (bool, error)

func (*Cluster) SnapshotRestore

func (c *Cluster) SnapshotRestore(ctx context.Context, path string) error

SnapshotRestore restore the snapshot of cluster

func (*Cluster) SnapshotSave

func (c *Cluster) SnapshotSave(ctx context.Context, path string) error

SnapshotSave save the snapshot of cluster

func (*Cluster) Start

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

func (*Cluster) StartComponent added in v0.1.0

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

func (*Cluster) Stop

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

func (*Cluster) StopComponent added in v0.1.0

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

func (*Cluster) Up

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

func (*Cluster) WaitReady added in v0.1.0

func (c *Cluster) WaitReady(ctx context.Context, timeout time.Duration) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL