Documentation ¶
Index ¶
- func Create(c *golangsdk.ServiceClient, opts CreateOptsBuilder, lId string) (r elb.JobResult)
- func Delete(c *golangsdk.ServiceClient, lId string, opts DeleteOpts) (r elb.JobResult)
- type Backend
- type CreateOpts
- type CreateOptsBuilder
- type DeleteOpts
- type DeleteOptsBuilder
- type GetOptsBuilder
- type GetResult
- type Listener
- type RemoveMemberField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(c *golangsdk.ServiceClient, opts CreateOptsBuilder, lId string) (r elb.JobResult)
Create is an operation which provisions a new loadbalancer based on the configuration defined in the CreateOpts struct. Once the request is validated and progress has started on the provisioning process, a CreateResult will be returned.
Users with an admin role can create loadbalancers on behalf of other tenants by specifying a TenantID attribute different than their own.
Types ¶
type Backend ¶
type Backend struct { ServerAddress string `json:"server_address"` ID string `json:"id"` Address string `json:"address"` Status string `json:"status"` HealthStatus string `json:"health_status"` UpdateTime string `json:"update_time"` CreateTime string `json:"create_time"` ServerName string `json:"server_name"` ServerID string `json:"server_id"` Listeners []Listener `json:"listeners"` }
type CreateOpts ¶
type CreateOpts struct { ServerId string `json:"server_id" required:"true"` Address string `json:"address" required:"true"` }
CreateOpts is the common options struct used in this package's Create operation.
func (CreateOpts) ToBackendECSCreateMap ¶
func (opts CreateOpts) ToBackendECSCreateMap() (map[string]interface{}, error)
ToBackendECSCreateMap casts a CreateOpts struct to a map.
type CreateOptsBuilder ¶
CreateOptsBuilder is the interface options structs have to satisfy in order to be used in the main Create operation in this package. Since many extensions decorate or modify the common logic, it is useful for them to satisfy a basic interface in order for them to be used.
type DeleteOpts ¶
type DeleteOpts struct {
RemoveMember []RemoveMemberField `json:"removeMember" required:"true"`
}
func (DeleteOpts) ToBackendECSDeleteMap ¶
func (opts DeleteOpts) ToBackendECSDeleteMap() (map[string]interface{}, error)
ToBackendECSUpdateMap casts a UpdateOpts struct to a map.
type DeleteOptsBuilder ¶
UpdateOptsBuilder is the interface options structs have to satisfy in order to be used in the main Update operation in this package. Since many extensions decorate or modify the common logic, it is useful for them to satisfy a basic interface in order for them to be used.
type GetOptsBuilder ¶
type GetResult ¶
type GetResult struct {
golangsdk.Result
}
GetResult represents the result of a get operation.
type RemoveMemberField ¶
type RemoveMemberField struct {
ID string `json:"id" required:"true"`
}