fake

package
v0.13.13 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 10 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 FakeClusterImagePolicies

type FakeClusterImagePolicies struct {
	Fake *FakePortierisV1
}

FakeClusterImagePolicies implements ClusterImagePolicyInterface

func (*FakeClusterImagePolicies) Create

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

func (*FakeClusterImagePolicies) Delete

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

func (*FakeClusterImagePolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterImagePolicies) Get

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

func (*FakeClusterImagePolicies) List

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

func (*FakeClusterImagePolicies) Patch

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

Patch applies the patch and returns the patched clusterImagePolicy.

func (*FakeClusterImagePolicies) Update

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

func (*FakeClusterImagePolicies) Watch

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

type FakeImagePolicies

type FakeImagePolicies struct {
	Fake *FakePortierisV1
	// contains filtered or unexported fields
}

FakeImagePolicies implements ImagePolicyInterface

func (*FakeImagePolicies) Create

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

func (*FakeImagePolicies) Delete

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

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

func (*FakeImagePolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeImagePolicies) Get

func (c *FakeImagePolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *portieriscloudibmcomv1.ImagePolicy, err error)

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

func (*FakeImagePolicies) List

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

func (*FakeImagePolicies) Patch

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

Patch applies the patch and returns the patched imagePolicy.

func (*FakeImagePolicies) Update

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

func (*FakeImagePolicies) Watch

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

type FakePortierisV1

type FakePortierisV1 struct {
	*testing.Fake
}

func (*FakePortierisV1) ClusterImagePolicies

func (c *FakePortierisV1) ClusterImagePolicies() v1.ClusterImagePolicyInterface

func (*FakePortierisV1) ImagePolicies

func (c *FakePortierisV1) ImagePolicies(namespace string) v1.ImagePolicyInterface

func (*FakePortierisV1) RESTClient

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

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

Jump to

Keyboard shortcuts

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