Documentation ¶
Index ¶
- type IProvisioner
- type InfoResult
- type ProjectParams
- type Provisioner
- func (p *Provisioner) CreateProject(params ProjectParams) error
- func (p *Provisioner) CreateWorkspace(workspace *workspace.Workspace, target *provider.ProviderTarget) error
- func (p *Provisioner) DestroyProject(proj *project.Project, target *provider.ProviderTarget) error
- func (p *Provisioner) DestroyWorkspace(workspace *workspace.Workspace, target *provider.ProviderTarget) error
- func (p *Provisioner) GetWorkspaceInfo(ctx context.Context, ws *workspace.Workspace, target *provider.ProviderTarget) (*workspace.WorkspaceInfo, error)
- func (p *Provisioner) StartProject(params ProjectParams) error
- func (p *Provisioner) StartWorkspace(workspace *workspace.Workspace, target *provider.ProviderTarget) error
- func (p *Provisioner) StopProject(proj *project.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(params ProjectParams) error CreateWorkspace(workspace *workspace.Workspace, target *provider.ProviderTarget) error DestroyProject(project *project.Project, target *provider.ProviderTarget) error DestroyWorkspace(workspace *workspace.Workspace, target *provider.ProviderTarget) error GetWorkspaceInfo(ctx context.Context, workspace *workspace.Workspace, target *provider.ProviderTarget) (*workspace.WorkspaceInfo, error) StartProject(params ProjectParams) error StartWorkspace(workspace *workspace.Workspace, target *provider.ProviderTarget) error StopProject(project *project.Project, target *provider.ProviderTarget) error StopWorkspace(workspace *workspace.Workspace, target *provider.ProviderTarget) error }
func NewProvisioner ¶
func NewProvisioner(config ProvisionerConfig) IProvisioner
type InfoResult ¶ added in v0.29.0
type InfoResult struct { Info *workspace.WorkspaceInfo Err error }
type ProjectParams ¶ added in v0.46.0
type ProjectParams struct { Project *project.Project Target *provider.ProviderTarget ContainerRegistry *containerregistry.ContainerRegistry GitProviderConfig *gitprovider.GitProviderConfig BuilderImage string BuilderImageContainerRegistry *containerregistry.ContainerRegistry }
type Provisioner ¶
type Provisioner struct {
// contains filtered or unexported fields
}
func (*Provisioner) CreateProject ¶
func (p *Provisioner) CreateProject(params ProjectParams) error
func (*Provisioner) CreateWorkspace ¶
func (p *Provisioner) CreateWorkspace(workspace *workspace.Workspace, target *provider.ProviderTarget) error
func (*Provisioner) DestroyProject ¶
func (p *Provisioner) DestroyProject(proj *project.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(ctx context.Context, ws *workspace.Workspace, target *provider.ProviderTarget) (*workspace.WorkspaceInfo, error)
Gets the workspace info from the provider - the context is used to cancel the request if it takes too long
func (*Provisioner) StartProject ¶
func (p *Provisioner) StartProject(params ProjectParams) error
func (*Provisioner) StartWorkspace ¶
func (p *Provisioner) StartWorkspace(workspace *workspace.Workspace, target *provider.ProviderTarget) error
func (*Provisioner) StopProject ¶
func (p *Provisioner) StopProject(proj *project.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.