Documentation
¶
Index ¶
- func DeleteByID(client newclient.Client, spaceID string, ID string) error
- func Get(client newclient.Client, spaceID string, tagSetsQuery TagSetsQuery) (*resources.Resources[*TagSet], error)
- func IsNil(i interface{}) bool
- type Tag
- type TagSet
- type TagSetService
- func (s *TagSetService) Add(tagSet *TagSet) (*TagSet, error)deprecated
- func (s *TagSetService) Get(tagSetsQuery TagSetsQuery) (*resources.Resources[*TagSet], error)deprecated
- func (s *TagSetService) GetAll() ([]*TagSet, error)
- func (s *TagSetService) GetByID(id string) (*TagSet, error)deprecated
- func (s *TagSetService) GetByName(name string) (*TagSet, error)
- func (s *TagSetService) Update(tagSet *TagSet) (*TagSet, error)deprecated
- type TagSetsQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteByID ¶ added in v2.33.0
DeleteByID deletes the tag set that matches the provided ID.
Types ¶
type Tag ¶
type TagSet ¶
type TagSet struct {
Description string `json:"Description"`
Name string `json:"Name"`
SortOrder int32 `json:"SortOrder,omitempty"`
SpaceID string `json:"SpaceId,omitempty"`
Tags []*Tag `json:"Tags,omitempty"`
resources.Resource
}
type TagSetService ¶
type TagSetService struct {
services.CanDeleteService
// contains filtered or unexported fields
}
func NewTagSetService ¶
func NewTagSetService(sling *sling.Sling, uriTemplate string, sortOrderPath string) *TagSetService
func (*TagSetService) Add
deprecated
func (s *TagSetService) Add(tagSet *TagSet) (*TagSet, error)
Add creates a new tag set.
Deprecated: Use tagsets.Add
func (*TagSetService) Get
deprecated
func (s *TagSetService) Get(tagSetsQuery TagSetsQuery) (*resources.Resources[*TagSet], error)
Get returns a collection of tag sets based on the criteria defined by its input query parameter. If an error occurs, an empty collection is returned along with the associated error.
Deprecated: Use tagsets.Get
func (*TagSetService) GetAll ¶
func (s *TagSetService) GetAll() ([]*TagSet, error)
GetAll returns all tag sets. If none can be found or an error occurs, it returns an empty collection.
func (*TagSetService) GetByID
deprecated
func (s *TagSetService) GetByID(id string) (*TagSet, error)
GetByID returns the tag set that matches the input ID. If one cannot be found, it returns nil and an error.
Deprecated: Use tagsets.GetByID
func (*TagSetService) GetByName ¶
func (s *TagSetService) GetByName(name string) (*TagSet, error)
GetByName performs a lookup and returns the TagSet with a matching name.
func (*TagSetService) Update
deprecated
func (s *TagSetService) Update(tagSet *TagSet) (*TagSet, error)
Update modifies a tag set based on the one provided as input.
Deprecated: Use tagsets.Update