Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func List ¶
func List(client *gophercloud.ServiceClient, opts ListBuilder) pagination.Pager
Types ¶
type CreateOrDeleteBuilder ¶
type CreateOrDeleteOpts ¶
type CreateOrDeleteOpts struct { Action string `json:"action" required:"true"` Tags []Tag `json:"tags,omitempty"` }
func (CreateOrDeleteOpts) CreateOrDeleteMap ¶
func (opts CreateOrDeleteOpts) CreateOrDeleteMap() (map[string]interface{}, error)
type ErrorResult ¶
type ErrorResult struct {
gophercloud.ErrResult
}
func CreateOrDelete ¶
func CreateOrDelete(client *gophercloud.ServiceClient, opts CreateOrDeleteBuilder) (r ErrorResult)
func Update ¶
func Update(client *gophercloud.ServiceClient, opts UpdateBuilder) (r ErrorResult)
func (ErrorResult) Extract ¶
func (r ErrorResult) Extract() (*Tag, error)
type ListBuilder ¶
type ListOpts ¶
type ListOpts struct { Key string `q:"key" ` Value string `q:"value"` Limit int `q:"limit"` Marker string `q:"marker"` OrderField int `q:"order_field"` OrderMethod int `q:"order_method"` }
func (ListOpts) ToListQuery ¶
type ListPage ¶
type ListPage struct {
pagination.SinglePageBase
}
type TagResp ¶
type TagResp struct { Key string `q:"key"` Value string `q:"value"` Update_Time string `q:"update_time"` }
func ExtractTags ¶
func ExtractTags(r pagination.Page) ([]TagResp, error)
type UpdateBuilder ¶
type UpdateOpts ¶
type UpdateOpts struct { NewTag Tag `json:"new_tag,omitempty"` OldTag Tag `json:"old_tag,omitempty"` }
func (UpdateOpts) UpdateMap ¶
func (opts UpdateOpts) UpdateMap() (map[string]interface{}, error)
Click to show internal directories.
Click to hide internal directories.