Documentation ¶
Index ¶
- func NewStatic(spec []byte, db database.DB, logger *zap.Logger) (provisioner.Provisioner, error)
- type StaticProvisioner
- func (p *StaticProvisioner) AwaitReady(ctx context.Context, r *provisioner.Resource) error
- func (p *StaticProvisioner) Check(ctx context.Context) error
- func (p *StaticProvisioner) CheckResource(ctx context.Context, r *provisioner.Resource, ...) (*provisioner.Resource, error)
- func (p *StaticProvisioner) Close() error
- func (p *StaticProvisioner) Deprovision(ctx context.Context, r *provisioner.Resource) error
- func (p *StaticProvisioner) Provision(ctx context.Context, r *provisioner.Resource, ...) (*provisioner.Resource, error)
- func (p *StaticProvisioner) Type() string
- type StaticRuntimeSpec
- type StaticSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStatic ¶
func NewStatic(spec []byte, db database.DB, logger *zap.Logger) (provisioner.Provisioner, error)
Types ¶
type StaticProvisioner ¶
type StaticProvisioner struct { Spec *StaticSpec // contains filtered or unexported fields }
func (*StaticProvisioner) AwaitReady ¶
func (p *StaticProvisioner) AwaitReady(ctx context.Context, r *provisioner.Resource) error
func (*StaticProvisioner) CheckResource ¶
func (p *StaticProvisioner) CheckResource(ctx context.Context, r *provisioner.Resource, opts *provisioner.ResourceOptions) (*provisioner.Resource, error)
func (*StaticProvisioner) Close ¶
func (p *StaticProvisioner) Close() error
func (*StaticProvisioner) Deprovision ¶
func (p *StaticProvisioner) Deprovision(ctx context.Context, r *provisioner.Resource) error
func (*StaticProvisioner) Provision ¶
func (p *StaticProvisioner) Provision(ctx context.Context, r *provisioner.Resource, opts *provisioner.ResourceOptions) (*provisioner.Resource, error)
func (*StaticProvisioner) Type ¶
func (p *StaticProvisioner) Type() string
type StaticRuntimeSpec ¶
type StaticSpec ¶
type StaticSpec struct {
Runtimes []*StaticRuntimeSpec `json:"runtimes"`
}
Click to show internal directories.
Click to hide internal directories.