consts

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: Apache-2.0 Imports: 2 Imported by: 5 modules, 3 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 (
	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,
	}
)

Functions

func NewErrInvalidArgumentsCount

func NewErrInvalidArgumentsCount(count int) error

func NewErrInvalidPlatform

func NewErrInvalidPlatform(platform Platform) error

func NewErrInvalidYaml

func NewErrInvalidYaml(message string) error

func NewErrInvalidYamlTag

func NewErrInvalidYamlTag(tag string) error

Types

type ErrInvalidArgumentsCount

type ErrInvalidArgumentsCount struct {
	Count int
}

func (*ErrInvalidArgumentsCount) Error

func (e *ErrInvalidArgumentsCount) 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
}

func (*ErrInvalidYamlTag) Error

func (e *ErrInvalidYamlTag) Error() string

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