Documentation ¶
Index ¶
- Variables
- func Load(path string) (*api.Cluster, error)
- func NewConfig(t ConfigType) api.Cluster
- func Parse(c *api.Cluster) error
- func Validate(c *api.Cluster) error
- func ValidateGeneral(c *api.General) error
- func ValidateHetzner(c *api.Hetzner) error
- func ValidateLocal(c *api.Local) error
- func ValidateNetbird(c *api.Netbird) error
- func ValidateType(arg string) error
- type ConfigType
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ValidClusterTypes = []ConfigType{Local, Hetzner}
)
Functions ¶
func NewConfig ¶
func NewConfig(t ConfigType) api.Cluster
func ValidateGeneral ¶
func ValidateHetzner ¶
func ValidateLocal ¶
func ValidateNetbird ¶
func ValidateType ¶
Types ¶
type ConfigType ¶
type ConfigType string
const ( Local ConfigType = "local" Hetzner ConfigType = "hetzner" )
func (ConfigType) String ¶
func (c ConfigType) String() string
Click to show internal directories.
Click to hide internal directories.