Documentation ¶
Index ¶
Constants ¶
View Source
const ( // AgentImage is the image we'll use to create a working volume. AgentImage = "gcr.io/cirrus-ci-community/cirrus-ci-agent:v1.6.0" // Where working volume is mounted to. WorkingVolumeMountpoint = "/tmp/cirrus-ci" // Agent binary relative to the WorkingVolumeMountpoint. WorkingVolumeAgent = "cirrus-ci-agent" // Working directory relative to the WorkingVolumeMountpoint. WorkingVolumeWorkingDir = "working-dir" )
Variables ¶
View Source
var ( 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
Types ¶
type ContainerInstance ¶ added in v0.3.0
type ContainerInstance struct { Image string CPU float32 Memory uint32 AdditionalContainers []*api.AdditionalContainer }
type Instance ¶
func NewFromProto ¶
type PipeInstance ¶ added in v0.3.0
type PrebuiltInstance ¶ added in v0.3.0
type Volume ¶ added in v0.3.0
type Volume struct {
// contains filtered or unexported fields
}
func CreateWorkingVolume ¶ added in v0.3.0
func CreateWorkingVolume(ctx context.Context, projectDir string, dontPopulate bool) (*Volume, error)
CreateWorkingVolume returns a Docker volume name with the agent and copied projectDir.
func CreateWorkingVolumeFromConfig ¶ added in v0.3.0
CreateWorkingVolume returns a Docker volume name with the agent and copied projectDir.
Click to show internal directories.
Click to hide internal directories.