builder

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildOutcome

type BuildOutcome struct {
	Outcome               string `json:"outcome"`
	ContainerId           string `json:"containerId"`
	RemoteUser            string `json:"remoteUser"`
	RemoteWorkspaceFolder string `json:"remoteWorkspaceFolder"`
}

type BuildResult

type BuildResult struct {
	User               string
	ImageName          string
	ProjectVolumePath  string
	PostCreateCommands []string
	PostStartCommands  []string
}

type Builder

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

func (*Builder) SaveBuildResults

func (b *Builder) SaveBuildResults(r BuildResult) error

type BuilderConfig

type BuilderConfig struct {
	Image                    string
	ContainerRegistryService containerregistries.IContainerRegistryService
	ServerConfigFolder       string
	ContainerRegistryServer  string
	// Namespace to be used when tagging and pushing the build image
	BuildImageNamespace             string
	BasePath                        string
	LoggerFactory                   logs.LoggerFactory
	DefaultProjectImage             string
	DefaultProjectUser              string
	DefaultProjectPostStartCommands []string
}

type BuilderFactory

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

func (*BuilderFactory) CheckExistingBuild

func (f *BuilderFactory) CheckExistingBuild(p workspace.Project) (*BuildResult, error)

func (*BuilderFactory) Create

type DevcontainerBuilder

type DevcontainerBuilder struct {
	*Builder
	// contains filtered or unexported fields
}

func (*DevcontainerBuilder) Build

func (b *DevcontainerBuilder) Build() (*BuildResult, error)

func (*DevcontainerBuilder) CleanUp

func (b *DevcontainerBuilder) CleanUp() error

func (*DevcontainerBuilder) Publish

func (b *DevcontainerBuilder) Publish() error

type IBuilder

type IBuilder interface {
	Build() (*BuildResult, error)
	CleanUp() error
	Publish() error
	SaveBuildResults(r BuildResult) error
}

type IBuilderFactory

type IBuilderFactory interface {
	Create(p workspace.Project, gpc *gitprovider.GitProviderConfig) (IBuilder, error)
	CheckExistingBuild(p workspace.Project) (*BuildResult, error)
}

func NewBuilderFactory

func NewBuilderFactory(config BuilderConfig) IBuilderFactory

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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