sleeper

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResyncPeriod = 20 * time.Minute
)

Variables

This section is empty.

Functions

func Client

func Client(cfg *rest.Config) (*rest.RESTClient, error)

func Scheme

func Scheme() (*runtime.Scheme, error)

Types

type App

type App struct {
	Logger     *zap.Logger
	RestConfig *rest.Config
	Namespace  string
}

func (*App) Run

func (a *App) Run(ctx context.Context) error

type EventHandler

type EventHandler struct {
	// contains filtered or unexported fields
}

func (*EventHandler) OnAdd

func (h *EventHandler) OnAdd(obj interface{})

func (*EventHandler) OnDelete

func (h *EventHandler) OnDelete(obj interface{})

func (*EventHandler) OnUpdate

func (h *EventHandler) OnUpdate(oldObj, newObj interface{})

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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