event

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultScheduleDelay = 1 * time.Second

DefaultScheduleDelay is the default schedule delay

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextGeneratorOption

type ContextGeneratorOption func(generator *ContextsGenerator)

type ContextsGenerator

type ContextsGenerator struct {
	KubeContextStore KubeContextStore
}

ContextsGenerator generates kube contexts for the front end.

func NewContextsGenerator

func NewContextsGenerator(kubeContextStore KubeContextStore, options ...ContextGeneratorOption) *ContextsGenerator

func (*ContextsGenerator) Events added in v0.21.0

func (g *ContextsGenerator) Events(ctx context.Context) ([]event.Event, error)

func (ContextsGenerator) Name

func (ContextsGenerator) Name() string

func (ContextsGenerator) ScheduleDelay

func (ContextsGenerator) ScheduleDelay() time.Duration

type HelperGenerator added in v0.13.0

type HelperGenerator struct {
	DashConfig config.Dash
}

func NewHelperGenerator added in v0.13.0

func NewHelperGenerator(dashConfig config.Dash, options ...HelperGeneratorOption) *HelperGenerator

func (*HelperGenerator) Events added in v0.21.0

func (h *HelperGenerator) Events(_ context.Context) ([]event.Event, error)

func (HelperGenerator) Name added in v0.13.0

func (HelperGenerator) Name() string

func (HelperGenerator) ScheduleDelay added in v0.13.0

func (HelperGenerator) ScheduleDelay() time.Duration

type HelperGeneratorOption added in v0.13.0

type HelperGeneratorOption func(generator *HelperGenerator)

type KubeContextStore added in v0.18.0

type KubeContextStore interface {
	CurrentContext() string
	Contexts() []kubeconfig.Context
}

Jump to

Keyboard shortcuts

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