retrieve

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resource

type Resource struct {
	ListerWatcher cache.ListerWatcher
	Object        runtime.Object
}

Resource is a helper so you can don't need to create a new type of the Retriever interface.

func (*Resource) GetListerWatcher

func (r *Resource) GetListerWatcher() cache.ListerWatcher

GetListerWatcher satisfies retriever interface.

func (*Resource) GetObject

func (r *Resource) GetObject() runtime.Object

GetObject satisfies retriever interface

type Retriever

type Retriever interface {
	GetListerWatcher() cache.ListerWatcher
	GetObject() runtime.Object
}

Retriever is a way of wrapping kubernetes lister watchers so they are easy to pass & manage them on Controllers.

Jump to

Keyboard shortcuts

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