Documentation ¶
Index ¶
- func GetURL(c *gophercloud.ServiceClient, region string, floatingipId string) string
- func List(client *gophercloud.ServiceClient, opts ListOptsBuilder) pagination.Pager
- func ListURL(c *gophercloud.ServiceClient) string
- func RestoreURL(c *gophercloud.ServiceClient, region string, floatingipId string) string
- func SetupURL(c *gophercloud.ServiceClient, region string, floatingipId string) string
- func UpdateURL(c *gophercloud.ServiceClient, region string, floatingipId string) string
- type DeletePtrResponse
- type FloatingIp
- type GetResult
- type Link
- type ListOpts
- type ListOptsBuilder
- type ListPtrResponse
- type Metadata
- type PtrPage
- type RestoreOpts
- type RestoreOptsBuilder
- type RestoreResult
- type SetupOpts
- type SetupOptsBuilder
- type SetupResult
- type UpdateOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetURL ¶
func GetURL(c *gophercloud.ServiceClient, region string, floatingipId string) string
func List ¶
func List(client *gophercloud.ServiceClient, opts ListOptsBuilder) pagination.Pager
Query PTR records of EIPs.
func ListURL ¶
func ListURL(c *gophercloud.ServiceClient) string
func RestoreURL ¶
func RestoreURL(c *gophercloud.ServiceClient, region string, floatingipId string) string
func SetupURL ¶
func SetupURL(c *gophercloud.ServiceClient, region string, floatingipId string) string
func UpdateURL ¶
func UpdateURL(c *gophercloud.ServiceClient, region string, floatingipId string) string
Types ¶
type DeletePtrResponse ¶
type DeletePtrResponse struct {
Ptrdname string `json:"ptrdname"`
}
type FloatingIp ¶
type FloatingIp struct { // PTR record ID, which is in {region}:{floatingip_id} format ID string `json:"id"` // Domain name of the PTR record Ptrdname string `json:"ptrdname"` // PTR record description Description string `json:"description"` // Caching period of a PTR record (in seconds).The default value // is 300s.The value range is 300–2147483647. TTL int `json:"ttl"` // EIP Address string `json:"address"` // Resource status.The value can be PENDING_CREATE, ACTIVE, // PENDING_DELETE, PENDING_UPDATE, or ERROR. Status string `json:"status"` // Requested operation on the resource.The value can be CREATE, // UPDATE, or DELETE. Action string `json:"action"` // Link of the current resource or other related resources.When a // response is broken into pages, a next link is provided to retrieve all results. Links Link `json:"links"` }
type GetResult ¶
type GetResult struct {
// contains filtered or unexported fields
}
func Get ¶
func Get(client *gophercloud.ServiceClient, region string, floatingIPId string) (r GetResult)
func (GetResult) Extract ¶
func (r GetResult) Extract() (*FloatingIp, error)
type ListOpts ¶
type ListOpts struct { // Start resource ID of pagination query.If the parameter is left // blank, only resources on the first page are queried. Marker string `q:"marker"` // Number of resources returned on each page.Value range: // 0–500.Commonly used values are 10, 20, and 50. Limit int `q:"limit"` Offset int `q:"offset"` }
func (ListOpts) ToListQuery ¶
type ListOptsBuilder ¶
type ListPtrResponse ¶
type ListPtrResponse struct { // Link of the current resource or other related resources.When a // response is broken into pages, a next link is provided to retrieve all results. Links Link `json:"links"` // Number of resources that meet the filter condition Metadata Metadata `json:"metadata"` // PTR record object list Floatingips []FloatingIp `json:"floatingips"` }
func ExtractPtrs ¶
func ExtractPtrs(r pagination.Page) (*ListPtrResponse, error)
type Metadata ¶
type Metadata struct { // Total number of resources TotalCount int `json:"total_count"` }
type PtrPage ¶
type PtrPage struct {
pagination.LinkedPageBase
}
type RestoreOpts ¶
type RestoreOpts struct { }
func (RestoreOpts) ToPtrsRestoreMap ¶
func (opts RestoreOpts) ToPtrsRestoreMap() (map[string]interface{}, error)
type RestoreOptsBuilder ¶
type RestoreResult ¶
type RestoreResult struct {
gophercloud.ErrResult
}
func Restore ¶
func Restore(client *gophercloud.ServiceClient, region string, floatingIPId string) (r RestoreResult)
type SetupOpts ¶
type SetupOpts struct { // Domain name of the PTR record Ptrdname string `json:"ptrdname" required:"true"` // PTR record description Description string `json:"description,omitempty"` // Caching period of a PTR record (in seconds).The default value // is 300s.The value range is 300–2147483647. TTL int `json:"ttl,omitempty"` }
func (SetupOpts) ToPtrsSetupMap ¶
type SetupOptsBuilder ¶
type SetupResult ¶
type SetupResult struct {
// contains filtered or unexported fields
}
func Setup ¶
func Setup(client *gophercloud.ServiceClient, region string, floatingipId string, opts SetupOptsBuilder) (r SetupResult)
func Update ¶
func Update(client *gophercloud.ServiceClient, region string, floatingipId string, opts SetupOptsBuilder) (r SetupResult)
func (SetupResult) Extract ¶
func (r SetupResult) Extract() (*FloatingIp, error)
type UpdateOpts ¶
type UpdateOpts struct { // Domain name of the PTR record Ptrdname string `json:"ptrdname" required:"true"` // PTR record description Description string `json:"description,omitempty"` // Caching period of a PTR record (in seconds).The default value // is 300s.The value range is 300–2147483647. TTL int `json:"ttl,omitempty"` }
func (UpdateOpts) ToPtrsSetupMap ¶
func (opts UpdateOpts) ToPtrsSetupMap() (map[string]interface{}, error)
Click to show internal directories.
Click to hide internal directories.