controller

package
v1.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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.

func (*Controller) Start added in v0.13.0

func (c *Controller) Start(ctx context.Context) error

Start creates new informer controllers to watch k8s resources

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.

func (*UpgradeChecker) Run added in v0.13.0

func (c *UpgradeChecker) Run(ctx context.Context) error

Run runs the Upgrade Checker and checks for new Botkube releases periodically.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL