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 GetAddOnParameters(client *cmv1.AddOnsClient, addOnID string) (*cmv1.AddOnParameterList, 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 IsEmptyCIDR(cidr net.IPNet) bool
- func IsValidClusterKey(clusterKey string) bool
- func IsValidClusterName(clusterName string) bool
- func UninstallAddOn(client *cmv1.ClustersClient, clusterKey string, creatorARN string, ...) error
- func UpdateCluster(client *cmv1.ClustersClient, clusterKey string, creatorARN string, config Spec) error
- type AddOnParam
- type Spec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCluster ¶
func DeleteCluster ¶
func GetAddOnParameters ¶ added in v0.1.5
func GetAddOnParameters(client *cmv1.AddOnsClient, addOnID string) (*cmv1.AddOnParameterList, error)
func GetCluster ¶
func GetClusters ¶
func HasClusters ¶
func HasClusters(client *cmv1.ClustersClient, creatorARN string) (bool, error)
func InstallAddOn ¶
func InstallAddOn(client *cmv1.ClustersClient, clusterKey string, creatorARN string, addOnID string, params []AddOnParam) error
func IsValidClusterKey ¶
func IsValidClusterName ¶
func UninstallAddOn ¶ added in v0.1.5
func UpdateCluster ¶
Types ¶
type AddOnParam ¶ added in v0.1.5
type Spec ¶
type Spec struct {
// Basic configs
Name string
Region string
MultiAZ bool
Version string
ChannelGroup string
Expiration time.Time
Flavour string
// Scaling config
ComputeMachineType string
ComputeNodes int
Autoscaling bool
MinReplicas int
MaxReplicas int
// SubnetIDs
SubnetIds []string
// AvailabilityZones
AvailabilityZones []string
// Network config
MachineCIDR net.IPNet
ServiceCIDR net.IPNet
PodCIDR net.IPNet
HostPrefix int
Private *bool
// Properties
CustomProperties map[string]string
// 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.
Click to show internal directories.
Click to hide internal directories.