fake

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: Apache-2.0 Imports: 9 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 FakeVLANClaims

type FakeVLANClaims struct {
	Fake *FakeVlanV1alpha1
	// contains filtered or unexported fields
}

FakeVLANClaims implements VLANClaimInterface

func (*FakeVLANClaims) Create

func (c *FakeVLANClaims) Create(ctx context.Context, vLANClaim *v1alpha1.VLANClaim, opts v1.CreateOptions) (result *v1alpha1.VLANClaim, err error)

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

func (*FakeVLANClaims) Delete

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

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

func (*FakeVLANClaims) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVLANClaims) Get

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

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

func (*FakeVLANClaims) List

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

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

func (*FakeVLANClaims) Patch

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

Patch applies the patch and returns the patched vLANClaim.

func (*FakeVLANClaims) Update

func (c *FakeVLANClaims) Update(ctx context.Context, vLANClaim *v1alpha1.VLANClaim, opts v1.UpdateOptions) (result *v1alpha1.VLANClaim, err error)

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

func (*FakeVLANClaims) UpdateStatus

func (c *FakeVLANClaims) UpdateStatus(ctx context.Context, vLANClaim *v1alpha1.VLANClaim, opts v1.UpdateOptions) (*v1alpha1.VLANClaim, error)

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

func (*FakeVLANClaims) Watch

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

type FakeVLANEntries

type FakeVLANEntries struct {
	Fake *FakeVlanV1alpha1
	// contains filtered or unexported fields
}

FakeVLANEntries implements VLANEntryInterface

func (*FakeVLANEntries) Create

func (c *FakeVLANEntries) Create(ctx context.Context, vLANEntry *v1alpha1.VLANEntry, opts v1.CreateOptions) (result *v1alpha1.VLANEntry, err error)

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

func (*FakeVLANEntries) Delete

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

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

func (*FakeVLANEntries) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVLANEntries) Get

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

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

func (*FakeVLANEntries) List

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

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

func (*FakeVLANEntries) Patch

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

Patch applies the patch and returns the patched vLANEntry.

func (*FakeVLANEntries) Update

func (c *FakeVLANEntries) Update(ctx context.Context, vLANEntry *v1alpha1.VLANEntry, opts v1.UpdateOptions) (result *v1alpha1.VLANEntry, err error)

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

func (*FakeVLANEntries) UpdateStatus

func (c *FakeVLANEntries) UpdateStatus(ctx context.Context, vLANEntry *v1alpha1.VLANEntry, opts v1.UpdateOptions) (*v1alpha1.VLANEntry, error)

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

func (*FakeVLANEntries) Watch

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

type FakeVLANIndexes

type FakeVLANIndexes struct {
	Fake *FakeVlanV1alpha1
	// contains filtered or unexported fields
}

FakeVLANIndexes implements VLANIndexInterface

func (*FakeVLANIndexes) Create

func (c *FakeVLANIndexes) Create(ctx context.Context, vLANIndex *v1alpha1.VLANIndex, opts v1.CreateOptions) (result *v1alpha1.VLANIndex, err error)

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

func (*FakeVLANIndexes) Delete

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

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

func (*FakeVLANIndexes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVLANIndexes) Get

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

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

func (*FakeVLANIndexes) List

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

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

func (*FakeVLANIndexes) Patch

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

Patch applies the patch and returns the patched vLANIndex.

func (*FakeVLANIndexes) Update

func (c *FakeVLANIndexes) Update(ctx context.Context, vLANIndex *v1alpha1.VLANIndex, opts v1.UpdateOptions) (result *v1alpha1.VLANIndex, err error)

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

func (*FakeVLANIndexes) UpdateStatus

func (c *FakeVLANIndexes) UpdateStatus(ctx context.Context, vLANIndex *v1alpha1.VLANIndex, opts v1.UpdateOptions) (*v1alpha1.VLANIndex, error)

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

func (*FakeVLANIndexes) Watch

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

type FakeVlanV1alpha1

type FakeVlanV1alpha1 struct {
	*testing.Fake
}

func (*FakeVlanV1alpha1) RESTClient

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

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

func (*FakeVlanV1alpha1) VLANClaims

func (c *FakeVlanV1alpha1) VLANClaims(namespace string) v1alpha1.VLANClaimInterface

func (*FakeVlanV1alpha1) VLANEntries

func (c *FakeVlanV1alpha1) VLANEntries(namespace string) v1alpha1.VLANEntryInterface

func (*FakeVlanV1alpha1) VLANIndexes

func (c *FakeVlanV1alpha1) VLANIndexes(namespace string) v1alpha1.VLANIndexInterface

Jump to

Keyboard shortcuts

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