globaltaggingv3

package
v0.0.0-...-9e96525 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 8 Imported by: 18

Documentation

Index

Constants

View Source
const ErrCodeAPICreation = "APICreationError"

ErrCodeAPICreation ...

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobalTaggingServiceAPI

type GlobalTaggingServiceAPI interface {
	Tags() Tags
}

ICDServiceAPI is the Cloud Internet Services API ...

func New

New ...

type Item

type Item struct {
	Name string `json:"name"`
}

type TagResource

type TagResource struct {
	ResourceID   string `json:"resource_id"`
	ResourceType string `json:"resource_type,omitempty"`
}

type TagResult

type TagResult struct {
	ResourceID  string `json:"resource_id"`
	IsError     string `json:"isError"`
	Response    string `json:"response"`
	Message     string `json:"message"`
	Code        string `json:"code"`
	Level       string `json:"level"`
	HttpCode    int    `json:"httpCode"`
	Description string `json:"description"`
	MoreInfo    string `json:"more_info"`
}

type TagUpdateResult

type TagUpdateResult struct {
	Results []TagResult `json:"results"`
}

type TaggingBody

type TaggingBody struct {
	TagResources []TagResource `json:"resources"`
	TagName      string        `json:"tag_name,omitempty"`
	TagNames     []string      `json:"tag_names,omitempty"`
}

type TaggingResult

type TaggingResult struct {
	Items []Item `json:"items"`
}

type Tags

type Tags interface {
	GetTags(resourceID string) (TaggingResult, error)
	AttachTags(resourceID string, taglist []string) (TagUpdateResult, error)
	DetachTags(resourceID string, taglist []string) (TagUpdateResult, error)
	DeleteTag(tag string) (TagUpdateResult, error)
}

Jump to

Keyboard shortcuts

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