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 ...
type TagResource ¶
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)
}
Click to show internal directories.
Click to hide internal directories.