fake

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2016 License: Apache-2.0 Imports: 8 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 FakeComponentStatuses

type FakeComponentStatuses struct {
	Fake *FakeCore
}

FakeComponentStatuses implements ComponentStatusInterface

func (*FakeComponentStatuses) Create

func (c *FakeComponentStatuses) Create(componentStatus *api.ComponentStatus) (result *api.ComponentStatus, err error)

func (*FakeComponentStatuses) Delete

func (c *FakeComponentStatuses) Delete(name string, options *api.DeleteOptions) error

func (*FakeComponentStatuses) DeleteCollection

func (c *FakeComponentStatuses) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error

func (*FakeComponentStatuses) Get

func (c *FakeComponentStatuses) Get(name string) (result *api.ComponentStatus, err error)

func (*FakeComponentStatuses) List

func (c *FakeComponentStatuses) List(opts api.ListOptions) (result *api.ComponentStatusList, err error)

func (*FakeComponentStatuses) Update

func (c *FakeComponentStatuses) Update(componentStatus *api.ComponentStatus) (result *api.ComponentStatus, err error)

func (*FakeComponentStatuses) Watch

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

type FakeConfigMaps

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

FakeConfigMaps implements ConfigMapInterface

func (*FakeConfigMaps) Create

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

func (*FakeConfigMaps) Delete

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

func (*FakeConfigMaps) DeleteCollection

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

func (*FakeConfigMaps) Get

func (c *FakeConfigMaps) Get(name string) (result *api.ConfigMap, err error)

func (*FakeConfigMaps) List

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

func (*FakeConfigMaps) Update

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

func (*FakeConfigMaps) Watch

func (c *FakeConfigMaps) Watch(opts api.ListOptions) (watch.Interface, error)

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

type FakeCore

type FakeCore struct {
	*core.Fake
}

func (*FakeCore) ComponentStatuses

func (c *FakeCore) ComponentStatuses() unversioned.ComponentStatusInterface

func (*FakeCore) ConfigMaps

func (c *FakeCore) ConfigMaps(namespace string) unversioned.ConfigMapInterface

func (*FakeCore) Endpoints

func (c *FakeCore) Endpoints(namespace string) unversioned.EndpointsInterface

func (*FakeCore) Events

func (c *FakeCore) Events(namespace string) unversioned.EventInterface

func (*FakeCore) LimitRanges

func (c *FakeCore) LimitRanges(namespace string) unversioned.LimitRangeInterface

func (*FakeCore) Namespaces

func (c *FakeCore) Namespaces() unversioned.NamespaceInterface

func (*FakeCore) Nodes

func (c *FakeCore) Nodes() unversioned.NodeInterface

func (*FakeCore) PersistentVolumeClaims

func (c *FakeCore) PersistentVolumeClaims(namespace string) unversioned.PersistentVolumeClaimInterface

func (*FakeCore) PersistentVolumes

func (c *FakeCore) PersistentVolumes() unversioned.PersistentVolumeInterface

func (*FakeCore) PodTemplates

func (c *FakeCore) PodTemplates(namespace string) unversioned.PodTemplateInterface

func (*FakeCore) Pods

func (c *FakeCore) Pods(namespace string) unversioned.PodInterface

func (*FakeCore) ReplicationControllers

func (c *FakeCore) ReplicationControllers(namespace string) unversioned.ReplicationControllerInterface

func (*FakeCore) ResourceQuotas

func (c *FakeCore) ResourceQuotas(namespace string) unversioned.ResourceQuotaInterface

func (*FakeCore) Secrets

func (c *FakeCore) Secrets(namespace string) unversioned.SecretInterface

func (*FakeCore) SecurityContextConstraints

func (c *FakeCore) SecurityContextConstraints() unversioned.SecurityContextConstraintInterface

func (*FakeCore) ServiceAccounts

func (c *FakeCore) ServiceAccounts(namespace string) unversioned.ServiceAccountInterface

func (*FakeCore) Services

func (c *FakeCore) Services(namespace string) unversioned.ServiceInterface

type FakeEndpoints

type FakeEndpoints struct {
	Fake *FakeCore
	// contains filtered or unexported fields
}

FakeEndpoints implements EndpointsInterface

func (*FakeEndpoints) Create

func (c *FakeEndpoints) Create(endpoints *api.Endpoints) (result *api.Endpoints, err error)

func (*FakeEndpoints) Delete

func (c *FakeEndpoints) Delete(name string, options *api.DeleteOptions) error

func (*FakeEndpoints) DeleteCollection

func (c *FakeEndpoints) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error

func (*FakeEndpoints) Get

func (c *FakeEndpoints) Get(name string) (result *api.Endpoints, err error)

func (*FakeEndpoints) List

func (c *FakeEndpoints) List(opts api.ListOptions) (result *api.EndpointsList, err error)

func (*FakeEndpoints) Update

func (c *FakeEndpoints) Update(endpoints *api.Endpoints) (result *api.Endpoints, err error)

func (*FakeEndpoints) Watch

func (c *FakeEndpoints) Watch(opts api.ListOptions) (watch.Interface, error)

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

type FakeEvents

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

FakeEvents implements EventInterface

func (*FakeEvents) Create

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

func (*FakeEvents) CreateWithEventNamespace

func (c *FakeEvents) CreateWithEventNamespace(event *api.Event) (*api.Event, error)

func (*FakeEvents) Delete

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

func (*FakeEvents) DeleteCollection

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

func (*FakeEvents) Get

func (c *FakeEvents) Get(name string) (result *api.Event, err error)

func (*FakeEvents) GetFieldSelector

func (c *FakeEvents) GetFieldSelector(involvedObjectName, involvedObjectNamespace, involvedObjectKind, involvedObjectUID *string) fields.Selector

func (*FakeEvents) List

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

func (*FakeEvents) Patch

func (c *FakeEvents) Patch(event *api.Event, data []byte) (*api.Event, error)

Patch patches an existing event. Returns the copy of the event the server returns, or an error.

func (*FakeEvents) Search

func (c *FakeEvents) Search(objOrRef runtime.Object) (*api.EventList, error)

Search returns a list of events matching the specified object.

func (*FakeEvents) Update

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

func (*FakeEvents) UpdateWithEventNamespace

func (c *FakeEvents) UpdateWithEventNamespace(event *api.Event) (*api.Event, error)

Update replaces an existing event. Returns the copy of the event the server returns, or an error.

func (*FakeEvents) Watch

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

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

type FakeLimitRanges

type FakeLimitRanges struct {
	Fake *FakeCore
	// contains filtered or unexported fields
}

FakeLimitRanges implements LimitRangeInterface

func (*FakeLimitRanges) Create

func (c *FakeLimitRanges) Create(limitRange *api.LimitRange) (result *api.LimitRange, err error)

func (*FakeLimitRanges) Delete

func (c *FakeLimitRanges) Delete(name string, options *api.DeleteOptions) error

func (*FakeLimitRanges) DeleteCollection

func (c *FakeLimitRanges) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error

func (*FakeLimitRanges) Get

func (c *FakeLimitRanges) Get(name string) (result *api.LimitRange, err error)

func (*FakeLimitRanges) List

func (c *FakeLimitRanges) List(opts api.ListOptions) (result *api.LimitRangeList, err error)

func (*FakeLimitRanges) Update

func (c *FakeLimitRanges) Update(limitRange *api.LimitRange) (result *api.LimitRange, err error)

func (*FakeLimitRanges) Watch

func (c *FakeLimitRanges) Watch(opts api.ListOptions) (watch.Interface, error)

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

type FakeNamespaces

type FakeNamespaces struct {
	Fake *FakeCore
}

FakeNamespaces implements NamespaceInterface

func (*FakeNamespaces) Create

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

func (*FakeNamespaces) Delete

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

func (*FakeNamespaces) DeleteCollection

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

func (*FakeNamespaces) Finalize

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

func (*FakeNamespaces) Get

func (c *FakeNamespaces) Get(name string) (result *api.Namespace, err error)

func (*FakeNamespaces) List

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

func (*FakeNamespaces) Update

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

func (*FakeNamespaces) UpdateStatus

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

func (*FakeNamespaces) Watch

func (c *FakeNamespaces) Watch(opts api.ListOptions) (watch.Interface, error)

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

type FakeNodes

type FakeNodes struct {
	Fake *FakeCore
}

FakeNodes implements NodeInterface

func (*FakeNodes) Create

func (c *FakeNodes) Create(node *api.Node) (result *api.Node, err error)

func (*FakeNodes) Delete

func (c *FakeNodes) Delete(name string, options *api.DeleteOptions) error

func (*FakeNodes) DeleteCollection

func (c *FakeNodes) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error

func (*FakeNodes) Get

func (c *FakeNodes) Get(name string) (result *api.Node, err error)

func (*FakeNodes) List

func (c *FakeNodes) List(opts api.ListOptions) (result *api.NodeList, err error)

func (*FakeNodes) Update

func (c *FakeNodes) Update(node *api.Node) (result *api.Node, err error)

func (*FakeNodes) UpdateStatus

func (c *FakeNodes) UpdateStatus(node *api.Node) (*api.Node, error)

func (*FakeNodes) Watch

func (c *FakeNodes) Watch(opts api.ListOptions) (watch.Interface, error)

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

type FakePersistentVolumeClaims

type FakePersistentVolumeClaims struct {
	Fake *FakeCore
	// contains filtered or unexported fields
}

FakePersistentVolumeClaims implements PersistentVolumeClaimInterface

func (*FakePersistentVolumeClaims) Create

func (c *FakePersistentVolumeClaims) Create(persistentVolumeClaim *api.PersistentVolumeClaim) (result *api.PersistentVolumeClaim, err error)

func (*FakePersistentVolumeClaims) Delete

func (c *FakePersistentVolumeClaims) Delete(name string, options *api.DeleteOptions) error

func (*FakePersistentVolumeClaims) DeleteCollection

func (c *FakePersistentVolumeClaims) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error

func (*FakePersistentVolumeClaims) Get

func (c *FakePersistentVolumeClaims) Get(name string) (result *api.PersistentVolumeClaim, err error)

func (*FakePersistentVolumeClaims) List

func (*FakePersistentVolumeClaims) Update

func (c *FakePersistentVolumeClaims) Update(persistentVolumeClaim *api.PersistentVolumeClaim) (result *api.PersistentVolumeClaim, err error)

func (*FakePersistentVolumeClaims) UpdateStatus

func (c *FakePersistentVolumeClaims) UpdateStatus(persistentVolumeClaim *api.PersistentVolumeClaim) (*api.PersistentVolumeClaim, error)

func (*FakePersistentVolumeClaims) Watch

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

type FakePersistentVolumes

type FakePersistentVolumes struct {
	Fake *FakeCore
}

FakePersistentVolumes implements PersistentVolumeInterface

func (*FakePersistentVolumes) Create

func (c *FakePersistentVolumes) Create(persistentVolume *api.PersistentVolume) (result *api.PersistentVolume, err error)

func (*FakePersistentVolumes) Delete

func (c *FakePersistentVolumes) Delete(name string, options *api.DeleteOptions) error

func (*FakePersistentVolumes) DeleteCollection

func (c *FakePersistentVolumes) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error

func (*FakePersistentVolumes) Get

func (c *FakePersistentVolumes) Get(name string) (result *api.PersistentVolume, err error)

func (*FakePersistentVolumes) List

func (c *FakePersistentVolumes) List(opts api.ListOptions) (result *api.PersistentVolumeList, err error)

func (*FakePersistentVolumes) Update

func (c *FakePersistentVolumes) Update(persistentVolume *api.PersistentVolume) (result *api.PersistentVolume, err error)

func (*FakePersistentVolumes) UpdateStatus

func (c *FakePersistentVolumes) UpdateStatus(persistentVolume *api.PersistentVolume) (*api.PersistentVolume, error)

func (*FakePersistentVolumes) Watch

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

type FakePodTemplates

type FakePodTemplates struct {
	Fake *FakeCore
	// contains filtered or unexported fields
}

FakePodTemplates implements PodTemplateInterface

func (*FakePodTemplates) Create

func (c *FakePodTemplates) Create(podTemplate *api.PodTemplate) (result *api.PodTemplate, err error)

func (*FakePodTemplates) Delete

func (c *FakePodTemplates) Delete(name string, options *api.DeleteOptions) error

func (*FakePodTemplates) DeleteCollection

func (c *FakePodTemplates) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error

func (*FakePodTemplates) Get

func (c *FakePodTemplates) Get(name string) (result *api.PodTemplate, err error)

func (*FakePodTemplates) List

func (c *FakePodTemplates) List(opts api.ListOptions) (result *api.PodTemplateList, err error)

func (*FakePodTemplates) Update

func (c *FakePodTemplates) Update(podTemplate *api.PodTemplate) (result *api.PodTemplate, err error)

func (*FakePodTemplates) Watch

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

type FakePods

type FakePods struct {
	Fake *FakeCore
	// contains filtered or unexported fields
}

FakePods implements PodInterface

func (*FakePods) Bind

func (c *FakePods) Bind(binding *api.Binding) error

func (*FakePods) Create

func (c *FakePods) Create(pod *api.Pod) (result *api.Pod, err error)

func (*FakePods) Delete

func (c *FakePods) Delete(name string, options *api.DeleteOptions) error

func (*FakePods) DeleteCollection

func (c *FakePods) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error

func (*FakePods) Get

func (c *FakePods) Get(name string) (result *api.Pod, err error)

func (*FakePods) GetLogs

func (c *FakePods) GetLogs(name string, opts *api.PodLogOptions) *client.Request

func (*FakePods) List

func (c *FakePods) List(opts api.ListOptions) (result *api.PodList, err error)

func (*FakePods) Update

func (c *FakePods) Update(pod *api.Pod) (result *api.Pod, err error)

func (*FakePods) UpdateStatus

func (c *FakePods) UpdateStatus(pod *api.Pod) (*api.Pod, error)

func (*FakePods) Watch

func (c *FakePods) Watch(opts api.ListOptions) (watch.Interface, error)

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

type FakeReplicationControllers

type FakeReplicationControllers struct {
	Fake *FakeCore
	// contains filtered or unexported fields
}

FakeReplicationControllers implements ReplicationControllerInterface

func (*FakeReplicationControllers) Create

func (c *FakeReplicationControllers) Create(replicationController *api.ReplicationController) (result *api.ReplicationController, err error)

func (*FakeReplicationControllers) Delete

func (c *FakeReplicationControllers) Delete(name string, options *api.DeleteOptions) error

func (*FakeReplicationControllers) DeleteCollection

func (c *FakeReplicationControllers) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error

func (*FakeReplicationControllers) Get

func (c *FakeReplicationControllers) Get(name string) (result *api.ReplicationController, err error)

func (*FakeReplicationControllers) List

func (*FakeReplicationControllers) Update

func (c *FakeReplicationControllers) Update(replicationController *api.ReplicationController) (result *api.ReplicationController, err error)

func (*FakeReplicationControllers) UpdateStatus

func (c *FakeReplicationControllers) UpdateStatus(replicationController *api.ReplicationController) (*api.ReplicationController, error)

func (*FakeReplicationControllers) Watch

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

type FakeResourceQuotas

type FakeResourceQuotas struct {
	Fake *FakeCore
	// contains filtered or unexported fields
}

FakeResourceQuotas implements ResourceQuotaInterface

func (*FakeResourceQuotas) Create

func (c *FakeResourceQuotas) Create(resourceQuota *api.ResourceQuota) (result *api.ResourceQuota, err error)

func (*FakeResourceQuotas) Delete

func (c *FakeResourceQuotas) Delete(name string, options *api.DeleteOptions) error

func (*FakeResourceQuotas) DeleteCollection

func (c *FakeResourceQuotas) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error

func (*FakeResourceQuotas) Get

func (c *FakeResourceQuotas) Get(name string) (result *api.ResourceQuota, err error)

func (*FakeResourceQuotas) List

func (c *FakeResourceQuotas) List(opts api.ListOptions) (result *api.ResourceQuotaList, err error)

func (*FakeResourceQuotas) Update

func (c *FakeResourceQuotas) Update(resourceQuota *api.ResourceQuota) (result *api.ResourceQuota, err error)

func (*FakeResourceQuotas) UpdateStatus

func (c *FakeResourceQuotas) UpdateStatus(resourceQuota *api.ResourceQuota) (*api.ResourceQuota, error)

func (*FakeResourceQuotas) Watch

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

type FakeSecrets

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

FakeSecrets implements SecretInterface

func (*FakeSecrets) Create

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

func (*FakeSecrets) Delete

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

func (*FakeSecrets) DeleteCollection

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

func (*FakeSecrets) Get

func (c *FakeSecrets) Get(name string) (result *api.Secret, err error)

func (*FakeSecrets) List

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

func (*FakeSecrets) Update

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

func (*FakeSecrets) Watch

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

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

type FakeSecurityContextConstraints

type FakeSecurityContextConstraints struct {
	Fake      *FakeCore
	Namespace string
}

FakeSecurityContextConstraints implements SecurityContextConstraintInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the method you want to test easier.

func (*FakeSecurityContextConstraints) Create

func (*FakeSecurityContextConstraints) Delete

func (*FakeSecurityContextConstraints) Get

func (*FakeSecurityContextConstraints) List

func (*FakeSecurityContextConstraints) Update

func (*FakeSecurityContextConstraints) Watch

type FakeServiceAccounts

type FakeServiceAccounts struct {
	Fake *FakeCore
	// contains filtered or unexported fields
}

FakeServiceAccounts implements ServiceAccountInterface

func (*FakeServiceAccounts) Create

func (c *FakeServiceAccounts) Create(serviceAccount *api.ServiceAccount) (result *api.ServiceAccount, err error)

func (*FakeServiceAccounts) Delete

func (c *FakeServiceAccounts) Delete(name string, options *api.DeleteOptions) error

func (*FakeServiceAccounts) DeleteCollection

func (c *FakeServiceAccounts) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error

func (*FakeServiceAccounts) Get

func (c *FakeServiceAccounts) Get(name string) (result *api.ServiceAccount, err error)

func (*FakeServiceAccounts) List

func (c *FakeServiceAccounts) List(opts api.ListOptions) (result *api.ServiceAccountList, err error)

func (*FakeServiceAccounts) Update

func (c *FakeServiceAccounts) Update(serviceAccount *api.ServiceAccount) (result *api.ServiceAccount, err error)

func (*FakeServiceAccounts) Watch

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

type FakeServices

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

FakeServices implements ServiceInterface

func (*FakeServices) Create

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

func (*FakeServices) Delete

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

func (*FakeServices) DeleteCollection

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

func (*FakeServices) Get

func (c *FakeServices) Get(name string) (result *api.Service, err error)

func (*FakeServices) List

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

func (*FakeServices) ProxyGet

func (c *FakeServices) ProxyGet(scheme, name, port, path string, params map[string]string) client.ResponseWrapper

func (*FakeServices) Update

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

func (*FakeServices) UpdateStatus

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

func (*FakeServices) Watch

func (c *FakeServices) Watch(opts api.ListOptions) (watch.Interface, error)

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