fake

package
v0.16.8 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 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 FakeAkashV1

type FakeAkashV1 struct {
	*testing.Fake
}

func (*FakeAkashV1) Manifests

func (c *FakeAkashV1) Manifests(namespace string) v1.ManifestInterface

func (*FakeAkashV1) ProviderHosts added in v0.14.0

func (c *FakeAkashV1) ProviderHosts(namespace string) v1.ProviderHostInterface

func (*FakeAkashV1) RESTClient

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

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

type FakeManifests

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

FakeManifests implements ManifestInterface

func (*FakeManifests) Create

func (c *FakeManifests) Create(ctx context.Context, manifest *akashnetworkv1.Manifest, opts v1.CreateOptions) (result *akashnetworkv1.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 *akashnetworkv1.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 *akashnetworkv1.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 *akashnetworkv1.Manifest, err error)

Patch applies the patch and returns the patched manifest.

func (*FakeManifests) Update

func (c *FakeManifests) Update(ctx context.Context, manifest *akashnetworkv1.Manifest, opts v1.UpdateOptions) (result *akashnetworkv1.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) UpdateStatus

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

func (*FakeManifests) Watch

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

type FakeProviderHosts added in v0.14.0

type FakeProviderHosts struct {
	Fake *FakeAkashV1
	// contains filtered or unexported fields
}

FakeProviderHosts implements ProviderHostInterface

func (*FakeProviderHosts) Create added in v0.14.0

func (c *FakeProviderHosts) Create(ctx context.Context, providerHost *akashnetworkv1.ProviderHost, opts v1.CreateOptions) (result *akashnetworkv1.ProviderHost, err error)

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

func (*FakeProviderHosts) Delete added in v0.14.0

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

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

func (*FakeProviderHosts) DeleteCollection added in v0.14.0

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

DeleteCollection deletes a collection of objects.

func (*FakeProviderHosts) Get added in v0.14.0

func (c *FakeProviderHosts) Get(ctx context.Context, name string, options v1.GetOptions) (result *akashnetworkv1.ProviderHost, err error)

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

func (*FakeProviderHosts) List added in v0.14.0

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

func (*FakeProviderHosts) Patch added in v0.14.0

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

Patch applies the patch and returns the patched providerHost.

func (*FakeProviderHosts) Update added in v0.14.0

func (c *FakeProviderHosts) Update(ctx context.Context, providerHost *akashnetworkv1.ProviderHost, opts v1.UpdateOptions) (result *akashnetworkv1.ProviderHost, err error)

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

func (*FakeProviderHosts) UpdateStatus added in v0.14.0

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

func (*FakeProviderHosts) Watch added in v0.14.0

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

Jump to

Keyboard shortcuts

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