Documentation ¶
Index ¶
- Constants
- Variables
- func NewErrEmptyData() error
- func NewErrInvalidArgumentsCount(count int) error
- func NewErrInvalidOutputTarget(outputTarget OutputTarget) error
- func NewErrInvalidPlatform(platform models.Platform) error
- func NewErrInvalidYaml(message string) error
- func NewErrInvalidYamlTag(tag string, structType string) error
- type ErrEmptyData
- type ErrInvalidArgumentsCount
- type ErrInvalidOutputTarget
- type ErrInvalidPlatform
- type ErrInvalidYaml
- type ErrInvalidYamlTag
- type OutputTarget
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 ( GitHubPlatform models.Platform = "github" GitLabPlatform models.Platform = "gitlab" AzurePlatform models.Platform = "azure" BitbucketPlatform models.Platform = "bitbucket" )
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 Platforms = []models.Platform{ GitHubPlatform, GitLabPlatform, AzurePlatform, BitbucketPlatform, }
View Source
var TrueValues = []string{"true", "on", "y", "yes"}
Functions ¶
func NewErrEmptyData ¶ added in v0.2.4
func NewErrEmptyData() error
func NewErrInvalidOutputTarget ¶ added in v0.1.14
func NewErrInvalidOutputTarget(outputTarget OutputTarget) error
func NewErrInvalidPlatform ¶
func NewErrInvalidYaml ¶
func NewErrInvalidYamlTag ¶
Types ¶
type ErrEmptyData ¶ added in v0.2.4
type ErrEmptyData struct { }
func (*ErrEmptyData) Error ¶ added in v0.2.4
func (e *ErrEmptyData) Error() string
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 ¶
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 ¶
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" )
Click to show internal directories.
Click to hide internal directories.