fake

package
v0.20.15 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: Apache-2.0 Imports: 11 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 FakeClusterTestTypes

type FakeClusterTestTypes struct {
	Fake *FakeExampleV1
}

FakeClusterTestTypes implements ClusterTestTypeInterface

func (*FakeClusterTestTypes) Create

func (c *FakeClusterTestTypes) Create(ctx context.Context, clusterTestType *examplev1.ClusterTestType, opts v1.CreateOptions) (result *examplev1.ClusterTestType, err error)

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

func (*FakeClusterTestTypes) CreateScale added in v0.20.0

func (c *FakeClusterTestTypes) CreateScale(ctx context.Context, clusterTestTypeName string, scale *autoscalingv1.Scale, opts v1.CreateOptions) (result *autoscalingv1.Scale, err error)

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

func (*FakeClusterTestTypes) Delete

func (c *FakeClusterTestTypes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeClusterTestTypes) DeleteCollection

func (c *FakeClusterTestTypes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeClusterTestTypes) Get

func (c *FakeClusterTestTypes) Get(ctx context.Context, name string, options v1.GetOptions) (result *examplev1.ClusterTestType, err error)

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

func (*FakeClusterTestTypes) GetScale

func (c *FakeClusterTestTypes) GetScale(ctx context.Context, clusterTestTypeName string, options v1.GetOptions) (result *autoscalingv1.Scale, err error)

GetScale takes name of the clusterTestType, and returns the corresponding scale object, and an error if there is any.

func (*FakeClusterTestTypes) List

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

func (*FakeClusterTestTypes) Patch

func (c *FakeClusterTestTypes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *examplev1.ClusterTestType, err error)

Patch applies the patch and returns the patched clusterTestType.

func (*FakeClusterTestTypes) Update

func (c *FakeClusterTestTypes) Update(ctx context.Context, clusterTestType *examplev1.ClusterTestType, opts v1.UpdateOptions) (result *examplev1.ClusterTestType, err error)

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

func (*FakeClusterTestTypes) UpdateScale

func (c *FakeClusterTestTypes) UpdateScale(ctx context.Context, clusterTestTypeName string, scale *autoscalingv1.Scale, opts v1.UpdateOptions) (result *autoscalingv1.Scale, err error)

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

func (*FakeClusterTestTypes) UpdateStatus

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

func (*FakeClusterTestTypes) Watch

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

type FakeExampleV1

type FakeExampleV1 struct {
	*testing.Fake
}

func (*FakeExampleV1) ClusterTestTypes

func (c *FakeExampleV1) ClusterTestTypes() v1.ClusterTestTypeInterface

func (*FakeExampleV1) RESTClient

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

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

func (*FakeExampleV1) TestTypes

func (c *FakeExampleV1) TestTypes(namespace string) v1.TestTypeInterface

type FakeTestTypes

type FakeTestTypes struct {
	Fake *FakeExampleV1
	// contains filtered or unexported fields
}

FakeTestTypes implements TestTypeInterface

func (*FakeTestTypes) Create

func (c *FakeTestTypes) Create(ctx context.Context, testType *examplev1.TestType, opts v1.CreateOptions) (result *examplev1.TestType, err error)

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

func (*FakeTestTypes) Delete

func (c *FakeTestTypes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeTestTypes) DeleteCollection

func (c *FakeTestTypes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeTestTypes) Get

func (c *FakeTestTypes) Get(ctx context.Context, name string, options v1.GetOptions) (result *examplev1.TestType, err error)

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

func (*FakeTestTypes) List

func (c *FakeTestTypes) List(ctx context.Context, opts v1.ListOptions) (result *examplev1.TestTypeList, err error)

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

func (*FakeTestTypes) Patch

func (c *FakeTestTypes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *examplev1.TestType, err error)

Patch applies the patch and returns the patched testType.

func (*FakeTestTypes) Update

func (c *FakeTestTypes) Update(ctx context.Context, testType *examplev1.TestType, opts v1.UpdateOptions) (result *examplev1.TestType, err error)

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

func (*FakeTestTypes) UpdateStatus

func (c *FakeTestTypes) UpdateStatus(ctx context.Context, testType *examplev1.TestType, opts v1.UpdateOptions) (*examplev1.TestType, error)

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

func (*FakeTestTypes) Watch

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

Jump to

Keyboard shortcuts

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