kind

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: 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 BuildKwokControllerDeploy

func BuildKwokControllerDeploy(conf BuildKwokControllerDeployConfig) (string, error)

func BuildPrometheusDeploy

func BuildPrometheusDeploy(conf BuildPrometheusDeployConfig) (string, error)

func NewCluster

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

Types

type BuildKindConfig

type BuildKindConfig struct {
	ApiserverPort  uint32
	PrometheusPort uint32

	RuntimeConfig []string
	FeatureGates  []string
}

type BuildKwokControllerDeployConfig

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

type BuildPrometheusDeployConfig

type BuildPrometheusDeployConfig 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) 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 🇻🇳