Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Civo ¶
type Civo struct { Civoer // contains filtered or unexported fields }
Civo holds the Civoer interface and http client
func (*Civo) CreateCluster ¶
CreateCluster calls create from the Civo API
func (*Civo) DeleteCluster ¶
DeleteCluster calls delete from the Civo API
func (*Civo) GetClusterId ¶
GetClusterId gets an ID for a given cluster name
func (*Civo) GetClusterNames ¶
GetClusterNames gets a list of Clusters from the Civo API
type CivoCtl ¶
CivoCtl holds the config and interface for a Civo Controller
func NewCivoCtl ¶
NewCivoCtl configures a Civo interface
type Civoer ¶
type Civoer interface { GetClusterId(name string) (id string, err error) GetClusterNames() []string CreateCluster(name string) error DeleteCluster(name string) error // contains filtered or unexported methods }
Civoer interfaces with the Civo API
type Cluster ¶ added in v0.3.0
type Cluster struct { ID string `json:"id"` Name string `json:"name"` Version string `json:"version"` Status string `json:"status"` Ready bool `json:"ready"` NumTargetNodes int `json:"num_target_nodes"` TargetNodesSize string `json:"target_nodes_size"` Kubeconfig string `json:"kubeconfig"` KubernetesVersion string `json:"kubernetes_version"` DNSEntry string `json:"dns_entry"` Tags []interface{} `json:"tags"` }
type Clusters ¶ added in v0.3.0
type Clusters struct {
Items []Cluster `json:"items"`
}
Clusters is the Civo API response for Clusters list
Click to show internal directories.
Click to hide internal directories.