backendecs

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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.

func Delete

func Delete(c *golangsdk.ServiceClient, lId string, opts DeleteOpts) (r elb.JobResult)

Update is an operation which modifies the attributes of the specified BackendECS.

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

type CreateOptsBuilder interface {
	ToBackendECSCreateMap() (map[string]interface{}, error)
}

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

type DeleteOptsBuilder interface {
	ToBackendECSDeleteMap() (map[string]interface{}, error)
}

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 GetOptsBuilder interface {
	ToBackendECSListQuery() (string, error)
}

type GetResult

type GetResult struct {
	golangsdk.Result
}

GetResult represents the result of a get operation.

func Get

func Get(c *golangsdk.ServiceClient, lId string, backendId string) (r GetResult)

Get retrieves a particular Loadbalancer based on its unique ID.

func (GetResult) Extract

func (r GetResult) Extract() (*Backend, error)

type Listener

type Listener struct {
	ID string `json:"id"`
}

type RemoveMemberField

type RemoveMemberField struct {
	ID string `json:"id" required:"true"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL