tags

package
v0.0.0-...-63319d1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MPL-2.0, Apache-2.0 Imports: 1 Imported by: 0

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)

Jump to

Keyboard shortcuts

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