platform

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: MPL-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// WorkingVolumeWorkingDir is a working directory relative to the WorkingVolumeMountpoint().
	WorkingVolumeWorkingDir = "working-dir"

	// WorkingVolumeAgentBinary is the name of the agent binary relative to the WorkingVolumeMountpoint().
	WorkingVolumeAgentBinary = "cirrus-ci-agent"

	// AgentImageBase is used as a prefix to the agent's version to craft the full agent image name.
	AgentImageBase = "gcr.io/cirrus-ci-community/cirrus-ci-agent:v"

	// DefaultAgentVersion represents the default version of the https://github.com/cirruslabs/cirrus-ci-agent to use.
	DefaultAgentVersion = "1.24.0"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Platform

type Platform interface {
	// Where we will mount the project directory for further copying into a working volume
	ProjectDirMountpoint() string

	// Where working volume is mounted to when running Docker containers on Unix-like platforms.
	WorkingVolumeMountpoint() string

	AgentImage(version string) string

	CopyCommand(populate bool) []string

	AgentBinaryPath() string
}

func Auto

func Auto() Platform

func NewUnix

func NewUnix() Platform

func NewWindows

func NewWindows(osVersion string) Platform

type UnixPlatform

type UnixPlatform struct{}

func (*UnixPlatform) AgentBinaryPath

func (platform *UnixPlatform) AgentBinaryPath() string

func (*UnixPlatform) AgentImage

func (platform *UnixPlatform) AgentImage(version string) string

func (*UnixPlatform) CopyCommand

func (platform *UnixPlatform) CopyCommand(populate bool) []string

func (*UnixPlatform) ProjectDirMountpoint

func (platform *UnixPlatform) ProjectDirMountpoint() string

func (*UnixPlatform) WorkingVolumeMountpoint

func (platform *UnixPlatform) WorkingVolumeMountpoint() string

type WindowsPlatform

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

func (*WindowsPlatform) AgentBinaryPath

func (platform *WindowsPlatform) AgentBinaryPath() string

func (*WindowsPlatform) AgentImage

func (platform *WindowsPlatform) AgentImage(version string) string

func (*WindowsPlatform) CopyCommand

func (platform *WindowsPlatform) CopyCommand(populate bool) []string

func (*WindowsPlatform) ProjectDirMountpoint

func (platform *WindowsPlatform) ProjectDirMountpoint() string

func (*WindowsPlatform) WorkingVolumeMountpoint

func (platform *WindowsPlatform) WorkingVolumeMountpoint() string

Jump to

Keyboard shortcuts

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