Documentation ¶
Index ¶
- Constants
- func NewExecutorTemplate(name string, content string, executor *DefaultExecutor, ...) (*toolsRender.TextTemplate, error)
- type Default
- type DefaultApproval
- type DefaultCommand
- func (dc *DefaultCommand) Aliases() []string
- func (dc *DefaultCommand) Approval() common.Approval
- func (dc *DefaultCommand) Channel() string
- func (dc *DefaultCommand) Confirmation() string
- func (dc *DefaultCommand) Description() string
- func (dc *DefaultCommand) Execute(bot common.Bot, message common.Message, params common.ExecuteParams) (common.Executor, string, []*common.Attachment, error)
- func (dc *DefaultCommand) Fields(bot common.Bot, message common.Message, params common.ExecuteParams, ...) []common.Field
- func (dc *DefaultCommand) Name() string
- func (dc *DefaultCommand) Params() []string
- func (dc *DefaultCommand) Permissions() bool
- func (dc *DefaultCommand) Priority() int
- func (dc *DefaultCommand) Response() common.Response
- func (dc *DefaultCommand) Schedule() string
- func (dc *DefaultCommand) Wrapper() bool
- type DefaultCommandApproval
- type DefaultCommandConfig
- type DefaultCommandResponse
- type DefaultExecutor
- func (de *DefaultExecutor) After(message common.Message) error
- func (de *DefaultExecutor) Approval() common.Approval
- func (de *DefaultExecutor) Duration() bool
- func (de *DefaultExecutor) Error() bool
- func (de *DefaultExecutor) Original() bool
- func (de *DefaultExecutor) Response() common.Response
- func (de *DefaultExecutor) Visible() bool
- type DefaultOptions
- type DefaultPost
- type DefaultPostKind
- type DefaultReposne
- type DefaultRunbook
- type DefaultRunbookCommandExecutor
- type DefaultRunbookConfig
- type DefaultRunbookExecutor
- type DefaultRunbookStep
- type DefaultRunbookStepResult
- type DefaultRunbookStepResultFunc
- type DefaultRunbookTemplateExecutor
Constants ¶
View Source
const ( DefaultPostKindTemplate = 0 DefaultPostKindCommand = 1 DefaultPostKindRunbook = 2 )
Variables ¶
This section is empty.
Functions ¶
func NewExecutorTemplate ¶ added in v0.2.0
func NewExecutorTemplate(name string, content string, executor *DefaultExecutor, observability *common.Observability) (*toolsRender.TextTemplate, error)
Types ¶
type Default ¶
type Default struct {
// contains filtered or unexported fields
}
func NewDefault ¶
func NewDefault(name string, options DefaultOptions, observability *common.Observability, processors *common.Processors) *Default
func (*Default) AddCommand ¶
type DefaultApproval ¶ added in v0.6.2
type DefaultCommand ¶
type DefaultCommand struct {
// contains filtered or unexported fields
}
func (*DefaultCommand) Aliases ¶ added in v0.0.3
func (dc *DefaultCommand) Aliases() []string
func (*DefaultCommand) Approval ¶ added in v0.6.2
func (dc *DefaultCommand) Approval() common.Approval
func (*DefaultCommand) Channel ¶ added in v0.4.6
func (dc *DefaultCommand) Channel() string
func (*DefaultCommand) Confirmation ¶ added in v0.5.1
func (dc *DefaultCommand) Confirmation() string
func (*DefaultCommand) Description ¶
func (dc *DefaultCommand) Description() string
func (*DefaultCommand) Execute ¶
func (dc *DefaultCommand) Execute(bot common.Bot, message common.Message, params common.ExecuteParams) (common.Executor, string, []*common.Attachment, error)
func (*DefaultCommand) Fields ¶ added in v0.1.0
func (dc *DefaultCommand) Fields(bot common.Bot, message common.Message, params common.ExecuteParams, eval []string) []common.Field
func (*DefaultCommand) Name ¶
func (dc *DefaultCommand) Name() string
func (*DefaultCommand) Params ¶
func (dc *DefaultCommand) Params() []string
func (*DefaultCommand) Permissions ¶ added in v0.6.12
func (dc *DefaultCommand) Permissions() bool
func (*DefaultCommand) Priority ¶ added in v0.3.4
func (dc *DefaultCommand) Priority() int
func (*DefaultCommand) Response ¶ added in v0.1.0
func (dc *DefaultCommand) Response() common.Response
func (*DefaultCommand) Schedule ¶ added in v0.3.9
func (dc *DefaultCommand) Schedule() string
func (*DefaultCommand) Wrapper ¶ added in v0.3.4
func (dc *DefaultCommand) Wrapper() bool
type DefaultCommandApproval ¶ added in v0.6.2
type DefaultCommandApproval struct {
// contains filtered or unexported fields
}
func (*DefaultCommandApproval) Channel ¶ added in v0.6.2
func (dca *DefaultCommandApproval) Channel() string
func (*DefaultCommandApproval) Message ¶ added in v0.6.2
func (dca *DefaultCommandApproval) Message(bot common.Bot, message common.Message, params common.ExecuteParams) string
type DefaultCommandConfig ¶ added in v0.5.0
type DefaultCommandResponse ¶ added in v0.6.4
type DefaultCommandResponse struct {
// contains filtered or unexported fields
}
func (*DefaultCommandResponse) Duration ¶ added in v0.6.4
func (dcr *DefaultCommandResponse) Duration() bool
func (*DefaultCommandResponse) Error ¶ added in v0.6.4
func (dcr *DefaultCommandResponse) Error() bool
func (*DefaultCommandResponse) Original ¶ added in v0.6.4
func (dcr *DefaultCommandResponse) Original() bool
func (*DefaultCommandResponse) Visible ¶ added in v0.6.4
func (dcr *DefaultCommandResponse) Visible() bool
type DefaultExecutor ¶ added in v0.2.0
type DefaultExecutor struct {
// contains filtered or unexported fields
}
func NewExecutor ¶ added in v0.2.0
func NewExecutor(name, path string, command *DefaultCommand, bot common.Bot, message common.Message, params common.ExecuteParams) (*DefaultExecutor, error)
func (*DefaultExecutor) After ¶ added in v0.2.0
func (de *DefaultExecutor) After(message common.Message) error
func (*DefaultExecutor) Approval ¶ added in v0.6.2
func (de *DefaultExecutor) Approval() common.Approval
func (*DefaultExecutor) Duration ¶ added in v0.2.5
func (de *DefaultExecutor) Duration() bool
func (*DefaultExecutor) Error ¶ added in v0.2.5
func (de *DefaultExecutor) Error() bool
func (*DefaultExecutor) Original ¶ added in v0.2.5
func (de *DefaultExecutor) Original() bool
func (*DefaultExecutor) Response ¶ added in v0.2.5
func (de *DefaultExecutor) Response() common.Response
func (*DefaultExecutor) Visible ¶ added in v0.2.5
func (de *DefaultExecutor) Visible() bool
type DefaultOptions ¶
type DefaultPost ¶ added in v0.2.0
type DefaultPost struct { Name string Path string Obj interface{} Kind DefaultPostKind }
type DefaultPostKind ¶ added in v0.5.0
type DefaultPostKind = int
type DefaultReposne ¶ added in v0.2.4
type DefaultRunbook ¶ added in v0.5.0
type DefaultRunbook struct {
// contains filtered or unexported fields
}
func NewRunbook ¶ added in v0.5.0
func NewRunbook(name, path string, command *DefaultCommand, parentExecutor *DefaultExecutor) (*DefaultRunbook, error)
func (*DefaultRunbook) Execute ¶ added in v0.5.0
func (dr *DefaultRunbook) Execute(bot common.Bot, message common.Message, obj interface{}, callback DefaultRunbookStepResultFunc, waitGroup bool) error
type DefaultRunbookCommandExecutor ¶ added in v0.5.0
type DefaultRunbookCommandExecutor struct {
// contains filtered or unexported fields
}
type DefaultRunbookConfig ¶ added in v0.5.0
type DefaultRunbookConfig struct { Description string Params []string Pipeline []*DefaultRunbookStep }
type DefaultRunbookExecutor ¶ added in v0.5.0
type DefaultRunbookExecutor struct {
// contains filtered or unexported fields
}
func NewRunbookExecutor ¶ added in v0.5.0
func NewRunbookExecutor(rb *DefaultRunbook, step *DefaultRunbookStep, bot common.Bot, message common.Message, params common.ExecuteParams) (*DefaultRunbookExecutor, error)
type DefaultRunbookStep ¶ added in v0.5.0
type DefaultRunbookStepResult ¶ added in v0.5.0
type DefaultRunbookStepResult struct { ID string Text string Attachements []*common.Attachment Error error }
type DefaultRunbookStepResultFunc ¶ added in v0.5.0
type DefaultRunbookStepResultFunc = func(result *DefaultRunbookStepResult, parent common.Message) error
type DefaultRunbookTemplateExecutor ¶ added in v0.5.0
type DefaultRunbookTemplateExecutor = DefaultExecutor
Click to show internal directories.
Click to hide internal directories.