Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RequestOpts = golangsdk.RequestOpts{ MoreHeaders: map[string]string{"Content-Type": "application/json", "X-Language": "en-us"}, }
Functions ¶
func Create ¶
func Create(c *golangsdk.ServiceClient, instanceID string, tags []ResourceTag) error
func Delete ¶
func Delete(c *golangsdk.ServiceClient, instanceID string, tags []ResourceTag) error
Types ¶
type ResourceTag ¶
type ResourceTag struct { Key string `json:"key" required:"ture"` // Value is not required, but it must be included in the parameter. Value string `json:"value"` }
ResourceTag is in key-value format
func Get ¶
func Get(c *golangsdk.ServiceClient, instanceID string) ([]ResourceTag, error)
type ResourceTagList ¶
type ResourceTagList struct {
Tags []ResourceTag `json:"tags"`
}
func List ¶
func List(c *golangsdk.ServiceClient) (*ResourceTagList, error)
Click to show internal directories.
Click to hide internal directories.