Documentation ¶
Index ¶
- func Create(client *gophercloud.ServiceClient, opts OptsBuilder) (r clusters.CreateResult)
- func Delete(client *gophercloud.ServiceClient, id string) (r clusterDeleteResult)
- func Get(client *gophercloud.ServiceClient, id string) (r clusterConfigResult)
- func KubeConfigGet(client *gophercloud.ServiceClient, id string) (string, error)
- func SwitchState(client *gophercloud.ServiceClient, id string, opts OptsBuilder) (r clusters.UpdateResult)
- func UpdateMasters(client *gophercloud.ServiceClient, id string, opts OptsBuilder) (r clusters.UpdateResult)
- func Upgrade(client *gophercloud.ServiceClient, id string, opts OptsBuilder) (r clusters.UpdateResult)
- type ActionsBaseOpts
- type Cluster
- type CreateOpts
- type CreateResult
- type DeleteResult
- type GetResult
- type OptsBuilder
- type ResizeResult
- type UpdateOp
- type UpdateOpts
- type UpdateResult
- type UpgradeOpts
- type UpgradeResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(client *gophercloud.ServiceClient, opts OptsBuilder) (r clusters.CreateResult)
func Delete ¶
func Delete(client *gophercloud.ServiceClient, id string) (r clusterDeleteResult)
func Get ¶
func Get(client *gophercloud.ServiceClient, id string) (r clusterConfigResult)
Get gets cluster data from vkcs.
func KubeConfigGet ¶
func KubeConfigGet(client *gophercloud.ServiceClient, id string) (string, error)
func SwitchState ¶
func SwitchState(client *gophercloud.ServiceClient, id string, opts OptsBuilder) (r clusters.UpdateResult)
func UpdateMasters ¶
func UpdateMasters(client *gophercloud.ServiceClient, id string, opts OptsBuilder) (r clusters.UpdateResult)
func Upgrade ¶
func Upgrade(client *gophercloud.ServiceClient, id string, opts OptsBuilder) (r clusters.UpdateResult)
Types ¶
type ActionsBaseOpts ¶
type ActionsBaseOpts struct { Action string `json:"action" required:"true"` Payload interface{} `json:"payload,omitempty"` }
func (*ActionsBaseOpts) Map ¶
func (opts *ActionsBaseOpts) Map() (map[string]interface{}, error)
Map builds request params.
type Cluster ¶
type Cluster struct { APIAddress string `json:"api_address"` ClusterTemplateID string `json:"cluster_template_id"` CreatedAt time.Time `json:"created_at"` DiscoveryURL string `json:"discovery_url"` KeyPair string `json:"keypair"` Labels map[string]string `json:"labels"` Links []gophercloud.Link `json:"links"` MasterFlavorID string `json:"master_flavor_id"` MasterAddresses []string `json:"master_addresses"` MasterCount int `json:"master_count"` Name string `json:"name"` ProjectID string `json:"project_id"` StackID string `json:"stack_id"` Status string `json:"status"` NewStatus string `json:"new_status"` StatusReason string `json:"status_reason"` UUID string `json:"uuid"` UpdatedAt time.Time `json:"updated_at"` UserID string `json:"user_id"` NetworkID string `json:"network_id"` SubnetID string `json:"subnet_id"` PodsNetworkCidr string `json:"pods_network_cidr"` FloatingIPEnabled bool `json:"floating_ip_enabled"` APILBVIP string `json:"api_lb_vip"` APILBFIP string `json:"api_lb_fip"` IngressFloatingIP string `json:"ingress_floating_ip"` RegistryAuthPassword string `json:"registry_auth_password"` AvailabilityZone string `json:"availability_zone,omitempty"` AvailabilityZones []string `json:"availability_zones,omitempty"` LoadbalancerSubnetID string `json:"loadbalancer_subnet_id"` InsecureRegistries []string `json:"insecure_registries,omitempty"` DNSDomain string `json:"dns_domain,omitempty"` SecurityPolicySyncEnabled *bool `json:"security_policy_sync_enabled,omitempty"` ClusterType string `json:"cluster_type,omitempty"` }
type CreateOpts ¶
type CreateOpts struct { ClusterTemplateID string `json:"cluster_template_id" required:"true"` Keypair string `json:"keypair,omitempty"` Labels map[string]string `json:"labels,omitempty"` MasterCount int `json:"master_count,omitempty"` MasterFlavorID string `json:"master_flavor_id,omitempty"` Name string `json:"name"` NetworkID string `json:"network_id" required:"true"` SubnetID string `json:"subnet_id" required:"true"` PodsNetworkCidr string `json:"pods_network_cidr,omitempty"` FloatingIPEnabled bool `json:"floating_ip_enabled"` APILBVIP string `json:"api_lb_vip,omitempty"` APILBFIP string `json:"api_lb_fip,omitempty"` RegistryAuthPassword string `json:"registry_auth_password,omitempty"` AvailabilityZone string `json:"availability_zone,omitempty"` AvailabilityZones []string `json:"availability_zones,omitempty"` LoadbalancerSubnetID string `json:"loadbalancer_subnet_id,omitempty"` InsecureRegistries []string `json:"insecure_registries,omitempty"` DNSDomain string `json:"dns_domain,omitempty"` SecurityPolicySyncEnabled *bool `json:"security_policy_sync_enabled,omitempty"` ClusterType string `json:"cluster_type,omitempty"` }
CreateOpts contains options to create cluster
func (*CreateOpts) Map ¶
func (opts *CreateOpts) Map() (map[string]interface{}, error)
Map builds request params.
type CreateResult ¶
type CreateResult struct {
// contains filtered or unexported fields
}
CreateResult is the response of a Create operations.
func (CreateResult) Extract ¶
func (r CreateResult) Extract() (string, error)
type DeleteResult ¶
type DeleteResult struct {
gophercloud.ErrResult
}
DeleteResult is the result from a Delete operation. Call its Extract or ExtractErr method to determine if the call succeeded or failed.
type GetResult ¶
type GetResult struct {
// contains filtered or unexported fields
}
GetResult represents the result of a get operation.
type OptsBuilder ¶
type ResizeResult ¶
type ResizeResult struct {
// contains filtered or unexported fields
}
ResizeResult is the response of a Resize operations.
type UpdateOpts ¶ added in v0.5.1
type UpdateOpts struct { Op UpdateOp `json:"op" required:"true"` Path string `json:"path" required:"true"` Value interface{} `json:"value,omitempty"` }
func (*UpdateOpts) Map ¶ added in v0.5.1
func (opts *UpdateOpts) Map() (map[string]interface{}, error)
Map builds request params.
type UpdateResult ¶
type UpdateResult struct {
// contains filtered or unexported fields
}
UpdateResult is the response of a Update operations.
func Update ¶ added in v0.5.1
func Update(client *gophercloud.ServiceClient, id string, opts []OptsBuilder) (r UpdateResult)
func (UpdateResult) Extract ¶
func (r UpdateResult) Extract() (string, error)
type UpgradeOpts ¶
type UpgradeOpts struct { ClusterTemplateID string `json:"cluster_template_id" required:"true"` RollingEnabled bool `json:"rolling_enabled"` }
func (*UpgradeOpts) Map ¶
func (opts *UpgradeOpts) Map() (map[string]interface{}, error)
Map builds request params.
type UpgradeResult ¶
type UpgradeResult struct {
// contains filtered or unexported fields
}
UpgradeResult is the response of a Upgrade operations.
Click to show internal directories.
Click to hide internal directories.