Documentation ¶
Index ¶
- func List(client *golangsdk.ServiceClient, opts ListOptsBuilder) pagination.Pager
- type Bandwidth
- type BandwidthOpts
- type Configuration
- type ConfigurationPage
- type CreateOpts
- type CreateOptsBuilder
- type CreateResult
- type DeleteResult
- type Disk
- type DiskOpts
- type Eip
- type EipOpts
- type GetResult
- type InstanceConfig
- type InstanceConfigOpts
- type ListOpts
- type ListOptsBuilder
- type Personality
- type PersonalityOpts
- type PublicIp
- type PublicIpOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func List ¶
func List(client *golangsdk.ServiceClient, opts ListOptsBuilder) pagination.Pager
List is method that can be able to list all configurations of autoscaling service
Types ¶
type BandwidthOpts ¶
type Configuration ¶
type Configuration struct { ID string `json:"scaling_configuration_id"` Tenant string `json:"tenant"` Name string `json:"scaling_configuration_name"` InstanceConfig InstanceConfig `json:"instance_config"` CreateTime string `json:"create_time"` }
type ConfigurationPage ¶
type ConfigurationPage struct {
pagination.SinglePageBase
}
func (ConfigurationPage) Extract ¶
func (r ConfigurationPage) Extract() ([]Configuration, error)
func (ConfigurationPage) IsEmpty ¶
func (r ConfigurationPage) IsEmpty() (bool, error)
IsEmpty returns true if a ListResult contains no Volumes.
type CreateOpts ¶
type CreateOpts struct { Name string `json:"scaling_configuration_name" required:"true"` InstanceConfig InstanceConfigOpts `json:"instance_config" required:"true"` }
func (CreateOpts) ToConfigurationCreateMap ¶
func (opts CreateOpts) ToConfigurationCreateMap() (map[string]interface{}, error)
type CreateOptsBuilder ¶
type CreateResult ¶
type CreateResult struct {
golangsdk.Result
}
CreateResult is a struct that contains all the return parameters of creation
func Create ¶
func Create(client *golangsdk.ServiceClient, opts CreateOptsBuilder) (r CreateResult)
Create is a method by which can be able to access to create a configuration of autoscaling
func (CreateResult) Extract ¶
func (r CreateResult) Extract() (string, error)
type DeleteResult ¶
type DeleteResult struct {
golangsdk.ErrResult
}
type DiskOpts ¶
type DiskOpts struct { Size int `json:"size" required:"true"` VolumeType string `json:"volume_type" required:"true"` DiskType string `json:"disk_type" required:"true"` Metadata map[string]string `json:"metadata,omitempty"` }
DiskOpts is an inner struct of InstanceConfigOpts
type EipOpts ¶
type EipOpts struct { IpType string Bandwidth BandwidthOpts `json:"-"` }
type GetResult ¶
type GetResult struct {
golangsdk.Result
}
func Get ¶
Get is a method by which can be able to access to get a configuration of autoscaling detailed information
func (GetResult) Extract ¶
func (r GetResult) Extract() (Configuration, error)
type InstanceConfig ¶
type InstanceConfig struct { FlavorRef string `json:"flavorRef"` ImageRef string `json:"imageRef"` Disk []Disk `json:"disk"` SSHKey string `json:"key_name"` InstanceName string `json:"instance_name"` InstanceID string `json:"instance_id"` AdminPass string `json:"adminPass"` Personality []Personality `json:"personality"` PublicIp PublicIp `json:"public_ip"` UserData string `json:"user_data"` Metadata map[string]interface{} `json:"metadata"` }
type InstanceConfigOpts ¶
type InstanceConfigOpts struct { ID string `json:"instance_id,omitempty"` FlavorRef string `json:"flavorRef,omitempty"` ImageRef string `json:"imageRef,omitempty"` Disk []DiskOpts `json:"disk,omitempty"` SSHKey string `json:"key_name,omitempty"` Personality []PersonalityOpts `json:"personality,omitempty"` PubicIp PublicIpOpts `json:"-"` // UserData contains configuration information or scripts to use upon launch. // Create will base64-encode it for you, if it isn't already. UserData []byte `json:"-"` Metadata map[string]interface{} `json:"metadata,omitempty"` // TODO not sure the type }
InstanceConfigOpts is an inner struct of CreateOpts
type ListOpts ¶
func (ListOpts) ToConfigurationListQuery ¶
type ListOptsBuilder ¶
type Personality ¶
type PersonalityOpts ¶
type PublicIpOpts ¶
type PublicIpOpts struct {
Eip EipOpts `json:"-"`
}
Click to show internal directories.
Click to hide internal directories.