manager

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2019 License: MIT Imports: 14 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 {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(ctx context.Context, name string, handler EventHandler) *Handler

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{})

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