cluster

package
v0.1.44 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const AWS = "aws"

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 GetMachinePools added in v0.1.44

func GetMachinePools(client *cmv1.ClustersClient, clusterID string) ([]*cmv1.MachinePool, error)

func IsValidClusterKey added in v0.1.39

func IsValidClusterKey(clusterKey string) bool

func PrintClusterDesctipion

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

func UpdateCluster added in v0.1.43

func UpdateCluster(client *cmv1.ClustersClient, clusterID string, config Spec) error

func ValidateClusterExpiration added in v0.1.43

func ValidateClusterExpiration(
	expirationTime string,
	expirationDuration time.Duration,
) (expiration time.Time, err error)

func ValidateMachineType added in v0.1.44

func ValidateMachineType(client *cmv1.Client, provider string, machineType string) (string, 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
	AWSCredentials AWSCredentials
	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