Documentation ¶
Overview ¶
Package resource implements API functions residing under /core/resource. This path contains methods for querying resources and attaching tags to them.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { List(ctx context.Context, page, limit int) ([]Summary, error) Get(ctx context.Context, id string) (Info, error) AttachTag(ctx context.Context, resourceID, tagName string) ([]Summary, error) DetachTag(ctx context.Context, resourceID, tagName string) error }
API contains methods for tag control.
type Info ¶
type Info struct { Identifier string `json:"identifier"` Name string `json:"name"` Type Type `json:"resource_type"` Tags []string `json:"tags"` }
Info contains all information about a resource.
Click to show internal directories.
Click to hide internal directories.