fake

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: Apache-2.0 Imports: 9 Imported by: 1

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 FakeServicePolicies

type FakeServicePolicies struct {
	Fake *FakeServicemeshV1alpha2
	// contains filtered or unexported fields
}

FakeServicePolicies implements ServicePolicyInterface

func (*FakeServicePolicies) Create

func (c *FakeServicePolicies) Create(servicePolicy *v1alpha2.ServicePolicy) (result *v1alpha2.ServicePolicy, err error)

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

func (*FakeServicePolicies) Delete

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

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

func (*FakeServicePolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeServicePolicies) Get

func (c *FakeServicePolicies) Get(name string, options v1.GetOptions) (result *v1alpha2.ServicePolicy, err error)

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

func (*FakeServicePolicies) List

func (c *FakeServicePolicies) List(opts v1.ListOptions) (result *v1alpha2.ServicePolicyList, err error)

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

func (*FakeServicePolicies) Patch

func (c *FakeServicePolicies) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha2.ServicePolicy, err error)

Patch applies the patch and returns the patched servicePolicy.

func (*FakeServicePolicies) Update

func (c *FakeServicePolicies) Update(servicePolicy *v1alpha2.ServicePolicy) (result *v1alpha2.ServicePolicy, err error)

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

func (*FakeServicePolicies) UpdateStatus

func (c *FakeServicePolicies) UpdateStatus(servicePolicy *v1alpha2.ServicePolicy) (*v1alpha2.ServicePolicy, error)

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

func (*FakeServicePolicies) Watch

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

type FakeServicemeshV1alpha2

type FakeServicemeshV1alpha2 struct {
	*testing.Fake
}

func (*FakeServicemeshV1alpha2) RESTClient

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

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

func (*FakeServicemeshV1alpha2) ServicePolicies

func (c *FakeServicemeshV1alpha2) ServicePolicies(namespace string) v1alpha2.ServicePolicyInterface

func (*FakeServicemeshV1alpha2) Strategies

func (c *FakeServicemeshV1alpha2) Strategies(namespace string) v1alpha2.StrategyInterface

type FakeStrategies

type FakeStrategies struct {
	Fake *FakeServicemeshV1alpha2
	// contains filtered or unexported fields
}

FakeStrategies implements StrategyInterface

func (*FakeStrategies) Create

func (c *FakeStrategies) Create(strategy *v1alpha2.Strategy) (result *v1alpha2.Strategy, err error)

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

func (*FakeStrategies) Delete

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

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

func (*FakeStrategies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeStrategies) Get

func (c *FakeStrategies) Get(name string, options v1.GetOptions) (result *v1alpha2.Strategy, err error)

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

func (*FakeStrategies) List

func (c *FakeStrategies) List(opts v1.ListOptions) (result *v1alpha2.StrategyList, err error)

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

func (*FakeStrategies) Patch

func (c *FakeStrategies) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha2.Strategy, err error)

Patch applies the patch and returns the patched strategy.

func (*FakeStrategies) Update

func (c *FakeStrategies) Update(strategy *v1alpha2.Strategy) (result *v1alpha2.Strategy, err error)

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

func (*FakeStrategies) UpdateStatus

func (c *FakeStrategies) UpdateStatus(strategy *v1alpha2.Strategy) (*v1alpha2.Strategy, error)

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

func (*FakeStrategies) Watch

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

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

Jump to

Keyboard shortcuts

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