Documentation ¶
Index ¶
- Variables
- func CreateTempArchive(dir string) (string, error)
- func CreateWorkingVolume(ctx context.Context, backend containerbackend.ContainerBackend, ...) (agentVolume *Volume, vol *Volume, err error)
- func CreateWorkingVolumeFromConfig(ctx context.Context, config *runconfig.RunConfig, platform platform.Platform) (*Volume, *Volume, error)
- func NewFromProto(anyInstance *any.Any, commands []*api.Command, customWorkingDir string, ...) (abstract.Instance, error)
- func RunContainerizedAgent(ctx context.Context, config *runconfig.RunConfig, params *Params) error
- type ContainerInstance
- type Params
- type PipeInstance
- type PipeStage
- type PrebuiltInstance
- type RendererStub
- type Volume
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrFailedToCreateInstance = errors.New("failed to create instance") ErrUnsupportedInstance = errors.New("unsupported instance type") ErrAdditionalContainerFailed = errors.New("additional container failed") )
View Source
var ( ErrVolumeCreationFailed = errors.New("working volume creation failed") ErrVolumeCleanupFailed = errors.New("failed to clean up working volume") )
View Source
var ErrPipeCreationFailed = errors.New("failed to create pipe instance")
Functions ¶
func CreateTempArchive ¶ added in v0.3.0
func CreateWorkingVolume ¶ added in v0.3.0
func CreateWorkingVolume( ctx context.Context, backend containerbackend.ContainerBackend, containerOptions options.ContainerOptions, agentVolumeName string, workingVolumeName string, projectDir string, dontPopulate bool, agentVersion string, platform platform.Platform, ) (agentVolume *Volume, vol *Volume, err error)
CreateWorkingVolume returns name of the working volume created according to the specification in arguments.
func CreateWorkingVolumeFromConfig ¶ added in v0.3.0
func CreateWorkingVolumeFromConfig( ctx context.Context, config *runconfig.RunConfig, platform platform.Platform, ) (*Volume, *Volume, error)
CreateWorkingVolumeFromConfig returns name of the working volume created according to the specification in config.
func NewFromProto ¶
Types ¶
type ContainerInstance ¶ added in v0.3.0
type ContainerInstance struct { Image string CPU float32 Memory uint32 AdditionalContainers []*api.AdditionalContainer Platform platform.Platform CustomWorkingDir string }
func (*ContainerInstance) WorkingDirectory ¶ added in v0.16.0
func (inst *ContainerInstance) WorkingDirectory(projectDir string, dirtyMode bool) string
type PipeInstance ¶ added in v0.3.0
func (*PipeInstance) WorkingDirectory ¶ added in v0.16.0
func (pi *PipeInstance) WorkingDirectory(projectDir string, dirtyMode bool) string
type PrebuiltInstance ¶ added in v0.3.0
func (*PrebuiltInstance) WorkingDirectory ¶ added in v0.16.0
func (prebuilt *PrebuiltInstance) WorkingDirectory(projectDir string, dirtyMode bool) string
type RendererStub ¶ added in v0.35.0
type RendererStub struct{}
func (*RendererStub) RenderMessage ¶ added in v0.35.0
func (*RendererStub) RenderMessage(entry *echelon.LogEntryMessage)
func (*RendererStub) RenderScopeFinished ¶ added in v0.35.0
func (*RendererStub) RenderScopeFinished(entry *echelon.LogScopeFinished)
func (*RendererStub) RenderScopeStarted ¶ added in v0.35.0
func (*RendererStub) RenderScopeStarted(entry *echelon.LogScopeStarted)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.