cluster

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCluster

func CreateCluster(client *cmv1.ClustersClient, config Spec) (*cmv1.Cluster, error)

func DeleteCluster

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

func GetCluster

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

func GetClusters

func GetClusters(client *cmv1.ClustersClient, creatorARN string, count int) (clusters []*cmv1.Cluster, err error)

func HasClusters

func HasClusters(client *cmv1.ClustersClient, creatorARN string) (bool, error)

func InstallAddOn added in v0.0.3

func InstallAddOn(client *cmv1.ClustersClient, clusterKey string, creatorARN string, addOnID string) error

func IsValidClusterKey

func IsValidClusterKey(clusterKey string) bool

func IsValidClusterName added in v0.0.16

func IsValidClusterName(clusterName string) bool

func UpdateCluster

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

Types

type Spec added in v0.0.2

type Spec struct {
	// Basic configs
	Name         string
	Region       string
	MultiAZ      bool
	Version      string
	ChannelGroup 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

	// Access control config
	ClusterAdmins *bool

	// Simulate creating a cluster but don't actually create it
	DryRun *bool

	// Disable SCP checks in the installer by setting credentials mode as mint
	DisableSCPChecks *bool
}

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