Documentation
¶
Index ¶
- type K8sExecutor
- func (e *K8sExecutor) Exists(ctx context.Context, id string) (bool, error)
- func (e *K8sExecutor) GetState(ctx context.Context, w entity.Workload) (entity.JobState, error)
- func (e *K8sExecutor) List(ctx context.Context) ([]common.WorkloadInfo, error)
- func (e *K8sExecutor) Remove(ctx context.Context, w entity.Workload) error
- func (e *K8sExecutor) Run(ctx context.Context, w entity.Workload) error
- func (e *K8sExecutor) Start(ctx context.Context, id string) error
- func (e *K8sExecutor) Stop(ctx context.Context, id string) error
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) List ¶
func (e *K8sExecutor) List(ctx context.Context) ([]common.WorkloadInfo, error)
Click to show internal directories.
Click to hide internal directories.