Versions in this module Expand all Collapse all v1 v1.0.0 Apr 30, 2018 Changes in this version + func GetFormattedInstanceList(instances []Instance) []string + func GetIDFromEnv(name string) (int, error) + func InstanceInList(instances []Instance, i string) bool + func PrettyPrint(v interface{}) + func StringInSlice(s string, list []string) bool + type APIClient struct + func NewClient(token, endpoint string) *APIClient + func NewClientFromEnv() (*APIClient, error) + func (c *APIClient) AddNode(orgID, clusterID int, newNode NodeAdd) ([]Node, error) + func (c *APIClient) AddNodesToNodePool(orgID, clusterID, nodepoolID int, newNode NodeAddToPool) ([]Node, error) + func (c *APIClient) CreateCluster(orgID int, cluster Cluster) (*Cluster, error) + func (c *APIClient) CreateKeyset(orgID int, keyset Keyset) (*Keyset, error) + func (c *APIClient) CreateNodePool(orgID, clusterID int, newPool NodePool) (*NodePool, error) + func (c *APIClient) DeleteCluster(orgID, clusterID int) error + func (c *APIClient) DeleteKeyset(orgID, keysetID int) error + func (c *APIClient) DeleteNode(orgID, clusterID, nodeID int) error + func (c *APIClient) GetCluster(orgID, clusterID int) (*Cluster, error) + func (c *APIClient) GetClusterState(orgID, clusterID int) (string, error) + func (c *APIClient) GetClusters(orgID int) ([]Cluster, error) + func (c *APIClient) GetInstanceSpecs(prov string) ([]Instance, error) + func (c *APIClient) GetKeyset(orgID, keysetID int) (*Keyset, error) + func (c *APIClient) GetKeysets(orgID int) ([]Keyset, error) + func (c *APIClient) GetNode(orgID, clusterID, nodeID int) (*Node, error) + func (c *APIClient) GetNodePool(orgID, clusterID, nodepoolID int) (*NodePool, error) + func (c *APIClient) GetNodePoolState(orgID, clusterID, nodepoolID int) (string, error) + func (c *APIClient) GetNodePools(orgID, clusterID int) ([]NodePool, error) + func (c *APIClient) GetNodeState(orgID, clusterID, nodeID int) (string, error) + func (c *APIClient) GetNodes(orgID, clusterID int) ([]Node, error) + func (c *APIClient) GetOrganization(orgID int) (*Organization, error) + func (c *APIClient) GetOrganizations() ([]Organization, error) + type Cluster struct + Channel string + Created time.Time + DashboardEnabled bool + DashboardInstalled bool + EtcdType string + ID int + Image string + InstanceID string + KubeconfigPath string + KubernetesVersion string + MasterCount int + MasterSize string + Name string + NodeCount int + Notified bool + OrganizationKey int + Owner int + Platform string + ProjectID string + Provider string + ProviderBalancerID string + ProviderKey int + ProviderKeyName string + ProviderNetworkCdr string + ProviderNetworkID string + ProviderResourceGp string + ProviderSubnetCidr string + ProviderSubnetID string + RbacEnabled bool + Region string + SSHKeySet int + Solutions []Solution + State string + Updated time.Time + WorkerCount int + WorkerSize string + Zone string + type Instance struct + Name string + Specs MachineSpecs + type Key struct + Fingerprint string + ID int + Type string + User int + Value string + type Keyset struct + Category string + Created string + Entity string + ID int + IsDefault bool + Keys []Key + Name string + Org int + User int + Workspaces []int + type MachineSpecs struct + CPU int + Memory int + Name string + type Node struct + ClusterID int + Created time.Time + Group string + ID int + Image string + InstanceID string + Location string + Name string + NodePoolID int + NodePoolName string + Platform string + PrivateIP string + PublicIP string + Role string + Size string + State string + Updated time.Time + type NodeAdd struct + Count int + Group string + ProviderSubnetCidr string + ProviderSubnetID string + Role string + Size string + Zone string + type NodeAddToPool struct + Count int + Group string + NodePoolID int + ProviderSubnetCidr string + ProviderSubnetID string + Role string + Zone string + type NodePool struct + Autoscaled bool + CPU string + Channel string + ClusterID int + Created time.Time + Default bool + Deleted time.Time + ID int + InstanceID string + Labels string + MaxCount int + Memory string + MinCount int + Name string + NodeCount int + Platform string + ProviderSubnetCidr string + ProviderSubnetID string + Role string + Size string + State string + Updated time.Time + Zone string + type Organization struct + ID int + Name string + type ProviderSpecs struct + Config interface{} + Filters interface{} + Name string + type Solution struct + ID int + Keyset int + MaxNodes int + Solution string