manager

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventHandler

type EventHandler interface {
	OnUpdate(ctx context.Context, obj interface{}) error
	OnDelete(ctx context.Context, obj interface{}) error
}

type Handler

type Handler struct {
	Name     string
	MaxRetry int
	Handler  EventHandler
	// contains filtered or unexported fields
}

func (*Handler) OnAdd

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

func (*Handler) OnDelete

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

func (*Handler) OnUpdate

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

func (*Handler) Run added in v0.0.2

func (h *Handler) Run(ctx context.Context) error

type Manager

type Manager struct {
	Client *k8s.Client
}

func (*Manager) Run

func (m *Manager) Run(ctx context.Context) error

type ResourceSetEventHandler

type ResourceSetEventHandler struct {
	Client *k8s.Client
}

func (*ResourceSetEventHandler) OnDelete

func (*ResourceSetEventHandler) OnDelete(ctx context.Context, obj interface{}) error

func (*ResourceSetEventHandler) OnUpdate

func (r *ResourceSetEventHandler) OnUpdate(ctx context.Context, obj interface{}) error

Jump to

Keyboard shortcuts

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