platform

package
v0.108.5 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// DefaultAgentVersion represents the default version of the https://github.com/cirruslabs/cirrus-ci-agent to use.
	DefaultAgentVersion = "1.106.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