mock

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Animal

type Animal struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
}

Animal is the name of animal.

func NewAnimal

func NewAnimal(name string) *Animal

NewAnimal create a new animal.

func (*Animal) DeepCopyObject

func (a *Animal) DeepCopyObject() runtime.Object

DeepCopyObject copy the animal object.

type Repo

type Repo struct{}

Repo is the mocking repository.

func (*Repo) Delete

func (r *Repo) Delete(key string) error

Delete delete the animal.

func (*Repo) Get

func (r *Repo) Get(key string) (runtime.Object, error)

Get return animal.

func (*Repo) Logs

func (r *Repo) Logs(ctx context.Context, key string) (<-chan svc.Log, error)

Logs is not implemented.

func (*Repo) Search

func (r *Repo) Search(namespace, pattern string) []runtime.Object

Search return animal which is matched with the pattern.

Jump to

Keyboard shortcuts

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