Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionProvider ¶ added in v0.16.0
type ActionProvider interface { RenderedActionsForEvent(event event.Event, sourceBindings []string) ([]event.Action, error) ExecuteEventAction(ctx context.Context, action event.Action) interactive.CoreMessage }
ActionProvider defines a provider that is responsible for automated actions.
type Controller ¶ added in v0.13.0
type Controller struct {
// contains filtered or unexported fields
}
Controller watches Kubernetes resources and send events to bots.
func New ¶ added in v0.13.0
func New(log logrus.FieldLogger, conf *config.Config, notifiers map[string]bot.Bot, reporter status.StatusReporter) *Controller
New create a new Controller instance.
type GitHubRepoClient ¶ added in v0.13.0
type GitHubRepoClient interface {
GetLatestRelease(ctx context.Context, owner, repo string) (*github.RepositoryRelease, *github.Response, error)
}
GitHubRepoClient describes the client for getting latest release for a given repository.
type UpgradeChecker ¶ added in v0.13.0
type UpgradeChecker struct {
// contains filtered or unexported fields
}
UpgradeChecker checks for new Botkube releases.
func NewUpgradeChecker ¶ added in v0.13.0
func NewUpgradeChecker(log logrus.FieldLogger, notifiers map[string]bot.Bot, ghCli GitHubRepoClient) *UpgradeChecker
NewUpgradeChecker creates a new instance of the Upgrade Checker.
Click to show internal directories.
Click to hide internal directories.