config

package
v2.1.0-beta.6 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProviders

func GetProviders() []string

Types

type Config

type Config struct {
	Server   Server
	Storage  Storage
	Provider Provider
}

func NewConfig

func NewConfig() Config

type Provider

type Provider struct {
	Name string `mapstructure:"NAME" yaml:"provider,omitempty"`
}

Provider holds the provider description It can be either docker, swarm or kubernetes

func NewProviderConfig

func NewProviderConfig() Provider

func (Provider) IsValid

func (provider Provider) IsValid() error

type Server

type Server struct {
	Port     int    `mapstructure:"PORT" yaml:"port" default:"10000"`
	BasePath string `mapstructure:"BASEPATH" yaml:"basePath" default:"/"`
}

func NewServerConfig

func NewServerConfig() Server

type Storage

type Storage struct {
	File string `mapstructure:"FILE" yaml:"file" default:""`
}

func NewStorageConfig

func NewStorageConfig() Storage

Jump to

Keyboard shortcuts

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