Documentation
¶
Index ¶
- Constants
- func CreateCluster(cmv1Client *cmv1.Client, config Spec) (*cmv1.Cluster, error)
- func GetCluster(client *cmv1.ClustersClient, clusterKey string) (*cmv1.Cluster, error)
- func GetClusterOauthURL(cluster *cmv1.Cluster) string
- func GetGroups(client *cmv1.ClustersClient, clusterID string) ([]*cmv1.Group, error)
- func GetIdentityProviders(client *cmv1.ClustersClient, clusterID string) ([]*cmv1.IdentityProvider, error)
- func GetIngresses(client *cmv1.ClustersClient, clusterID string) ([]*cmv1.Ingress, error)
- func GetMachineTypes(client *cmv1.Client, provider string) (machineTypes []*cmv1.MachineType, err error)
- func IsValidClusterKey(clusterKey string) bool
- func PrintClusterDesctipion(connection *sdk.Connection, cluster *cmv1.Cluster) error
- func UpdateCluster(client *cmv1.ClustersClient, clusterID string, config Spec) error
- func ValidateClusterExpiration(expirationTime string, expirationDuration time.Duration) (expiration time.Time, err error)
- type AWSCredentials
- type AddOnItem
- type Spec
Constants ¶
View Source
const AWS = "aws"
Variables ¶
This section is empty.
Functions ¶
func CreateCluster ¶ added in v0.1.42
func GetCluster ¶ added in v0.1.39
func GetClusterOauthURL ¶ added in v0.1.39
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 GetMachineTypes ¶ added in v0.1.42
func IsValidClusterKey ¶ added in v0.1.39
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
Types ¶
type AWSCredentials ¶ added in v0.1.42
type AddOnItem ¶ added in v0.1.40
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.
Click to show internal directories.
Click to hide internal directories.