cluster

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Hosts     hosts.Hosts `validate:"required,dive,required,gt=0"`
	Token     string      `validate:"omitempty,gt=12"`
	Manifests []string
	Version   string
}

Config describes cluster.yml

func (*Config) FromYaml

func (c *Config) FromYaml(data []byte) error

FromYaml parses config from YAML

func (*Config) MasterHosts

func (c *Config) MasterHosts() hosts.Hosts

func (*Config) SetupEnvs

func (c *Config) SetupEnvs() string

func (*Config) Validate

func (c *Config) Validate() error

func (*Config) WorkerHosts

func (c *Config) WorkerHosts() hosts.Hosts

Jump to

Keyboard shortcuts

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