Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provisioner ¶
type Provisioner interface { CreateWorker(ctx context.Context, args WorkerArgs) (Worker, error) ListWorkers(ctx context.Context) ([]Worker, error) DeleteWorker(ctx context.Context, workerID string) error }
Provisioner is an interface declaring what methods are required for a provisioner.
func NewK8sProvisioner ¶
NewK8sProvisioner returns a new Provisioner implementation that targets Kubernetes using a specific Kubernetes namespace and REST config.
type Worker ¶
type Worker struct { WorkerID string `json:"workerId"` Name string `json:"name"` Status workermodel.Status `json:"status"` CreatedAt time.Time `json:"createdAt"` }
Worker contains the data of a worker, an abstraction over k8s pods which is rougly comparable to a group of Docker containers sharing namespaces/volumes.
Click to show internal directories.
Click to hide internal directories.