consts

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

View Source
const (
	Macos1015     = "macos-10.15"
	Macos11       = "macos-11"
	MacosLatest   = "macos-latest"
	SelfHosted    = "self-hosted"
	Ubuntu1804    = "ubuntu-18.04"
	Ubuntu2004    = "ubuntu-20.04"
	UbuntuLatest  = "ubuntu-latest"
	Windows2016   = "windows-2016"
	Windows2019   = "windows-2019"
	Windows2022   = "windows-2022"
	WindowsLatest = "windows-latest"

	ArmArch = "arm32"
	X64Arch = "x64"
	X32Arch = "x32"
)
View Source
const (
	// YAML node tags
	StringTag   = "!!str"
	IntTag      = "!!int"
	SequenceTag = "!!seq"
	BooleanTag  = "!!bool"
	MapTag      = "!!map"
)

Variables

View Source
var (
	WindowsKeywords = []string{"windows", Windows2016, Windows2019, Windows2022, WindowsLatest}
	LinuxKeywords   = []string{"linux", "ubuntu", "debian", Ubuntu1804, Ubuntu2004, UbuntuLatest}
	MacKeywords     = []string{"macos", "darwin", "osx", Macos1015, Macos11, MacosLatest}

	ArchKeywords = []string{ArmArch, X64Arch, X32Arch}

	OsToKeywords = map[models.OS][]string{
		models.WindowsOS: WindowsKeywords,
		models.LinuxOS:   LinuxKeywords,
		models.MacOS:     MacKeywords,
	}
)
View Source
var FalseValues = []string{"false", "off", "n", "no"}
View Source
var OutputTargets = []OutputTarget{
	Stdout,
	File,
}
View Source
var TrueValues = []string{"true", "on", "y", "yes"}

Functions

func NewErrInvalidArgumentsCount

func NewErrInvalidArgumentsCount(count int) error

func NewErrInvalidOutputTarget added in v0.1.14

func NewErrInvalidOutputTarget(outputTarget OutputTarget) error

func NewErrInvalidPlatform

func NewErrInvalidPlatform(platform Platform) error

func NewErrInvalidYaml

func NewErrInvalidYaml(message string) error

func NewErrInvalidYamlTag

func NewErrInvalidYamlTag(tag string, structType string) error

Types

type ErrInvalidArgumentsCount

type ErrInvalidArgumentsCount struct {
	Count int
}

func (*ErrInvalidArgumentsCount) Error

func (e *ErrInvalidArgumentsCount) Error() string

type ErrInvalidOutputTarget added in v0.1.14

type ErrInvalidOutputTarget struct {
	OutputTarget OutputTarget
}

func (*ErrInvalidOutputTarget) Error added in v0.1.14

func (e *ErrInvalidOutputTarget) Error() string

type ErrInvalidPlatform

type ErrInvalidPlatform struct {
	Platform Platform
}

func (*ErrInvalidPlatform) Error

func (e *ErrInvalidPlatform) Error() string

type ErrInvalidYaml

type ErrInvalidYaml struct {
	Message string
}

func (*ErrInvalidYaml) Error

func (e *ErrInvalidYaml) Error() string

type ErrInvalidYamlTag

type ErrInvalidYamlTag struct {
	Tag  string
	Type string
}

func (*ErrInvalidYamlTag) Error

func (e *ErrInvalidYamlTag) Error() string

type OutputTarget added in v0.1.14

type OutputTarget string
const (
	Stdout OutputTarget = "stdout"
	File   OutputTarget = "file"
)

type Platform

type Platform string
const (
	GitHubPlatform Platform = "github"
	GitLabPlatform Platform = "gitlab"
	AzurePlatform  Platform = "azure"
)

Jump to

Keyboard shortcuts

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