cluster

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	Ctx    *context.Context
	Client *hcloud.Client
	Logger *utils.Logger
	Dir    string
	Config Config
}

func (*Cluster) Create

func (cl *Cluster) Create(logger *utils.Logger, clusterName string, hcloudLocation string, hcloudNetworkZone string, hcloudToken string) error

func (*Cluster) Load

func (cl *Cluster) Load(configFile string, logger *utils.Logger) error

func (Cluster) Save

func (cl Cluster) Save(configFile string) error

type Config

type Config struct {
	ClusterName string       `yaml:"clusterName"`
	Hcloud      ConfigHcloud `yaml:"hcloud"`
}

type ConfigHcloud

type ConfigHcloud struct {
	Location    string `yaml:"location"`
	NetworkZone string `yaml:"networkZone"`
	Token       string `yaml:"token"`
}

Jump to

Keyboard shortcuts

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