Documentation
¶
Index ¶
- func NewSet(set string, db database.DB, logger *zap.Logger) (map[string]Provisioner, error)
- type Allocation
- type KubernetesProvisioner
- func (p *KubernetesProvisioner) AwaitReady(ctx context.Context, provisionID string) error
- func (p *KubernetesProvisioner) CheckCapacity(ctx context.Context) error
- func (p *KubernetesProvisioner) Deprovision(ctx context.Context, provisionID string) error
- func (p *KubernetesProvisioner) Provision(ctx context.Context, opts *ProvisionOptions) (*Allocation, error)
- func (p *KubernetesProvisioner) Update(ctx context.Context, provisionID, newVersion string) error
- type KubernetesSpec
- type KubernetesTemplatePaths
- type ProvisionOptions
- type Provisioner
- type ProvisionerSpec
- type ResourceNames
- type StaticProvisioner
- func (p *StaticProvisioner) AwaitReady(ctx context.Context, provisionID string) error
- func (p *StaticProvisioner) CheckCapacity(ctx context.Context) error
- func (p *StaticProvisioner) Deprovision(ctx context.Context, provisionID string) error
- func (p *StaticProvisioner) Provision(ctx context.Context, opts *ProvisionOptions) (*Allocation, error)
- func (p *StaticProvisioner) Update(ctx context.Context, provisionID, newVersion string) error
- type StaticRuntimeSpec
- type StaticSpec
- type TemplateData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Allocation ¶ added in v0.24.3
type KubernetesProvisioner ¶ added in v0.43.0
type KubernetesProvisioner struct {
Spec *KubernetesSpec
// contains filtered or unexported fields
}
func NewKubernetes ¶ added in v0.43.0
func NewKubernetes(spec json.RawMessage) (*KubernetesProvisioner, error)
func (*KubernetesProvisioner) AwaitReady ¶ added in v0.43.0
func (p *KubernetesProvisioner) AwaitReady(ctx context.Context, provisionID string) error
func (*KubernetesProvisioner) CheckCapacity ¶ added in v0.43.0
func (p *KubernetesProvisioner) CheckCapacity(ctx context.Context) error
func (*KubernetesProvisioner) Deprovision ¶ added in v0.43.0
func (p *KubernetesProvisioner) Deprovision(ctx context.Context, provisionID string) error
func (*KubernetesProvisioner) Provision ¶ added in v0.43.0
func (p *KubernetesProvisioner) Provision(ctx context.Context, opts *ProvisionOptions) (*Allocation, error)
type KubernetesSpec ¶ added in v0.43.0
type KubernetesSpec struct {
Host string `json:"host"`
Image string `json:"image"`
DataDir string `json:"data_dir"`
Namespace string `json:"namespace"`
TimeoutSeconds int `json:"timeout_seconds"`
KubeconfigPath string `json:"kubeconfig_path"`
TemplatePaths *KubernetesTemplatePaths `json:"template_paths"`
}
type KubernetesTemplatePaths ¶ added in v0.43.0
type ProvisionOptions ¶
type Provisioner ¶
type Provisioner interface {
Provision(ctx context.Context, opts *ProvisionOptions) (*Allocation, error)
Deprovision(ctx context.Context, provisionID string) error
AwaitReady(ctx context.Context, provisionID string) error
Update(ctx context.Context, provisionID string, newVersion string) error
CheckCapacity(ctx context.Context) error
}
type ProvisionerSpec ¶ added in v0.43.0
type ProvisionerSpec struct {
Type string `json:"type"`
Spec json.RawMessage `json:"spec"`
}
type ResourceNames ¶ added in v0.43.0
type StaticProvisioner ¶ added in v0.26.0
type StaticProvisioner struct {
Spec *StaticSpec
// contains filtered or unexported fields
}
func NewStatic ¶
func NewStatic(spec json.RawMessage, db database.DB, logger *zap.Logger) (*StaticProvisioner, error)
func (*StaticProvisioner) AwaitReady ¶ added in v0.43.0
func (p *StaticProvisioner) AwaitReady(ctx context.Context, provisionID string) error
func (*StaticProvisioner) CheckCapacity ¶ added in v0.43.0
func (p *StaticProvisioner) CheckCapacity(ctx context.Context) error
func (*StaticProvisioner) Deprovision ¶ added in v0.43.0
func (p *StaticProvisioner) Deprovision(ctx context.Context, provisionID string) error
func (*StaticProvisioner) Provision ¶ added in v0.26.0
func (p *StaticProvisioner) Provision(ctx context.Context, opts *ProvisionOptions) (*Allocation, error)
type StaticRuntimeSpec ¶ added in v0.26.0
type StaticSpec ¶ added in v0.26.0
type StaticSpec struct {
Runtimes []*StaticRuntimeSpec `json:"runtimes"`
}
Click to show internal directories.
Click to hide internal directories.