fake

package
v0.0.0-...-5f968fd Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 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 FakeAppsV1alpha1

type FakeAppsV1alpha1 struct {
	*testing.Fake
}

func (*FakeAppsV1alpha1) ClusterManifests

func (c *FakeAppsV1alpha1) ClusterManifests() v1alpha1.ClusterManifestInterface

func (*FakeAppsV1alpha1) Manifests

func (c *FakeAppsV1alpha1) Manifests(namespace string) v1alpha1.ManifestInterface

func (*FakeAppsV1alpha1) RESTClient

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

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

type FakeClusterManifests

type FakeClusterManifests struct {
	Fake *FakeAppsV1alpha1
}

FakeClusterManifests implements ClusterManifestInterface

func (*FakeClusterManifests) Create

func (c *FakeClusterManifests) Create(ctx context.Context, clusterManifest *v1alpha1.ClusterManifest, opts v1.CreateOptions) (result *v1alpha1.ClusterManifest, err error)

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

func (*FakeClusterManifests) Delete

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

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

func (*FakeClusterManifests) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterManifests) Get

func (c *FakeClusterManifests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ClusterManifest, err error)

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

func (*FakeClusterManifests) List

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

func (*FakeClusterManifests) Patch

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

Patch applies the patch and returns the patched clusterManifest.

func (*FakeClusterManifests) Update

func (c *FakeClusterManifests) Update(ctx context.Context, clusterManifest *v1alpha1.ClusterManifest, opts v1.UpdateOptions) (result *v1alpha1.ClusterManifest, err error)

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

func (*FakeClusterManifests) Watch

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

type FakeManifests

type FakeManifests struct {
	Fake *FakeAppsV1alpha1
	// contains filtered or unexported fields
}

FakeManifests implements ManifestInterface

func (*FakeManifests) Create

func (c *FakeManifests) Create(ctx context.Context, manifest *v1alpha1.Manifest, opts v1.CreateOptions) (result *v1alpha1.Manifest, err error)

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

func (*FakeManifests) Delete

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

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

func (*FakeManifests) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeManifests) Get

func (c *FakeManifests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Manifest, err error)

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

func (*FakeManifests) List

func (c *FakeManifests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ManifestList, err error)

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

func (*FakeManifests) Patch

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

Patch applies the patch and returns the patched manifest.

func (*FakeManifests) Update

func (c *FakeManifests) Update(ctx context.Context, manifest *v1alpha1.Manifest, opts v1.UpdateOptions) (result *v1alpha1.Manifest, err error)

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

func (*FakeManifests) Watch

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

Jump to

Keyboard shortcuts

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