Documentation ¶
Overview ¶
Package globaltagging implements globaltagging code. Manage tags for cloud resources using Global Tagging APIs.
Index ¶
- type GlobalTagging
- type Service
- func (s *Service) AttachTag(options *globaltaggingv1.AttachTagOptions) (*globaltaggingv1.TagResults, *core.DetailedResponse, error)
- func (s *Service) CreateTag(options *globaltaggingv1.CreateTagOptions) (*globaltaggingv1.CreateTagResults, *core.DetailedResponse, error)
- func (s *Service) GetTagByName(tagName string) (*globaltaggingv1.Tag, error)
- type ServiceOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GlobalTagging ¶
type GlobalTagging interface { CreateTag(*globaltaggingv1.CreateTagOptions) (*globaltaggingv1.CreateTagResults, *core.DetailedResponse, error) AttachTag(*globaltaggingv1.AttachTagOptions) (*globaltaggingv1.TagResults, *core.DetailedResponse, error) GetTagByName(string) (*globaltaggingv1.Tag, error) }
GlobalTagging interface defines a method that a IBMCLOUD service object should implement in order to use the manage tags with the Global Tagging APIs.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service holds the IBM Cloud Global Tagging Service specific information.
func NewService ¶
func NewService(options ServiceOptions) (*Service, error)
NewService returns a new service for the IBM Cloud Global Tagging api client.
func (*Service) AttachTag ¶
func (s *Service) AttachTag(options *globaltaggingv1.AttachTagOptions) (*globaltaggingv1.TagResults, *core.DetailedResponse, error)
AttachTag will add tag(s) to resource(s).
func (*Service) CreateTag ¶
func (s *Service) CreateTag(options *globaltaggingv1.CreateTagOptions) (*globaltaggingv1.CreateTagResults, *core.DetailedResponse, error)
CreateTag creates a new Tag.
func (*Service) GetTagByName ¶
func (s *Service) GetTagByName(tagName string) (*globaltaggingv1.Tag, error)
GetTagByName returns the Tag with the provided name, if found.
type ServiceOptions ¶
type ServiceOptions struct {
*globaltaggingv1.GlobalTaggingV1Options
}
ServiceOptions holds the IBM Cloud Global Tagging Service Options specific information.