kube

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2020 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeCli

type KubeCli struct {
	// contains filtered or unexported fields
}

func NewCli

func NewCli(conf config.KubeConfig) (*KubeCli, error)

func (KubeCli) Close added in v0.1.6

func (kube KubeCli) Close() error

func (KubeCli) Exec

func (kube KubeCli) Exec(ctx context.Context, c types.Container) (types.TTY, error)

func (KubeCli) GetInfo

func (kube KubeCli) GetInfo(ctx context.Context, cid string) types.Container

func (KubeCli) List

func (kube KubeCli) List(ctx context.Context) []types.Container

func (KubeCli) Logs added in v0.1.7

func (kube KubeCli) Logs(ctx context.Context, opts types.LogOptions) (io.ReadCloser, error)

func (KubeCli) Restart

func (kube KubeCli) Restart(ctx context.Context, cid string) error

func (KubeCli) Start

func (kube KubeCli) Start(ctx context.Context, cid string) error

func (KubeCli) Stop

func (kube KubeCli) Stop(ctx context.Context, cid string) error

Jump to

Keyboard shortcuts

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