k8s

package
v0.0.0-...-14b4a77 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sExecutor

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

func New

func New(kubeConfigPath string) (*K8sExecutor, error)

func (*K8sExecutor) Exists

func (e *K8sExecutor) Exists(ctx context.Context, id string) (bool, error)

func (*K8sExecutor) GetState

func (e *K8sExecutor) GetState(ctx context.Context, w entity.Workload) (entity.JobState, error)

func (*K8sExecutor) List

func (e *K8sExecutor) List(ctx context.Context) ([]common.WorkloadInfo, error)

func (*K8sExecutor) Remove

func (e *K8sExecutor) Remove(ctx context.Context, w entity.Workload) error

func (*K8sExecutor) Run

func (*K8sExecutor) Start

func (e *K8sExecutor) Start(ctx context.Context, id string) error

func (*K8sExecutor) Stop

func (e *K8sExecutor) Stop(ctx context.Context, id string) error

Jump to

Keyboard shortcuts

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