provisioner

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IProvisioner added in v0.12.0

type IProvisioner interface {
	CreateProject(project *workspace.Project, target *provider.ProviderTarget) error
	CreateWorkspace(workspace *workspace.Workspace, target *provider.ProviderTarget) error
	DestroyProject(project *workspace.Project, target *provider.ProviderTarget) error
	DestroyWorkspace(workspace *workspace.Workspace, target *provider.ProviderTarget) error
	GetWorkspaceInfo(workspace *workspace.Workspace, target *provider.ProviderTarget) (*workspace.WorkspaceInfo, error)
	StartProject(project *workspace.Project, target *provider.ProviderTarget) error
	StartWorkspace(workspace *workspace.Workspace, target *provider.ProviderTarget) error
	StopProject(project *workspace.Project, target *provider.ProviderTarget) error
	StopWorkspace(workspace *workspace.Workspace, target *provider.ProviderTarget) error
}

func NewProvisioner

func NewProvisioner(config ProvisionerConfig) IProvisioner

type Provisioner

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

func (*Provisioner) CreateProject

func (p *Provisioner) CreateProject(project *workspace.Project, target *provider.ProviderTarget) error

func (*Provisioner) CreateWorkspace

func (p *Provisioner) CreateWorkspace(workspace *workspace.Workspace, target *provider.ProviderTarget) error

func (*Provisioner) DestroyProject

func (p *Provisioner) DestroyProject(project *workspace.Project, target *provider.ProviderTarget) error

func (*Provisioner) DestroyWorkspace

func (p *Provisioner) DestroyWorkspace(workspace *workspace.Workspace, target *provider.ProviderTarget) error

func (*Provisioner) GetWorkspaceInfo

func (p *Provisioner) GetWorkspaceInfo(workspace *workspace.Workspace, target *provider.ProviderTarget) (*workspace.WorkspaceInfo, error)

func (*Provisioner) StartProject

func (p *Provisioner) StartProject(project *workspace.Project, target *provider.ProviderTarget) error

func (*Provisioner) StartWorkspace

func (p *Provisioner) StartWorkspace(workspace *workspace.Workspace, target *provider.ProviderTarget) error

func (*Provisioner) StopProject

func (p *Provisioner) StopProject(project *workspace.Project, target *provider.ProviderTarget) error

func (*Provisioner) StopWorkspace

func (p *Provisioner) StopWorkspace(workspace *workspace.Workspace, target *provider.ProviderTarget) error

type ProvisionerConfig

type ProvisionerConfig struct {
	ProviderManager manager.IProviderManager
}

Jump to

Keyboard shortcuts

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