config

package
v0.0.0-...-034a1d5 Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetEnvVariables

func SetEnvVariables(c *Config)

SetEnvVariables provides filling of config from environment variables

Types

type Build

type Build struct {
	Image   string   `yaml:"image"`
	Entry   string   `yaml:"entry"`
	Ports   []string `yaml:"ports"`
	Install []string `yaml:"install"`
	Title   string   `yaml:"title"`
	Tag     string   `yaml:"tag"`
}

Build defined build stage

type Config

type Config struct {
	ArtifactsDir string  `yaml:"artifacts_dir"`
	Build        Build   `yaml:"build"`
	Deploy       Deploy  `yaml:"deploy"`
	Release      Release `yaml:"release"`
}

Config defines configuration

func Load

func Load(path string) (*Config, error)

Load provides loading of config

type Deploy

type Deploy struct {
	Provider Provider  `yaml:"provider"`
	Services []Service `yaml:"services"`
	Replicas uint      `yaml:"replicas"`
}

Deploy defines stage for deploy

type Provider

type Provider int
const (
	Swarm Provider = iota
	K3S
)

type Registry

type Registry struct {
	Login    string `yaml:"login"`
	Password string `yaml:"password"`
	URL      string `yaml:"url"`
}

Registry defines configuration for registry

type Release

type Release struct {
	Registry Registry `yaml:"registry"`
}

Release defines release stage

type Service

type Service struct {
	Image string `yaml:"image"`
}

Service defines configuration for service

Jump to

Keyboard shortcuts

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