public_ips

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractPublicIPsInto

func ExtractPublicIPsInto(r pagination.Page, v interface{}) error

func IDFromName

func IDFromName(client *eclcloud.ServiceClient, name string) (string, error)

Types

type CreateOpts

type CreateOpts struct {
	Description   string `json:"description,omitempty"`
	InternetGwID  string `json:"internet_gw_id" required:"true"`
	Name          string `json:"name,omitempty"`
	SubmaskLength int    `json:"submask_length" required:"true"`
	TenantID      string `json:"tenant_id,omitempty"`
}

func (CreateOpts) ToPublicIPCreateMap

func (opts CreateOpts) ToPublicIPCreateMap() (map[string]interface{}, error)

type CreateOptsBuilder

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

type CreateResult

type CreateResult struct {
	// contains filtered or unexported fields
}

func (CreateResult) Extract

func (r CreateResult) Extract() (*PublicIP, error)

func (CreateResult) ExtractInto

func (r CreateResult) ExtractInto(v interface{}) error

type DeleteResult

type DeleteResult struct {
	eclcloud.ErrResult
}

func Delete

func Delete(c *eclcloud.ServiceClient, publicIPID string) (r DeleteResult)

type GetResult

type GetResult struct {
	// contains filtered or unexported fields
}

func Get

func Get(c *eclcloud.ServiceClient, publicIPID string) (r GetResult)

func (GetResult) Extract

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

func (GetResult) ExtractInto

func (r GetResult) ExtractInto(v interface{}) error

type ListOpts

type ListOpts struct {
	Cidr          string `q:"cidr"`
	Description   string `q:"description"`
	ID            string `q:"id"`
	InternetGwID  string `q:"internet_gw_id"`
	Name          string `q:"name"`
	Status        string `q:"status"`
	SubmaskLength int    `q:"submask_length"`
	TenantID      string `q:"tenant_id"`
}

func (ListOpts) ToPublicIPListQuery

func (opts ListOpts) ToPublicIPListQuery() (string, error)

type ListOptsBuilder

type ListOptsBuilder interface {
	ToPublicIPListQuery() (string, error)
}

type PublicIP

type PublicIP struct {
	Cidr          string `json:"cidr"`
	Description   string `json:"description"`
	ID            string `json:"id"`
	InternetGwID  string `json:"internet_gw_id"`
	Name          string `json:"name"`
	Status        string `json:"status"`
	SubmaskLength int    `json:"submask_length"`
	TenantID      string `json:"tenant_id"`
}

func ExtractPublicIPs

func ExtractPublicIPs(r pagination.Page) ([]PublicIP, error)

type PublicIPPage

type PublicIPPage struct {
	pagination.LinkedPageBase
}

func (PublicIPPage) IsEmpty

func (r PublicIPPage) IsEmpty() (bool, error)

func (PublicIPPage) NextPageURL

func (r PublicIPPage) NextPageURL() (string, error)

type UpdateOpts

type UpdateOpts struct {
	Description *string `json:"description,omitempty"`
	Name        *string `json:"name,omitempty"`
}

func (UpdateOpts) ToPublicIPUpdateMap

func (opts UpdateOpts) ToPublicIPUpdateMap() (map[string]interface{}, error)

type UpdateOptsBuilder

type UpdateOptsBuilder interface {
	ToPublicIPUpdateMap() (map[string]interface{}, error)
}

type UpdateResult

type UpdateResult struct {
	// contains filtered or unexported fields
}

func Update

func Update(c *eclcloud.ServiceClient, publicIPID string, opts UpdateOptsBuilder) (r UpdateResult)

func (UpdateResult) Extract

func (r UpdateResult) Extract() (*PublicIP, error)

func (UpdateResult) ExtractInto

func (r UpdateResult) ExtractInto(v interface{}) error

Directories

Path Synopsis
public_ips unit tests
public_ips unit tests

Jump to

Keyboard shortcuts

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