k8s

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: May 10, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeSecrets

type FakeSecrets struct {
	FnCreate    func(*api.Secret) (*api.Secret, error)
	FnUpdate    func(*api.Secret) (*api.Secret, error)
	CreateCalls []*api.Secret
	UpdateCalls []*api.Secret
}

FakeSecrets is a mock function that can be swapped in for an SecretGetter or (k8s.io/kubernetes/pkg/client/unversioned).SecretsInterface, so you can unit test your code.

func (*FakeSecrets) Create

func (f *FakeSecrets) Create(secret *api.Secret) (*api.Secret, error)

Create is the interface definition.

func (*FakeSecrets) Delete

func (f *FakeSecrets) Delete(name string) error

Delete is the interface definition.

func (*FakeSecrets) Get

func (f *FakeSecrets) Get(name string) (*api.Secret, error)

Get is the interface definition.

func (*FakeSecrets) List

func (f *FakeSecrets) List(opts api.ListOptions) (*api.SecretList, error)

List is the interface definition.

func (*FakeSecrets) Update

func (f *FakeSecrets) Update(secret *api.Secret) (*api.Secret, error)

Update is the interface definition.

func (*FakeSecrets) Watch

func (f *FakeSecrets) Watch(opts api.ListOptions) (watch.Interface, error)

Watch is the interface definition.

type FakeSecretsNamespacer

type FakeSecretsNamespacer struct {
	Fn func(string) client.SecretsInterface
}

FakeSecretsNamespacer is a mock function that can be swapped in for an (k8s.io/kubernetes/pkg/client/unversioned).SecretsNamespacer, so you can unit test you code

func (*FakeSecretsNamespacer) Secrets

func (f *FakeSecretsNamespacer) Secrets(namespace string) client.SecretsInterface

Secrets is the interface definition.

Jump to

Keyboard shortcuts

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