kucli

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KuCli

type KuCli interface {
	ApiConfig() api.Config

	GetNamespaces(ctx context.Context) ([]coreV1.Namespace, error)

	GetPods(ctx context.Context, namespace string) ([]coreV1.Pod, error)
	GetPod(ctx context.Context, namespace, podName string) (*coreV1.Pod, error)
	DeletePod(ctx context.Context, namespace, podName string) error
	TailLogs(ctx context.Context, namespace, podName string, tailLines int64) ([]string, error)
	TailfLogs(ctx context.Context, namespace, podName string, tailLines int64) (chan string, error)
	ExecPod(ctx context.Context, namespace, pod string, in io.Reader, out io.Writer) error

	GetDeployments(ctx context.Context, namespace string) ([]appV1.Deployment, error)
	GetDeployment(ctx context.Context, namespace, deployment string) (*appV1.Deployment, error)
	UpdateDeployment(ctx context.Context, namespace string, deployment *appV1.Deployment) (*appV1.Deployment, error)

	GetServices(ctx context.Context, namespace string) ([]coreV1.Service, error)
	GetService(ctx context.Context, namespace, deployment string) (*coreV1.Service, error)
}

func NewLocalCli

func NewLocalCli() KuCli

Jump to

Keyboard shortcuts

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