provisioner

package
v0.47.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 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(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

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
}

Jump to

Keyboard shortcuts

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