fake

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: May 10, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package fake has the automatically generated clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeConfigMaps

type FakeConfigMaps struct {
	Fake *FakeCoreV1
	// contains filtered or unexported fields
}

FakeConfigMaps implements ConfigMapInterface

func (*FakeConfigMaps) Create

func (c *FakeConfigMaps) Create(configMap *v1.ConfigMap) (result *v1.ConfigMap, err error)

func (*FakeConfigMaps) Delete

func (c *FakeConfigMaps) Delete(name string, options *meta_v1.DeleteOptions) error

func (*FakeConfigMaps) DeleteCollection

func (c *FakeConfigMaps) DeleteCollection(options *meta_v1.DeleteOptions, listOptions meta_v1.ListOptions) error

func (*FakeConfigMaps) Get

func (c *FakeConfigMaps) Get(name string, options meta_v1.GetOptions) (result *v1.ConfigMap, err error)

func (*FakeConfigMaps) List

func (c *FakeConfigMaps) List(opts meta_v1.ListOptions) (result *v1.ConfigMapList, err error)

func (*FakeConfigMaps) Patch

func (c *FakeConfigMaps) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.ConfigMap, err error)

Patch applies the patch and returns the patched configMap.

func (*FakeConfigMaps) Update

func (c *FakeConfigMaps) Update(configMap *v1.ConfigMap) (result *v1.ConfigMap, err error)

func (*FakeConfigMaps) Watch

Watch returns a watch.Interface that watches the requested configMaps.

type FakeCoreV1

type FakeCoreV1 struct {
	*testing.Fake
}

func (*FakeCoreV1) ConfigMaps

func (c *FakeCoreV1) ConfigMaps(namespace string) v1.ConfigMapInterface

func (*FakeCoreV1) Events

func (c *FakeCoreV1) Events(namespace string) v1.EventInterface

func (*FakeCoreV1) Namespaces

func (c *FakeCoreV1) Namespaces() v1.NamespaceInterface

func (*FakeCoreV1) RESTClient

func (c *FakeCoreV1) RESTClient() rest.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

func (*FakeCoreV1) Secrets

func (c *FakeCoreV1) Secrets(namespace string) v1.SecretInterface

func (*FakeCoreV1) Services

func (c *FakeCoreV1) Services(namespace string) v1.ServiceInterface

type FakeEvents

type FakeEvents struct {
	Fake *FakeCoreV1
	// contains filtered or unexported fields
}

FakeEvents implements EventInterface

func (*FakeEvents) Create

func (c *FakeEvents) Create(event *v1.Event) (result *v1.Event, err error)

func (*FakeEvents) Delete

func (c *FakeEvents) Delete(name string, options *meta_v1.DeleteOptions) error

func (*FakeEvents) DeleteCollection

func (c *FakeEvents) DeleteCollection(options *meta_v1.DeleteOptions, listOptions meta_v1.ListOptions) error

func (*FakeEvents) Get

func (c *FakeEvents) Get(name string, options meta_v1.GetOptions) (result *v1.Event, err error)

func (*FakeEvents) List

func (c *FakeEvents) List(opts meta_v1.ListOptions) (result *v1.EventList, err error)

func (*FakeEvents) Patch

func (c *FakeEvents) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.Event, err error)

Patch applies the patch and returns the patched event.

func (*FakeEvents) Update

func (c *FakeEvents) Update(event *v1.Event) (result *v1.Event, err error)

func (*FakeEvents) Watch

func (c *FakeEvents) Watch(opts meta_v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested events.

type FakeNamespaces

type FakeNamespaces struct {
	Fake *FakeCoreV1
}

FakeNamespaces implements NamespaceInterface

func (*FakeNamespaces) Create

func (c *FakeNamespaces) Create(namespace *v1.Namespace) (result *v1.Namespace, err error)

func (*FakeNamespaces) Delete

func (c *FakeNamespaces) Delete(name string, options *meta_v1.DeleteOptions) error

func (*FakeNamespaces) DeleteCollection

func (c *FakeNamespaces) DeleteCollection(options *meta_v1.DeleteOptions, listOptions meta_v1.ListOptions) error

func (*FakeNamespaces) Finalize

func (c *FakeNamespaces) Finalize(namespace *v1.Namespace) (*v1.Namespace, error)

func (*FakeNamespaces) Get

func (c *FakeNamespaces) Get(name string, options meta_v1.GetOptions) (result *v1.Namespace, err error)

func (*FakeNamespaces) List

func (c *FakeNamespaces) List(opts meta_v1.ListOptions) (result *v1.NamespaceList, err error)

func (*FakeNamespaces) Patch

func (c *FakeNamespaces) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.Namespace, err error)

Patch applies the patch and returns the patched namespace.

func (*FakeNamespaces) Update

func (c *FakeNamespaces) Update(namespace *v1.Namespace) (result *v1.Namespace, err error)

func (*FakeNamespaces) UpdateStatus

func (c *FakeNamespaces) UpdateStatus(namespace *v1.Namespace) (*v1.Namespace, error)

func (*FakeNamespaces) Watch

Watch returns a watch.Interface that watches the requested namespaces.

type FakeSecrets

type FakeSecrets struct {
	Fake *FakeCoreV1
	// contains filtered or unexported fields
}

FakeSecrets implements SecretInterface

func (*FakeSecrets) Create

func (c *FakeSecrets) Create(secret *v1.Secret) (result *v1.Secret, err error)

func (*FakeSecrets) Delete

func (c *FakeSecrets) Delete(name string, options *meta_v1.DeleteOptions) error

func (*FakeSecrets) DeleteCollection

func (c *FakeSecrets) DeleteCollection(options *meta_v1.DeleteOptions, listOptions meta_v1.ListOptions) error

func (*FakeSecrets) Get

func (c *FakeSecrets) Get(name string, options meta_v1.GetOptions) (result *v1.Secret, err error)

func (*FakeSecrets) List

func (c *FakeSecrets) List(opts meta_v1.ListOptions) (result *v1.SecretList, err error)

func (*FakeSecrets) Patch

func (c *FakeSecrets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.Secret, err error)

Patch applies the patch and returns the patched secret.

func (*FakeSecrets) Update

func (c *FakeSecrets) Update(secret *v1.Secret) (result *v1.Secret, err error)

func (*FakeSecrets) Watch

func (c *FakeSecrets) Watch(opts meta_v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested secrets.

type FakeServices

type FakeServices struct {
	Fake *FakeCoreV1
	// contains filtered or unexported fields
}

FakeServices implements ServiceInterface

func (*FakeServices) Create

func (c *FakeServices) Create(service *v1.Service) (result *v1.Service, err error)

func (*FakeServices) Delete

func (c *FakeServices) Delete(name string, options *meta_v1.DeleteOptions) error

func (*FakeServices) DeleteCollection

func (c *FakeServices) DeleteCollection(options *meta_v1.DeleteOptions, listOptions meta_v1.ListOptions) error

func (*FakeServices) Get

func (c *FakeServices) Get(name string, options meta_v1.GetOptions) (result *v1.Service, err error)

func (*FakeServices) List

func (c *FakeServices) List(opts meta_v1.ListOptions) (result *v1.ServiceList, err error)

func (*FakeServices) Patch

func (c *FakeServices) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.Service, err error)

Patch applies the patch and returns the patched service.

func (*FakeServices) Update

func (c *FakeServices) Update(service *v1.Service) (result *v1.Service, err error)

func (*FakeServices) UpdateStatus

func (c *FakeServices) UpdateStatus(service *v1.Service) (*v1.Service, error)

func (*FakeServices) Watch

Watch returns a watch.Interface that watches the requested services.

Jump to

Keyboard shortcuts

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