Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandFlags ¶ added in v0.5.0
type CommandFlags string
CommandFlags creates custom type for flags in botkube
const ( ClusterFlag CommandFlags = "--cluster-name" FollowFlag CommandFlags = "--follow" AbbrFollowFlag CommandFlags = "-f" WatchFlag CommandFlags = "--watch" AbbrWatchFlag CommandFlags = "-w" )
Defines botkube flags
func (CommandFlags) String ¶ added in v0.5.0
func (flag CommandFlags) String() string
type DefaultExecutor ¶
type DefaultExecutor struct { Message string AllowKubectl bool ClusterName string ChannelName string IsAuthChannel bool }
DefaultExecutor is a default implementations of Executor
func (*DefaultExecutor) Execute ¶
func (e *DefaultExecutor) Execute() string
Execute executes commands and returns output
type Executor ¶
type Executor interface {
Execute() string
}
Executor is an interface for processes to execute commands
type FiltersAction ¶ added in v0.8.0
type FiltersAction string
FiltersAction for options in filter commands
const ( FilterList FiltersAction = "list" FilterEnable FiltersAction = "enable" FilterDisable FiltersAction = "disable" )
Filter command options
func (FiltersAction) String ¶ added in v0.8.0
func (action FiltersAction) String() string
type NotifierAction ¶ added in v0.5.0
type NotifierAction string
NotifierAction creates custom type for notifier actions
const ( Start NotifierAction = "start" Stop NotifierAction = "stop" Status NotifierAction = "status" ShowConfig NotifierAction = "showconfig" )
Defines constants for notifier actions
func (NotifierAction) String ¶ added in v0.5.0
func (action NotifierAction) String() string
Click to show internal directories.
Click to hide internal directories.