binary

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: 26 Imported by: 1

Documentation

Overview

Package binary implements the runtime.Runtime interface using the binaries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildPrometheus

func BuildPrometheus(conf BuildPrometheusConfig) (string, error)

func NewCluster

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

Types

type BuildPrometheusConfig

type BuildPrometheusConfig struct {
	ProjectName               string
	SecurePort                bool
	AdminCrtPath              string
	AdminKeyPath              string
	PrometheusPort            uint32
	EtcdPort                  uint32
	KubeApiserverPort         uint32
	KubeControllerManagerPort uint32
	KubeSchedulerPort         uint32
	KwokControllerPort        uint32
}

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) 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) Uninstall added in v0.1.0

func (c *Cluster) Uninstall(ctx context.Context) 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