Documentation ¶
Index ¶
- Variables
- func CCEServiceURL(client *golangsdk.ServiceClient, cluster_id string, parts ...string) string
- type Addon
- type Annotations
- type CreateMetadata
- type CreateOpts
- type CreateOptsBuilder
- type CreateResult
- type DeleteResult
- type GetResult
- type MetaData
- type RequestSpec
- type Spec
- type Status
- type UpdataResult
- type Values
Constants ¶
This section is empty.
Variables ¶
var RequestOpts golangsdk.RequestOpts = golangsdk.RequestOpts{ MoreHeaders: map[string]string{"Content-Type": "application/json"}, }
Functions ¶
func CCEServiceURL ¶
Types ¶
type Addon ¶
type Addon struct { // API type, fixed value Addon Kind string `json:"kind" required:"true"` // API version, fixed value v3 ApiVersion string `json:"apiVersion" required:"true"` // Metadata of an Addon Metadata MetaData `json:"metadata" required:"true"` // Specifications of an Addon Spec Spec `json:"spec" required:"true"` // Status of an Addon Status Status `json:"status"` }
type Annotations ¶
type Annotations struct {
AddonInstallType string `json:"addon.install/type" required:"true"`
}
type CreateMetadata ¶
type CreateMetadata struct {
Anno Annotations `json:"annotations" required:"true"`
}
type CreateOpts ¶
type CreateOpts struct { // API type, fixed value Addon Kind string `json:"kind" required:"true"` // API version, fixed value v3 ApiVersion string `json:"apiVersion" required:"true"` // Metadata required to create an addon Metadata CreateMetadata `json:"metadata" required:"true"` // specifications to create an addon Spec RequestSpec `json:"spec" required:"true"` }
CreateOpts contains all the values needed to create a new addon
func (CreateOpts) ToAddonCreateMap ¶
func (opts CreateOpts) ToAddonCreateMap() (map[string]interface{}, error)
ToAddonCreateMap builds a create request body from CreateOpts.
type CreateOptsBuilder ¶
CreateOptsBuilder allows extensions to add additional parameters to the Create request.
type CreateResult ¶
type CreateResult struct {
// contains filtered or unexported fields
}
CreateResult represents the result of a create operation. Call its Extract method to interpret it as an Addon.
func Create ¶
func Create(c *golangsdk.ServiceClient, opts CreateOptsBuilder, cluster_id string) (r CreateResult)
Create accepts a CreateOpts struct and uses the values to create a new addon.
type DeleteResult ¶
type DeleteResult struct {
golangsdk.ErrResult
}
DeleteResult represents the result of a delete operation. Call its ExtractErr method to determine if the request succeeded or failed.
func Delete ¶
func Delete(c *golangsdk.ServiceClient, id, cluster_id string) (r DeleteResult)
Delete will permanently delete a particular addon based on its unique ID.
type GetResult ¶
type GetResult struct {
// contains filtered or unexported fields
}
GetResult represents the result of a get operation. Call its Extract method to interpret it as an Addon.
type MetaData ¶
type MetaData struct { // Addon unique name Name string `json:"name"` // Addon unique Id Id string `json:"uid"` // Addon tag, key/value pair format Labels map[string]string `json:"lables"` // Addon annotation, key/value pair format Annotations map[string]string `json:"annotaions"` }
Metadata required to create an addon
type RequestSpec ¶
type RequestSpec struct { // For the addon version. Version string `json:"version" required:"true"` // Cluster ID. ClusterID string `json:"clusterID" required:"true"` // Addon Template Name. AddonTemplateName string `json:"addonTemplateName" required:"true"` // Addon Parameters Values Values `json:"values" required:"true"` }
Specifications to create an addon
type Spec ¶
type Spec struct { // For the addon version. Version string `json:"version" required:"true"` // Cluster ID. ClusterID string `json:"clusterID" required:"true"` // Addon Template Name. AddonTemplateName string `json:"addonTemplateName" required:"true"` // Addon Template Type. AddonTemplateType string `json:"addonTemplateType" required:"true"` // Addon Template Labels. AddonTemplateLables []string `json:"addonTemplateLables,omitempty"` // Addon Description. Description string `json:"description" required:"true"` // Addon Parameters Values Values `json:"values" required:"true"` }
Specifications to create an addon
type UpdataResult ¶
type UpdataResult struct {
// contains filtered or unexported fields
}
UpdateResult represents the result of an update operation. Call its Extract method to interpret it as an Addon.