platform

package
v0.38.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 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 (

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

Variables

This section is empty.

Functions

This section is empty.

Types

type CopyCommand added in v0.38.1

type CopyCommand struct {
	Command              []string
	CopiesAgentToDir     string
	CopiesProjectFromDir string
	CopiesProjectToDir   string
}

type Platform

type Platform interface {
	ContainerAgentImage(version string) string
	ContainerCopyCommand(populate bool) *CopyCommand
	ContainerAgentPath() string
	ContainerAgentVolumeDir() string

	CirrusDir() string
	GenericWorkingDir() 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) CirrusDir added in v0.38.1

func (platform *UnixPlatform) CirrusDir() string

func (*UnixPlatform) ContainerAgentImage added in v0.38.1

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

func (*UnixPlatform) ContainerAgentPath added in v0.38.1

func (platform *UnixPlatform) ContainerAgentPath() string

func (*UnixPlatform) ContainerAgentVolumeDir added in v0.38.1

func (platform *UnixPlatform) ContainerAgentVolumeDir() string

func (*UnixPlatform) ContainerCopyCommand added in v0.38.1

func (platform *UnixPlatform) ContainerCopyCommand(populate bool) *CopyCommand

func (*UnixPlatform) GenericWorkingDir added in v0.38.1

func (platform *UnixPlatform) GenericWorkingDir() string

type WindowsPlatform

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

func (*WindowsPlatform) CirrusDir added in v0.38.1

func (platform *WindowsPlatform) CirrusDir() string

func (*WindowsPlatform) ContainerAgentImage added in v0.38.1

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

func (*WindowsPlatform) ContainerAgentPath added in v0.38.1

func (platform *WindowsPlatform) ContainerAgentPath() string

func (*WindowsPlatform) ContainerAgentVolumeDir added in v0.38.1

func (platform *WindowsPlatform) ContainerAgentVolumeDir() string

func (*WindowsPlatform) ContainerCopyCommand added in v0.38.1

func (platform *WindowsPlatform) ContainerCopyCommand(populate bool) *CopyCommand

func (*WindowsPlatform) GenericWorkingDir added in v0.38.1

func (platform *WindowsPlatform) GenericWorkingDir() string

Jump to

Keyboard shortcuts

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