Documentation ¶
Index ¶
Examples ¶
Constants ¶
View Source
const ( KindCypress = "cypress" KindPuppeteer = "puppeteer" KindPlaywright = "playwright" KindTestcafe = "testcafe" )
Kind* contains referenced config kinds
View Source
const (
VersionV1Alpha = "v1alpha"
)
Version* contains referenced config version
Variables ¶
This section is empty.
Functions ¶
func StandardizeVersionFormat ¶
StandardizeVersionFormat remove the leading v in version to ensure reliable comparisons.
Types ¶
type Docker ¶
type Docker struct { FileTransfer DockerFileMode `yaml:"fileTransfer,omitempty" json:"fileTransfer"` Image string `yaml:"image,omitempty" json:"image"` }
Docker represents docker settings.
type DockerFileMode ¶
type DockerFileMode string
DockerFileMode represent the file providing method
const ( DockerFileMount DockerFileMode = "mount" DockerFileCopy DockerFileMode = "copy" )
DockerFile* represent the different modes
type Metadata ¶
type Metadata struct { Name string `yaml:"name" json:"name"` Tags []string `yaml:"tags" json:"tags,omitempty"` Build string `yaml:"build" json:"build"` }
Metadata describes job metadata
func (*Metadata) ExpandEnv ¶
func (m *Metadata) ExpandEnv()
ExpandEnv expands environment variables inside metadata fields.
Example ¶
os.Setenv("tname", "Envy") os.Setenv("ttag", "xp1") os.Setenv("tbuild", "Bob") m := Metadata{ Name: "Test $tname", Tags: []string{"$ttag"}, Build: "Build $tbuild", } m.ExpandEnv() fmt.Println(m)
Output: {Test Envy [xp1] Build Bob}
type Npm ¶
type Npm struct { Registry string `yaml:"registry,omitempty" json:"registry,omitempty"` Packages map[string]string `yaml:"packages,omitempty" json:"packages"` }
Npm represents the npm settings
type SauceConfig ¶
type SauceConfig struct { Region string `yaml:"region,omitempty" json:"region"` Metadata Metadata `yaml:"metadata,omitempty" json:"metadata"` Tunnel Tunnel `yaml:"tunnel,omitempty" json:"tunnel,omitempty"` Concurrency int `yaml:"concurrency,omitempty" json:"concurrency,omitempty"` Sauceignore string `yaml:"sauceignore,omitempty" json:"sauceignore,omitempty"` Experiments map[string]string `yaml:"experiments,omitempty" json:"experiments,omitempty"` }
SauceConfig represents sauce labs related settings.
type Tunnel ¶
type Tunnel struct { ID string `yaml:"id,omitempty" json:"id"` Parent string `yaml:"parent,omitempty" json:"parent,omitempty"` }
Tunnel represents a sauce labs tunnel.
Click to show internal directories.
Click to hide internal directories.