Documentation ¶
Index ¶
- type IProvisioner
- type Provisioner
- func (p *Provisioner) CreateProject(project *workspace.Project, target *provider.ProviderTarget) error
- func (p *Provisioner) CreateWorkspace(workspace *workspace.Workspace, target *provider.ProviderTarget) error
- func (p *Provisioner) DestroyProject(project *workspace.Project, target *provider.ProviderTarget) error
- func (p *Provisioner) DestroyWorkspace(workspace *workspace.Workspace, target *provider.ProviderTarget) error
- func (p *Provisioner) GetWorkspaceInfo(workspace *workspace.Workspace, target *provider.ProviderTarget) (*workspace.WorkspaceInfo, error)
- func (p *Provisioner) StartProject(project *workspace.Project, target *provider.ProviderTarget) error
- func (p *Provisioner) StartWorkspace(workspace *workspace.Workspace, target *provider.ProviderTarget) error
- func (p *Provisioner) StopProject(project *workspace.Project, target *provider.ProviderTarget) error
- func (p *Provisioner) StopWorkspace(workspace *workspace.Workspace, target *provider.ProviderTarget) error
- type ProvisionerConfig
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
}
Click to show internal directories.
Click to hide internal directories.