cluster

package
v0.1.42 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCluster added in v0.1.42

func CreateCluster(cmv1Client *cmv1.Client, config Spec) (*cmv1.Cluster, error)

func GetCluster added in v0.1.39

func GetCluster(client *cmv1.ClustersClient, clusterKey string) (*cmv1.Cluster, error)

func GetClusterOauthURL added in v0.1.39

func GetClusterOauthURL(cluster *cmv1.Cluster) string

func GetGroups added in v0.1.39

func GetGroups(client *cmv1.ClustersClient, clusterID string) ([]*cmv1.Group, error)

func GetIdentityProviders added in v0.1.39

func GetIdentityProviders(client *cmv1.ClustersClient, clusterID string) ([]*cmv1.IdentityProvider, error)

func GetIngresses added in v0.1.39

func GetIngresses(client *cmv1.ClustersClient, clusterID string) ([]*cmv1.Ingress, error)

func GetMachineTypes added in v0.1.42

func GetMachineTypes(client *cmv1.Client, provider string) (machineTypes []*cmv1.MachineType, err error)

func IsValidClusterKey added in v0.1.39

func IsValidClusterKey(clusterKey string) bool

func PrintClusterDesctipion

func PrintClusterDesctipion(connection *sdk.Connection, cluster *cmv1.Cluster) error

Types

type AWSCredentials added in v0.1.42

type AWSCredentials struct {
	AccountID       string
	AccessKeyID     string
	SecretAccessKey string
}

type AddOnItem added in v0.1.40

type AddOnItem struct {
	ID        string
	Name      string
	State     string
	Available bool
}

func GetClusterAddOns added in v0.1.40

func GetClusterAddOns(connection *sdk.Connection, clusterID string) ([]*AddOnItem, error)

type Spec added in v0.1.42

type Spec struct {
	// Basic configs
	Name       string
	Region     string
	Provider   string
	Flavour    string
	MultiAZ    bool
	Ccs        bool
	Version    string
	Expiration time.Time

	// Scaling config
	ComputeMachineType string
	ComputeNodes       int

	// Network config
	MachineCIDR net.IPNet
	ServiceCIDR net.IPNet
	PodCIDR     net.IPNet
	HostPrefix  int
	Private     *bool

	// Properties
	CustomProperties map[string]string
}

Spec is the configuration for a cluster spec.

Jump to

Keyboard shortcuts

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