Documentation
¶
Index ¶
- func CreateCluster(client *cmv1.ClustersClient, config Spec) (*cmv1.Cluster, error)
- func DeleteCluster(client *cmv1.ClustersClient, clusterKey string, creatorARN string) (*cmv1.Cluster, error)
- func GetCluster(client *cmv1.ClustersClient, clusterKey string, creatorARN string) (*cmv1.Cluster, error)
- func GetClusters(client *cmv1.ClustersClient, creatorARN string, count int) (clusters []*cmv1.Cluster, err error)
- func HasClusters(client *cmv1.ClustersClient, creatorARN string) (bool, error)
- func InstallAddOn(client *cmv1.ClustersClient, clusterKey string, creatorARN string, ...) error
- func IsValidClusterKey(clusterKey string) bool
- func UpdateCluster(client *cmv1.ClustersClient, clusterKey string, creatorARN string, config Spec) error
- type Spec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCluster ¶
func DeleteCluster ¶
func GetCluster ¶
func GetClusters ¶
func HasClusters ¶
func HasClusters(client *cmv1.ClustersClient, creatorARN string) (bool, error)
func InstallAddOn ¶ added in v0.0.3
func IsValidClusterKey ¶
func UpdateCluster ¶
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
}
Spec is the configuration for a cluster spec.
Click to show internal directories.
Click to hide internal directories.