mock

package
v0.0.0-...-46d7da7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kube

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

Kube is a mock implementation of galley/pkg/common/Kube

func NewKube

func NewKube() *Kube

NewKube returns a new instance of mock Kube.

func (*Kube) AddResponse

func (k *Kube) AddResponse(r1 interface{}, r2 error)

AddResponse adds a new response to this mock.

func (*Kube) DynamicInterface

func (k *Kube) DynamicInterface(gv schema.GroupVersion, kind string, listKind string) (dynamic.Interface, error)

DynamicInterface implementation.

type Watch

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

Watch is a mock implementation of watch.Interface.

func NewWatch

func NewWatch() *Watch

NewWatch returns a new Watch instance.

func (*Watch) ResultChan

func (w *Watch) ResultChan() <-chan watch.Event

ResultChan is an implementation of watch.Interface.ResultChan.

func (*Watch) Send

func (w *Watch) Send(event watch.Event)

Send a watch event through the result channel.

func (*Watch) Stop

func (w *Watch) Stop()

Stop is an implementation of watch.Interface.Watch.

Jump to

Keyboard shortcuts

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