Versions in this module Expand all Collapse all v1 v1.14.0 Nov 4, 2024 Changes in this version + const ThreadTypeOngoing + const ThreadTypeResolved + var ConfigJSONSchema string + type ActivityCmd struct + AssigneeIDs string + PageIdx int + Type ThreadType + type Assignee struct + DisplayName string + ID string + type Commands struct + Export *ExportCmd + Get *GetCmd + Pick *PickCmd + Resolve *ResolveCmd + Takeover *TakeoverCmd + type Config struct + Logger config.Logger + Persistence PersistenceConfig + Pick PickConfig + RoundRobin RoundRobinConfig + func MergeConfigs(configs []*executor.Config) (Config, error) + func (c *Config) Validate() error + type ConfigMapDumper struct + func NewConfigMapDumper(k8sCli kubernetes.Interface) *ConfigMapDumper + func (a *ConfigMapDumper) Get(namespace, name string) (string, error) + func (a *ConfigMapDumper) SaveOrUpdate(namespace, name, data string) error + type ExportActivityCmd struct + Type string + type ExportCmd struct + Activity *ExportActivityCmd + type GetCmd struct + Activity *ActivityCmd + type PersistenceConfig struct + ConfigMapNamespace string + SyncInterval time.Duration + type PickCmd struct + MessageContext string + type PickConfig struct + MessagesTemplate string + UserCooldownTime time.Duration + type ResolveCmd struct + ID string + type RoundRobin struct + type RoundRobinConfig struct + Assignees []string + GroupName string + type SystemData struct + func (t *SystemData) IsDirty() bool + func (t *SystemData) MarkDirty() + func (t *SystemData) ResetDirty() + func (t *SystemData) RoundRobinPickNext() uint32 + type TakeoverCmd struct + ID string + type Thread struct + Assignee Assignee + ID string + MessageContext executor.Message + ResolvedBy Assignee + StartedAt time.Time + type ThreadMate struct + func New(cfg Config, cfgDumper *ConfigMapDumper) *ThreadMate + func (t *ThreadMate) Export(export *ExportCmd) api.Message + func (t *ThreadMate) GetActivity(cmd *ActivityCmd, message executor.Message) api.Message + func (t *ThreadMate) GetSearchSection(cmd *ActivityCmd, message executor.Message, selectedOpts []api.OptionItem, ...) api.Section + func (t *ThreadMate) Pick(cmd *PickCmd, msg executor.Message) ([]api.Message, error) + func (t *ThreadMate) Resolve(r *ResolveCmd, message executor.Message) api.Message + func (t *ThreadMate) Start() + func (t *ThreadMate) Takeover(takeover *TakeoverCmd, message executor.Message) api.Message + type ThreadType string + func (t ThreadType) IsEmptyOrEqual(exp ThreadType) bool + type Threads struct + func (t *Threads) Append(th Thread) + func (t *Threads) Delete(id string) *Thread + func (t *Threads) Get() []Thread + func (t *Threads) IsDirty() bool + func (t *Threads) Mutate(id string, mutate func(th *Thread)) bool + func (t *Threads) ResetDirty()