Documentation
¶
Index ¶
- type Service
- func (s *Service) ConvertNamesToTags(ctx context.Context, tagNames []string) ([]string, error)
- func (s *Service) CreateTag(ctx context.Context, name string) error
- func (s *Service) CreateTagWithCustomColor(ctx context.Context, name, description, color string, createdBy string) (*tag.Tag, error)
- func (s *Service) DeleteTag(ctx context.Context, name string) error
- func (s *Service) DeleteTagByID(ctx context.Context, tagID string) error
- func (s *Service) EnsureTagsExist(ctx context.Context, tags []string) error
- func (s *Service) GetAvailableColorNames() []string
- func (s *Service) GetAvailableColors() []string
- func (s *Service) GetTagByID(ctx context.Context, tagID string) (*tag.Tag, error)
- func (s *Service) GetTagsByIDs(ctx context.Context, tagIDs []string) ([]*tag.Tag, error)
- func (s *Service) ListAllTags(ctx context.Context) ([]*tag.Tag, error)
- func (s *Service) UpdateAlertTagsByID(ctx context.Context, alertID types.AlertID, tagIDs []string) (*alert.Alert, error)
- func (s *Service) UpdateAlertTagsByName(ctx context.Context, alertID types.AlertID, tagNames []string) (*alert.Alert, error)
- func (s *Service) UpdateTagMetadata(ctx context.Context, tagID string, name, description, color string) (*tag.Tag, error)
- func (s *Service) UpdateTicketTagsByID(ctx context.Context, ticketID types.TicketID, tagIDs []string) (*ticket.Ticket, error)
- func (s *Service) UpdateTicketTagsByName(ctx context.Context, ticketID types.TicketID, tagNames []string) (*ticket.Ticket, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides tag management functionality
func (*Service) ConvertNamesToTags ¶
ConvertNamesToTags converts tag names to tag IDs, creating tags if they don't exist
func (*Service) CreateTagWithCustomColor ¶
func (*Service) DeleteTag ¶
DeleteTag deletes a tag and removes it from all alerts and tickets (deprecated - use DeleteTagByName)
func (*Service) DeleteTagByID ¶
func (*Service) EnsureTagsExist ¶
EnsureTagsExist checks if tags exist and creates them if they don't (deprecated - use ConvertNamesToIDs)
func (*Service) GetAvailableColorNames ¶
GetAvailableColorNames returns user-friendly color names
func (*Service) GetAvailableColors ¶
GetAvailableColors returns the list of available tag colors (Tailwind classes)
func (*Service) GetTagByID ¶
func (*Service) GetTagsByIDs ¶
func (*Service) ListAllTags ¶
ListAllTags returns all tags using the new ID-based system
func (*Service) UpdateAlertTagsByID ¶
func (*Service) UpdateAlertTagsByName ¶
func (s *Service) UpdateAlertTagsByName(ctx context.Context, alertID types.AlertID, tagNames []string) (*alert.Alert, error)
UpdateAlertTagsByName provides compatibility for name-based tag updates
func (*Service) UpdateTagMetadata ¶
func (*Service) UpdateTicketTagsByID ¶
Click to show internal directories.
Click to hide internal directories.