kind

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: Apache-2.0 Imports: 13 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 BuildKwokControllerDeployment

func BuildKwokControllerDeployment(conf BuildKwokControllerDeploymentConfig) (string, error)

func BuildPrometheusDeployment

func BuildPrometheusDeployment(conf BuildPrometheusDeploymentConfig) (string, error)

func NewCluster

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

Types

type BuildKindConfig

type BuildKindConfig struct {
	KubeApiserverPort uint32
	PrometheusPort    uint32

	RuntimeConfig []string
	FeatureGates  []string

	AuditPolicy string
	AuditLog    string
}

type BuildKwokControllerDeploymentConfig

type BuildKwokControllerDeploymentConfig 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) 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) 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, name string) error

func (*Cluster) Stop

func (c *Cluster) Stop(ctx context.Context, name string) 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 🇻🇳