mock

package
v0.0.0-...-fe632b3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 7 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 {
	Client *fake.Clientset
	// 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) APIExtensionsClientset

func (k *Kube) APIExtensionsClientset() (clientset.Interface, error)

APIExtensionsClientset returns a new apiextensions clientset

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() (dynamic.Interface, error)

DynamicInterface implementation.

func (*Kube) KubeClient

func (k *Kube) KubeClient() (kubernetes.Interface, error)

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