setup

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DevModeConfigKey     = "dev-mode"
	DevModeConfigDefault = true
	LogLevelConfigKey    = "log-level"
)
View Source
const (
	ControllerDisabledSuffixConfigKey = "controller-disabled"
)
View Source
const (
	WebhookDisabledSuffixConfigKey = "webhook-disabled"
)

Variables

This section is empty.

Functions

func ControllersWithManager

func ControllersWithManager(ctx context.Context, mgr manager.Manager) error

func FromLogrusToZapLevel

func FromLogrusToZapLevel(level logrus.Level) zapcore.Level

func Logger

func Logger(ctx context.Context, name, version string) error

func WabhooksWithManager

func WabhooksWithManager(ctx context.Context, mgr manager.Manager) error

func WithManager

func WithManager(ctx context.Context, mgr manager.Manager) error

Types

type Controller

type Controller interface {
	WithManager(context.Context, manager.Manager) error
	IsEnabled(context.Context) (bool, error)
}

type WebHook

type WebHook interface {
	SetupWebhookWithManager(context.Context, manager.Manager) error
}

Jump to

Keyboard shortcuts

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