config

package
v0.0.0-...-42893f0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildArg

type BuildArg struct {
	Name     string            `yaml:"name,omitempty"`
	Key      string            `yaml:"key,omitempty"`
	Type     string            `yaml:"type,omitempty"`
	StartAt  string            `yaml:"startat,omitempty"`
	EndAt    string            `yaml:"endat,omitempty"`
	Versions []string          `yaml:"versions,omitempty"`
	Values   []string          `yaml:"values,omitempty"`
	Filter   []string          `yaml:"filter,omitempty"`
	Skips    []string          `yaml:"skips,omitempty"`
	Includes []string          `yaml:"includes,omitempty"`
	Params   map[string]string `yaml:"params,omitempty"`
}

BuildArg expects metadata for building from a variable, spack, or other

func (*BuildArg) GetKey

func (b *BuildArg) GetKey() string

Get the identifier for a build arg

type Conf

type Conf struct {
	DockerHierarchy DockerHierarchy `yaml:"dockerhierarchy,omitempty"`
	DockerBuild     DockerBuild     `yaml:"dockerbuild,omitempty"`
}

func Load

func Load(yamlfile string) Conf

type Config

type Config struct {
	Debug bool `envconfig:"DEBUG" default:"false"`
}

func NewConfig

func NewConfig() Config

NewConfig inits a new config

type Container

type Container struct {
	Name     string   `yaml:"name"`
	Filter   []string `yaml:"filter,omitempty"`
	StartAt  string   `yaml:"startat,omitempty"`
	EndAt    string   `yaml:"endat,omitempty"`
	Skips    []string `yaml:"skips,omitempty"`
	Includes []string `yaml:"includes,omitempty"`
}

type DockerBuild

type DockerBuild struct {
	BuildArgs         map[string]BuildArg `yaml:"build_args"`
	Matrix            map[string][]string `yaml:"matrix,omitempty"`
	Exclude           map[string][]string `yaml:"exclude,omitempty"`
	ContainerBasename string              `yaml:"container_basename,omitempty"`
	Active            bool                `yaml:"active,omitempty"`
}

DockerBuild holds one or more build args We'd have to separate these later anyway

type DockerHierarchy

type DockerHierarchy struct {
	Container Container `yaml:"container"`
}

Jump to

Keyboard shortcuts

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