Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTimeout  = "30m"
	DefaultAppLabel = "app=yaks"
)

Variables

View Source
var DefaultVersions = Versions{
	"citrus.version":           "4.2.1",
	"camel.version":            "4.6.0",
	"apache.camel.version":     "4.6.0",
	"spring.version":           "6.1.7",
	"cucumber.version":         "7.18.0",
	"postgresql.version":       "42.7.3",
	"testcontainers.version":   "1.19.8",
	"aws-java-sdk2.version":    "2.25.53",
	"activemq.version":         "6.1.0",
	"activemq.artemis.version": "2.33.0",
}

Functions

This section is empty.

Types

type Config

type Config struct {
	Recursive bool            `yaml:"recursive"`
	Timeout   string          `yaml:"timeout"`
	Namespace NamespaceConfig `yaml:"namespace"`
	Operator  OperatorConfig  `yaml:"operator"`
	Runtime   RuntimeConfig   `yaml:"runtime"`
	Dump      DumpConfig      `yaml:"dump"`
}

type CucumberConfig added in v0.0.25

type CucumberConfig struct {
	Tags    []string `yaml:"tags"`
	Glue    []string `yaml:"glue"`
	Options string   `yaml:"options"`
}

type DependencyConfig added in v0.0.42

type DependencyConfig struct {
	GroupID    string `yaml:"groupId"`
	ArtifactID string `yaml:"artifactId"`
	Version    string `yaml:"version"`
}

func (DependencyConfig) AsMavenGAV added in v0.12.0

func (d DependencyConfig) AsMavenGAV() string

type DumpConfig added in v0.9.0

type DumpConfig struct {
	Enabled    bool     `yaml:"enabled"`
	FailedOnly bool     `yaml:"failedOnly"`
	Append     bool     `yaml:"append"`
	Directory  string   `yaml:"directory"`
	File       string   `yaml:"file"`
	Lines      int      `yaml:"lines"`
	Includes   []string `yaml:"includes"`
}

type EnvConfig added in v0.0.44

type EnvConfig struct {
	Name  string `yaml:"name"`
	Value string `yaml:"value"`
}

type LoggerConfig added in v0.1.0

type LoggerConfig struct {
	Name  string `yaml:"name"`
	Level string `yaml:"level"`
}

type NamespaceConfig

type NamespaceConfig struct {
	Name       string `yaml:"name"`
	Temporary  bool   `yaml:"temporary"`
	AutoRemove bool   `yaml:"autoRemove"`
}

type OperatorConfig added in v0.1.0

type OperatorConfig struct {
	Namespace string   `yaml:"namespace"`
	Roles     []string `yaml:"roles"`
}

type PolicyConfig added in v0.0.42

type PolicyConfig struct {
	Enabled      string `yaml:"enabled,omitempty"`
	UpdatePolicy string `yaml:"updatePolicy,omitempty"`
}

type RepositoryConfig added in v0.0.42

type RepositoryConfig struct {
	ID        string       `yaml:"id"`
	Name      string       `yaml:"name,omitempty"`
	URL       string       `yaml:"url"`
	Layout    string       `yaml:"layout,omitempty"`
	Releases  PolicyConfig `yaml:"releases,omitempty"`
	Snapshots PolicyConfig `yaml:"snapshots,omitempty"`
}

type RunConfig added in v0.0.24

type RunConfig struct {
	BaseDir string       `yaml:"baseDir"`
	Config  Config       `yaml:"config"`
	Pre     []StepConfig `yaml:"pre"`
	Post    []StepConfig `yaml:"post"`
}

func LoadConfig

func LoadConfig(file string) (*RunConfig, error)

func NewWithDefaults added in v0.0.26

func NewWithDefaults() *RunConfig

type RuntimeConfig added in v0.0.25

type RuntimeConfig struct {
	Cucumber       CucumberConfig       `yaml:"cucumber"`
	Selenium       SeleniumConfig       `yaml:"selenium"`
	TestContainers TestContainersConfig `yaml:"testcontainers"`
	Resources      []string             `yaml:"resources"`
	Settings       SettingsConfig       `yaml:"settings"`
	Env            []EnvConfig          `yaml:"env"`
	Secrets        []string             `yaml:"secrets"`
	ClusterType    string               `yaml:"clusterType"`
}

type SeleniumConfig added in v0.3.0

type SeleniumConfig struct {
	Enabled   bool        `yaml:"enabled"`
	Image     string      `yaml:"image"`
	NoVNC     bool        `yaml:"noVNC"`
	RunAsUser int         `yaml:"runAsUser"`
	Env       []EnvConfig `yaml:"env"`
}

type SettingsConfig added in v0.0.42

type SettingsConfig struct {
	Repositories       []RepositoryConfig `yaml:"repositories"`
	PluginRepositories []RepositoryConfig `yaml:"pluginRepositories"`
	Dependencies       []DependencyConfig `yaml:"dependencies"`
	Loggers            []LoggerConfig     `yaml:"loggers"`
}

type StepConfig added in v0.0.26

type StepConfig struct {
	Run     string `yaml:"run"`
	Script  string `yaml:"script"`
	Name    string `yaml:"name"`
	Timeout string `yaml:"timeout"`
	If      string `yaml:"if"`
}

type TestContainersConfig added in v0.6.0

type TestContainersConfig struct {
	Enabled   bool   `yaml:"enabled"`
	Image     string `yaml:"image"`
	RunAsUser int    `yaml:"runAsUser"`
}

type Versions added in v0.12.0

type Versions map[string]string

Jump to

Keyboard shortcuts

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