dependencies

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Ref             string
	Contents        []byte
	ResourceVersion string
}

type FileEventHandler

type FileEventHandler interface {
	OnAdd(updatedList []*File, obj *File)
	OnUpdate(updatedList []*File, newObj *File)
	OnDelete(updatedList []*File, obj *File)
}

type FileEventHandlerFuncs

type FileEventHandlerFuncs struct {
	AddFunc    func(updatedList []*File, obj *File)
	UpdateFunc func(updatedList []*File, newObj *File)
	DeleteFunc func(updatedList []*File, obj *File)
}

FileEventHandlerFuncs is an adaptor to let you easily specify as many or as few of the notification functions as you want while still implementing FileEventHandler.

func (FileEventHandlerFuncs) OnAdd

func (r FileEventHandlerFuncs) OnAdd(updatedList []*File, obj *File)

OnAdd calls AddFunc if it's not nil.

func (FileEventHandlerFuncs) OnDelete

func (r FileEventHandlerFuncs) OnDelete(updatedList []*File, obj *File)

OnDelete calls DeleteFunc if it's not nil.

func (FileEventHandlerFuncs) OnUpdate

func (r FileEventHandlerFuncs) OnUpdate(updatedList []*File, newObj *File)

OnUpdate calls UpdateFunc if it's not nil.

type FileStorage

type FileStorage interface {
	Create(*File) (*File, error)
	Update(*File) (*File, error)
	Delete(name string) error
	Get(name string) (*File, error)
	List() ([]*File, error)
	Watch(handlers ...FileEventHandler) (*storage.Watcher, error)
}

type Secret

type Secret struct {
	Ref             string
	Data            map[string]string
	ResourceVersion string
}

type SecretEventHandler

type SecretEventHandler interface {
	OnAdd(updatedList []*Secret, obj *Secret)
	OnUpdate(updatedList []*Secret, newObj *Secret)
	OnDelete(updatedList []*Secret, obj *Secret)
}

type SecretEventHandlerFuncs

type SecretEventHandlerFuncs struct {
	AddFunc    func(updatedList []*Secret, obj *Secret)
	UpdateFunc func(updatedList []*Secret, newObj *Secret)
	DeleteFunc func(updatedList []*Secret, obj *Secret)
}

SecretEventHandlerFuncs is an adaptor to let you easily specify as many or as few of the notification functions as you want while still implementing SecretEventHandler.

func (SecretEventHandlerFuncs) OnAdd

func (r SecretEventHandlerFuncs) OnAdd(updatedList []*Secret, obj *Secret)

OnAdd calls AddFunc if it's not nil.

func (SecretEventHandlerFuncs) OnDelete

func (r SecretEventHandlerFuncs) OnDelete(updatedList []*Secret, obj *Secret)

OnDelete calls DeleteFunc if it's not nil.

func (SecretEventHandlerFuncs) OnUpdate

func (r SecretEventHandlerFuncs) OnUpdate(updatedList []*Secret, newObj *Secret)

OnUpdate calls UpdateFunc if it's not nil.

type SecretStorage

type SecretStorage interface {
	Create(*Secret) (*Secret, error)
	Update(*Secret) (*Secret, error)
	Delete(name string) error
	Get(name string) (*Secret, error)
	List() ([]*Secret, error)
	Watch(handlers ...SecretEventHandler) (*storage.Watcher, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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