fake

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 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 FakeCanaryConfigs

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

FakeCanaryConfigs implements CanaryConfigInterface

func (*FakeCanaryConfigs) Create

func (c *FakeCanaryConfigs) Create(_canaryConfig *corev1.CanaryConfig) (result *corev1.CanaryConfig, err error)

Create takes the representation of a _canaryConfig and creates it. Returns the server's representation of the canaryConfig, and an error, if there is any.

func (*FakeCanaryConfigs) Delete

func (c *FakeCanaryConfigs) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the _canaryConfig and deletes it. Returns an error if one occurs.

func (*FakeCanaryConfigs) DeleteCollection

func (c *FakeCanaryConfigs) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeCanaryConfigs) Get

func (c *FakeCanaryConfigs) Get(name string, options v1.GetOptions) (result *corev1.CanaryConfig, err error)

Get takes name of the _canaryConfig, and returns the corresponding canaryConfig object, and an error if there is any.

func (*FakeCanaryConfigs) List

func (c *FakeCanaryConfigs) List(opts v1.ListOptions) (result *corev1.CanaryConfigList, err error)

List takes label and field selectors, and returns the list of CanaryConfigs that match those selectors.

func (*FakeCanaryConfigs) Patch

func (c *FakeCanaryConfigs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *corev1.CanaryConfig, err error)

Patch applies the patch and returns the patched canaryConfig.

func (*FakeCanaryConfigs) Update

func (c *FakeCanaryConfigs) Update(_canaryConfig *corev1.CanaryConfig) (result *corev1.CanaryConfig, err error)

Update takes the representation of a _canaryConfig and updates it. Returns the server's representation of the canaryConfig, and an error, if there is any.

func (*FakeCanaryConfigs) UpdateStatus

func (c *FakeCanaryConfigs) UpdateStatus(_canaryConfig *corev1.CanaryConfig) (*corev1.CanaryConfig, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeCanaryConfigs) Watch

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

type FakeCoreV1

type FakeCoreV1 struct {
	*testing.Fake
}

func (*FakeCoreV1) CanaryConfigs

func (c *FakeCoreV1) CanaryConfigs(namespace string) v1.CanaryConfigInterface

func (*FakeCoreV1) Environments

func (c *FakeCoreV1) Environments(namespace string) v1.EnvironmentInterface

func (*FakeCoreV1) Functions

func (c *FakeCoreV1) Functions(namespace string) v1.FunctionInterface

func (*FakeCoreV1) HTTPTriggers

func (c *FakeCoreV1) HTTPTriggers(namespace string) v1.HTTPTriggerInterface

func (*FakeCoreV1) KubernetesWatchTriggers

func (c *FakeCoreV1) KubernetesWatchTriggers(namespace string) v1.KubernetesWatchTriggerInterface

func (*FakeCoreV1) MessageQueueTriggers

func (c *FakeCoreV1) MessageQueueTriggers(namespace string) v1.MessageQueueTriggerInterface

func (*FakeCoreV1) Packages

func (c *FakeCoreV1) Packages(namespace string) v1.PackageInterface

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) TimeTriggers

func (c *FakeCoreV1) TimeTriggers(namespace string) v1.TimeTriggerInterface

type FakeEnvironments

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

FakeEnvironments implements EnvironmentInterface

func (*FakeEnvironments) Create

func (c *FakeEnvironments) Create(_environment *corev1.Environment) (result *corev1.Environment, err error)

Create takes the representation of a _environment and creates it. Returns the server's representation of the environment, and an error, if there is any.

func (*FakeEnvironments) Delete

func (c *FakeEnvironments) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the _environment and deletes it. Returns an error if one occurs.

func (*FakeEnvironments) DeleteCollection

func (c *FakeEnvironments) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeEnvironments) Get

func (c *FakeEnvironments) Get(name string, options v1.GetOptions) (result *corev1.Environment, err error)

Get takes name of the _environment, and returns the corresponding environment object, and an error if there is any.

func (*FakeEnvironments) List

func (c *FakeEnvironments) List(opts v1.ListOptions) (result *corev1.EnvironmentList, err error)

List takes label and field selectors, and returns the list of Environments that match those selectors.

func (*FakeEnvironments) Patch

func (c *FakeEnvironments) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *corev1.Environment, err error)

Patch applies the patch and returns the patched environment.

func (*FakeEnvironments) Update

func (c *FakeEnvironments) Update(_environment *corev1.Environment) (result *corev1.Environment, err error)

Update takes the representation of a _environment and updates it. Returns the server's representation of the environment, and an error, if there is any.

func (*FakeEnvironments) Watch

func (c *FakeEnvironments) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeFunctions

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

FakeFunctions implements FunctionInterface

func (*FakeFunctions) Create

func (c *FakeFunctions) Create(_function *corev1.Function) (result *corev1.Function, err error)

Create takes the representation of a _function and creates it. Returns the server's representation of the function, and an error, if there is any.

func (*FakeFunctions) Delete

func (c *FakeFunctions) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the _function and deletes it. Returns an error if one occurs.

func (*FakeFunctions) DeleteCollection

func (c *FakeFunctions) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeFunctions) Get

func (c *FakeFunctions) Get(name string, options v1.GetOptions) (result *corev1.Function, err error)

Get takes name of the _function, and returns the corresponding function object, and an error if there is any.

func (*FakeFunctions) List

func (c *FakeFunctions) List(opts v1.ListOptions) (result *corev1.FunctionList, err error)

List takes label and field selectors, and returns the list of Functions that match those selectors.

func (*FakeFunctions) Patch

func (c *FakeFunctions) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *corev1.Function, err error)

Patch applies the patch and returns the patched function.

func (*FakeFunctions) Update

func (c *FakeFunctions) Update(_function *corev1.Function) (result *corev1.Function, err error)

Update takes the representation of a _function and updates it. Returns the server's representation of the function, and an error, if there is any.

func (*FakeFunctions) Watch

func (c *FakeFunctions) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeHTTPTriggers

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

FakeHTTPTriggers implements HTTPTriggerInterface

func (*FakeHTTPTriggers) Create

func (c *FakeHTTPTriggers) Create(_hTTPTrigger *corev1.HTTPTrigger) (result *corev1.HTTPTrigger, err error)

Create takes the representation of a _hTTPTrigger and creates it. Returns the server's representation of the hTTPTrigger, and an error, if there is any.

func (*FakeHTTPTriggers) Delete

func (c *FakeHTTPTriggers) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the _hTTPTrigger and deletes it. Returns an error if one occurs.

func (*FakeHTTPTriggers) DeleteCollection

func (c *FakeHTTPTriggers) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeHTTPTriggers) Get

func (c *FakeHTTPTriggers) Get(name string, options v1.GetOptions) (result *corev1.HTTPTrigger, err error)

Get takes name of the _hTTPTrigger, and returns the corresponding hTTPTrigger object, and an error if there is any.

func (*FakeHTTPTriggers) List

func (c *FakeHTTPTriggers) List(opts v1.ListOptions) (result *corev1.HTTPTriggerList, err error)

List takes label and field selectors, and returns the list of HTTPTriggers that match those selectors.

func (*FakeHTTPTriggers) Patch

func (c *FakeHTTPTriggers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *corev1.HTTPTrigger, err error)

Patch applies the patch and returns the patched hTTPTrigger.

func (*FakeHTTPTriggers) Update

func (c *FakeHTTPTriggers) Update(_hTTPTrigger *corev1.HTTPTrigger) (result *corev1.HTTPTrigger, err error)

Update takes the representation of a _hTTPTrigger and updates it. Returns the server's representation of the hTTPTrigger, and an error, if there is any.

func (*FakeHTTPTriggers) Watch

func (c *FakeHTTPTriggers) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeKubernetesWatchTriggers

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

FakeKubernetesWatchTriggers implements KubernetesWatchTriggerInterface

func (*FakeKubernetesWatchTriggers) Create

func (c *FakeKubernetesWatchTriggers) Create(_kubernetesWatchTrigger *corev1.KubernetesWatchTrigger) (result *corev1.KubernetesWatchTrigger, err error)

Create takes the representation of a _kubernetesWatchTrigger and creates it. Returns the server's representation of the kubernetesWatchTrigger, and an error, if there is any.

func (*FakeKubernetesWatchTriggers) Delete

func (c *FakeKubernetesWatchTriggers) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the _kubernetesWatchTrigger and deletes it. Returns an error if one occurs.

func (*FakeKubernetesWatchTriggers) DeleteCollection

func (c *FakeKubernetesWatchTriggers) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeKubernetesWatchTriggers) Get

func (c *FakeKubernetesWatchTriggers) Get(name string, options v1.GetOptions) (result *corev1.KubernetesWatchTrigger, err error)

Get takes name of the _kubernetesWatchTrigger, and returns the corresponding kubernetesWatchTrigger object, and an error if there is any.

func (*FakeKubernetesWatchTriggers) List

List takes label and field selectors, and returns the list of KubernetesWatchTriggers that match those selectors.

func (*FakeKubernetesWatchTriggers) Patch

func (c *FakeKubernetesWatchTriggers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *corev1.KubernetesWatchTrigger, err error)

Patch applies the patch and returns the patched kubernetesWatchTrigger.

func (*FakeKubernetesWatchTriggers) Update

func (c *FakeKubernetesWatchTriggers) Update(_kubernetesWatchTrigger *corev1.KubernetesWatchTrigger) (result *corev1.KubernetesWatchTrigger, err error)

Update takes the representation of a _kubernetesWatchTrigger and updates it. Returns the server's representation of the kubernetesWatchTrigger, and an error, if there is any.

func (*FakeKubernetesWatchTriggers) Watch

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

type FakeMessageQueueTriggers

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

FakeMessageQueueTriggers implements MessageQueueTriggerInterface

func (*FakeMessageQueueTriggers) Create

func (c *FakeMessageQueueTriggers) Create(_messageQueueTrigger *corev1.MessageQueueTrigger) (result *corev1.MessageQueueTrigger, err error)

Create takes the representation of a _messageQueueTrigger and creates it. Returns the server's representation of the messageQueueTrigger, and an error, if there is any.

func (*FakeMessageQueueTriggers) Delete

func (c *FakeMessageQueueTriggers) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the _messageQueueTrigger and deletes it. Returns an error if one occurs.

func (*FakeMessageQueueTriggers) DeleteCollection

func (c *FakeMessageQueueTriggers) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeMessageQueueTriggers) Get

func (c *FakeMessageQueueTriggers) Get(name string, options v1.GetOptions) (result *corev1.MessageQueueTrigger, err error)

Get takes name of the _messageQueueTrigger, and returns the corresponding messageQueueTrigger object, and an error if there is any.

func (*FakeMessageQueueTriggers) List

List takes label and field selectors, and returns the list of MessageQueueTriggers that match those selectors.

func (*FakeMessageQueueTriggers) Patch

func (c *FakeMessageQueueTriggers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *corev1.MessageQueueTrigger, err error)

Patch applies the patch and returns the patched messageQueueTrigger.

func (*FakeMessageQueueTriggers) Update

func (c *FakeMessageQueueTriggers) Update(_messageQueueTrigger *corev1.MessageQueueTrigger) (result *corev1.MessageQueueTrigger, err error)

Update takes the representation of a _messageQueueTrigger and updates it. Returns the server's representation of the messageQueueTrigger, and an error, if there is any.

func (*FakeMessageQueueTriggers) Watch

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

type FakePackages

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

FakePackages implements PackageInterface

func (*FakePackages) Create

func (c *FakePackages) Create(_package *corev1.Package) (result *corev1.Package, err error)

Create takes the representation of a _package and creates it. Returns the server's representation of the package, and an error, if there is any.

func (*FakePackages) Delete

func (c *FakePackages) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the _package and deletes it. Returns an error if one occurs.

func (*FakePackages) DeleteCollection

func (c *FakePackages) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakePackages) Get

func (c *FakePackages) Get(name string, options v1.GetOptions) (result *corev1.Package, err error)

Get takes name of the _package, and returns the corresponding package object, and an error if there is any.

func (*FakePackages) List

func (c *FakePackages) List(opts v1.ListOptions) (result *corev1.PackageList, err error)

List takes label and field selectors, and returns the list of Packages that match those selectors.

func (*FakePackages) Patch

func (c *FakePackages) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *corev1.Package, err error)

Patch applies the patch and returns the patched package.

func (*FakePackages) Update

func (c *FakePackages) Update(_package *corev1.Package) (result *corev1.Package, err error)

Update takes the representation of a _package and updates it. Returns the server's representation of the package, and an error, if there is any.

func (*FakePackages) UpdateStatus

func (c *FakePackages) UpdateStatus(_package *corev1.Package) (*corev1.Package, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakePackages) Watch

func (c *FakePackages) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeTimeTriggers

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

FakeTimeTriggers implements TimeTriggerInterface

func (*FakeTimeTriggers) Create

func (c *FakeTimeTriggers) Create(_timeTrigger *corev1.TimeTrigger) (result *corev1.TimeTrigger, err error)

Create takes the representation of a _timeTrigger and creates it. Returns the server's representation of the timeTrigger, and an error, if there is any.

func (*FakeTimeTriggers) Delete

func (c *FakeTimeTriggers) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the _timeTrigger and deletes it. Returns an error if one occurs.

func (*FakeTimeTriggers) DeleteCollection

func (c *FakeTimeTriggers) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeTimeTriggers) Get

func (c *FakeTimeTriggers) Get(name string, options v1.GetOptions) (result *corev1.TimeTrigger, err error)

Get takes name of the _timeTrigger, and returns the corresponding timeTrigger object, and an error if there is any.

func (*FakeTimeTriggers) List

func (c *FakeTimeTriggers) List(opts v1.ListOptions) (result *corev1.TimeTriggerList, err error)

List takes label and field selectors, and returns the list of TimeTriggers that match those selectors.

func (*FakeTimeTriggers) Patch

func (c *FakeTimeTriggers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *corev1.TimeTrigger, err error)

Patch applies the patch and returns the patched timeTrigger.

func (*FakeTimeTriggers) Update

func (c *FakeTimeTriggers) Update(_timeTrigger *corev1.TimeTrigger) (result *corev1.TimeTrigger, err error)

Update takes the representation of a _timeTrigger and updates it. Returns the server's representation of the timeTrigger, and an error, if there is any.

func (*FakeTimeTriggers) Watch

func (c *FakeTimeTriggers) Watch(opts v1.ListOptions) (watch.Interface, error)

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

Jump to

Keyboard shortcuts

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