Versions in this module Expand all Collapse all v1 v1.2.0 Mar 27, 2021 Changes in this version + const FlagOnlyFailedJobs + type ProjectIdentifier struct + Org string + Project string + VCSType string + func CreateProjectIdentifierFromSlug(fullSlug string) (*ProjectIdentifier, string) + func (pi *ProjectIdentifier) ToCircleURL() string + func (pi *ProjectIdentifier) ToMarkdown() string + func (pi *ProjectIdentifier) ToSlug() string + type Store struct + func NewStore(api plugin.API) (Store, error) + func (s *Store) DeleteTokenForUser(userID string) error + func (s *Store) GetDefaultProject(userID string) (*ProjectIdentifier, error) + func (s *Store) GetSubscriptions() (*Subscriptions, error) + func (s *Store) GetTokenForUser(userID, encryptionKey string) (string, error) + func (s *Store) StoreDefaultProject(userID string, project ProjectIdentifier) error + func (s *Store) StoreSubscriptions(subs *Subscriptions) error + func (s *Store) StoreTokenForUser(userID, circleciToken, encryptionKey string) error + type Subscription struct + ChannelID string + CreatorID string + Flags SubscriptionFlags + ProjectInformation ProjectIdentifier + func (s *Subscription) ToSlackAttachmentField(username string) *model.SlackAttachmentField + type SubscriptionFlags struct + OnlyFailedBuilds bool + func (s *SubscriptionFlags) AddFlag(flag string) error + func (s SubscriptionFlags) String() string + type Subscriptions struct + Repositories map[string][]*Subscription + func (s *Subscriptions) AddSubscription(newSub *Subscription) bool + func (s *Subscriptions) GetFilteredChannelsForJob(conf *ProjectIdentifier, isFailed bool) []string + func (s *Subscriptions) GetSubscribedChannelsForProject(conf *ProjectIdentifier) []string + func (s *Subscriptions) GetSubscriptionsByChannel(channelID string) []*Subscription + func (s *Subscriptions) GetSubscriptionsForProject(conf *ProjectIdentifier) []*Subscription + func (s *Subscriptions) RemoveSubscription(channelID string, conf *ProjectIdentifier) bool