config

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConfiguration

func CreateConfiguration(configDirPath string, configuration ParticleConfiguration) error

Types

type Dependencies

type Dependencies struct {
	RepositoryName string `yaml:"repository-name,omitempty"`
	RepositoryURL  string `yaml:"repository-url,omitempty"`
}

type Dependency

type Dependency struct {
	Name   string         `yaml:"name" validate:"eq=helm"`
	Charts []Dependencies `yaml:"charts,omitempty"`
}

type Driver

type Driver struct {
	Name              string `yaml:"name" validate:"required,eq=kind|eq=minikube"`
	KubernetesVersion string `yaml:"kubernetes-version,omitempty"`
}

type ParticleConfiguration

type ParticleConfiguration struct {
	Driver      Driver      `yaml:"driver" validate:"required"`
	Provisioner Provisioner `yaml:"provisioner" validate:"required"`
	Linter      string      `yaml:"lint" validate:"required"`
	Verifier    string      `yaml:"verifier" validate:"required"`
	Dependency  Dependency  `yaml:"dependency" validate:"required,eq=helm"`
	Prepare     []Prepare   `yaml:"prepare,omitempty"`
}

func ReadConfiguration

func ReadConfiguration(scenario string) (ParticleConfiguration, error)

type Prepare

type Prepare struct {
	Name    string                 `yaml:"name"`
	Version string                 `yaml:"version,omitempty"`
	Values  map[string]interface{} `yaml:"values,omitempty"`
}

type Provisioner

type Provisioner struct {
	Name   string                 `yaml:"name" validate:"eq=helm"`
	Values map[string]interface{} `yaml:"values,omitempty"`
}

Jump to

Keyboard shortcuts

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