provisioner

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 7 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 *project.Project, target *provider.ProviderTarget, cr *containerregistry.ContainerRegistry, gc *gitprovider.GitProviderConfig) 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(project *project.Project, target *provider.ProviderTarget) 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 Provisioner

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

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

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(proj *project.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(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
}

Jump to

Keyboard shortcuts

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