Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateOpts ¶
type CreateOpts struct {
// Name of the ptr.
PtrName string `json:"ptrdname" required:"true"`
// Description of the ptr.
Description string `json:"description,omitempty"`
// TTL is the time to live of the ptr.
TTL int `json:"-"`
// Tags of the ptr.
Tags []Tag `json:"tags,omitempty"`
}
CreateOpts specifies the attributes used to create a ptr.
func (CreateOpts) ToPtrCreateMap ¶
func (opts CreateOpts) ToPtrCreateMap() (map[string]interface{}, error)
ToPtrCreateMap formats an CreateOpts structure into a request body.
type CreateOptsBuilder ¶
CreateOptsBuilder allows extensions to add additional attributes to the Create request.
type CreateResult ¶
type CreateResult struct {
// contains filtered or unexported fields
}
CreateResult is the result of a Create request. Call its Extract method to interpret the result as a Ptr.
func Create ¶
func Create(client *golangsdk.ServiceClient, region string, fip_id string, opts CreateOptsBuilder) (r CreateResult)
Create implements a ptr create/update request.
type DeleteResult ¶
type DeleteResult struct {
golangsdk.ErrResult
}
DeleteResult is the result of a Delete request. Call its ExtractErr method to determine if the request succeeded or failed.
func Delete ¶
func Delete(client *golangsdk.ServiceClient, id string) (r DeleteResult)
Delete implements a ptr delete request.
type GetResult ¶
type GetResult struct {
// contains filtered or unexported fields
}
GetResult is the result of a Get request. Call its Extract method to interpret the result as a Ptr.
type Ptr ¶
type Ptr struct {
// ID uniquely identifies this ptr amongst all other ptr records.
ID string `json:"id"`
// Name for this ptr.
PtrName string `json:"ptrdname"`
// Description for this ptr.
Description string `json:"description"`
// TTL is the Time to Live for the ptr.
TTL int `json:"ttl"`
// Address of the floating ip.
Address string `json:"address"`
// Status of the PTR.
Status string `json:"status"`
}
Ptr represents a ptr record.