Documentation
¶
Index ¶
Constants ¶
View Source
const ( EnvironmentNameRegex = `[a-z0-9\-_]+` EnvironmentTypeProduction = "Production" EnvironmentTypeSandbox = "Sandbox" FlagEndpoint = "endpoint" )
View Source
const ( ResourceSeparator = ":" RelationSeparator = "#" TestFileExtensionJSON = ".test.json" TestFileExtensionYAML = ".test.yaml" TestFileExtensionYML = ".test.yml" )
View Source
const (
FlagDomain = "domain"
)
Variables ¶
View Source
var AcceptedTestFileExtensionErrorMessage = fmt.Sprintf("Accepted test file extensions are: %s", strings.Join(AcceptedTestFileExtensions, ", "))
View Source
var AcceptedTestFileExtensions = []string{TestFileExtensionJSON, TestFileExtensionYAML, TestFileExtensionYML}
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func GetConfigOrExit ¶
func SetVersion ¶
func SetVersion(version string)
Types ¶
type FGATestCase ¶ added in v0.5.0
type FGATestCase struct {
Name string `yaml:"name" json:"name"`
Check FGATestCheck `yaml:"check" json:"check"`
Expect bool `yaml:"expect" json:"expect"`
}
type FGATestCheck ¶ added in v0.5.0
type FGATestResult ¶ added in v0.5.0
type FGATestSetupSection ¶ added in v0.5.0
type FGATestSetupSection struct {
Warrants []WarrantSetup `yaml:"warrants" json:"warrants"`
}
type FGATestTeardownSection ¶ added in v0.5.0
type FGATestTeardownSection struct {
Warrants []WarrantSetup `yaml:"warrants" json:"warrants"`
Resources []string `yaml:"resources" json:"resources"`
}
type FGATestYaml ¶ added in v0.5.0
type FGATestYaml struct {
Setup FGATestSetupSection `yaml:"setup" json:"setup"`
Tests []FGATestCase `yaml:"tests" json:"tests"`
Teardown *FGATestTeardownSection `yaml:"teardown,omitempty" json:"teardown,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.