fake

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 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 FakeAccesses

type FakeAccesses struct {
	Fake *FakeDiskV1alpha1
	// contains filtered or unexported fields
}

FakeAccesses implements AccessInterface

func (*FakeAccesses) Create

func (c *FakeAccesses) Create(ctx context.Context, access *v1alpha1.Access, opts v1.CreateOptions) (result *v1alpha1.Access, err error)

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

func (*FakeAccesses) Delete

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

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

func (*FakeAccesses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAccesses) Get

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

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

func (*FakeAccesses) List

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

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

func (*FakeAccesses) Patch

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

Patch applies the patch and returns the patched access.

func (*FakeAccesses) Update

func (c *FakeAccesses) Update(ctx context.Context, access *v1alpha1.Access, opts v1.UpdateOptions) (result *v1alpha1.Access, err error)

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

func (*FakeAccesses) UpdateStatus

func (c *FakeAccesses) UpdateStatus(ctx context.Context, access *v1alpha1.Access, opts v1.UpdateOptions) (*v1alpha1.Access, error)

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

func (*FakeAccesses) Watch

func (c *FakeAccesses) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakeDiskV1alpha1

type FakeDiskV1alpha1 struct {
	*testing.Fake
}

func (*FakeDiskV1alpha1) Accesses

func (c *FakeDiskV1alpha1) Accesses(namespace string) v1alpha1.AccessInterface

func (*FakeDiskV1alpha1) EncryptionSets

func (c *FakeDiskV1alpha1) EncryptionSets(namespace string) v1alpha1.EncryptionSetInterface

func (*FakeDiskV1alpha1) PoolIscsiTargetLuns added in v0.5.0

func (c *FakeDiskV1alpha1) PoolIscsiTargetLuns(namespace string) v1alpha1.PoolIscsiTargetLunInterface

func (*FakeDiskV1alpha1) PoolIscsiTargets added in v0.5.0

func (c *FakeDiskV1alpha1) PoolIscsiTargets(namespace string) v1alpha1.PoolIscsiTargetInterface

func (*FakeDiskV1alpha1) PoolManagedDiskAttachments added in v0.5.0

func (c *FakeDiskV1alpha1) PoolManagedDiskAttachments(namespace string) v1alpha1.PoolManagedDiskAttachmentInterface

func (*FakeDiskV1alpha1) Pools added in v0.5.0

func (c *FakeDiskV1alpha1) Pools(namespace string) v1alpha1.PoolInterface

func (*FakeDiskV1alpha1) RESTClient

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

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

type FakeEncryptionSets

type FakeEncryptionSets struct {
	Fake *FakeDiskV1alpha1
	// contains filtered or unexported fields
}

FakeEncryptionSets implements EncryptionSetInterface

func (*FakeEncryptionSets) Create

func (c *FakeEncryptionSets) Create(ctx context.Context, encryptionSet *v1alpha1.EncryptionSet, opts v1.CreateOptions) (result *v1alpha1.EncryptionSet, err error)

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

func (*FakeEncryptionSets) Delete

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

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

func (*FakeEncryptionSets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEncryptionSets) Get

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

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

func (*FakeEncryptionSets) List

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

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

func (*FakeEncryptionSets) Patch

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

Patch applies the patch and returns the patched encryptionSet.

func (*FakeEncryptionSets) Update

func (c *FakeEncryptionSets) Update(ctx context.Context, encryptionSet *v1alpha1.EncryptionSet, opts v1.UpdateOptions) (result *v1alpha1.EncryptionSet, err error)

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

func (*FakeEncryptionSets) UpdateStatus

func (c *FakeEncryptionSets) UpdateStatus(ctx context.Context, encryptionSet *v1alpha1.EncryptionSet, opts v1.UpdateOptions) (*v1alpha1.EncryptionSet, error)

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

func (*FakeEncryptionSets) Watch

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

type FakePoolIscsiTargetLuns added in v0.5.0

type FakePoolIscsiTargetLuns struct {
	Fake *FakeDiskV1alpha1
	// contains filtered or unexported fields
}

FakePoolIscsiTargetLuns implements PoolIscsiTargetLunInterface

func (*FakePoolIscsiTargetLuns) Create added in v0.5.0

func (c *FakePoolIscsiTargetLuns) Create(ctx context.Context, poolIscsiTargetLun *v1alpha1.PoolIscsiTargetLun, opts v1.CreateOptions) (result *v1alpha1.PoolIscsiTargetLun, err error)

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

func (*FakePoolIscsiTargetLuns) Delete added in v0.5.0

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

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

func (*FakePoolIscsiTargetLuns) DeleteCollection added in v0.5.0

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

DeleteCollection deletes a collection of objects.

func (*FakePoolIscsiTargetLuns) Get added in v0.5.0

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

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

func (*FakePoolIscsiTargetLuns) List added in v0.5.0

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

func (*FakePoolIscsiTargetLuns) Patch added in v0.5.0

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

Patch applies the patch and returns the patched poolIscsiTargetLun.

func (*FakePoolIscsiTargetLuns) Update added in v0.5.0

func (c *FakePoolIscsiTargetLuns) Update(ctx context.Context, poolIscsiTargetLun *v1alpha1.PoolIscsiTargetLun, opts v1.UpdateOptions) (result *v1alpha1.PoolIscsiTargetLun, err error)

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

func (*FakePoolIscsiTargetLuns) UpdateStatus added in v0.5.0

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

func (*FakePoolIscsiTargetLuns) Watch added in v0.5.0

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

type FakePoolIscsiTargets added in v0.5.0

type FakePoolIscsiTargets struct {
	Fake *FakeDiskV1alpha1
	// contains filtered or unexported fields
}

FakePoolIscsiTargets implements PoolIscsiTargetInterface

func (*FakePoolIscsiTargets) Create added in v0.5.0

func (c *FakePoolIscsiTargets) Create(ctx context.Context, poolIscsiTarget *v1alpha1.PoolIscsiTarget, opts v1.CreateOptions) (result *v1alpha1.PoolIscsiTarget, err error)

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

func (*FakePoolIscsiTargets) Delete added in v0.5.0

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

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

func (*FakePoolIscsiTargets) DeleteCollection added in v0.5.0

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

DeleteCollection deletes a collection of objects.

func (*FakePoolIscsiTargets) Get added in v0.5.0

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

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

func (*FakePoolIscsiTargets) List added in v0.5.0

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

func (*FakePoolIscsiTargets) Patch added in v0.5.0

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

Patch applies the patch and returns the patched poolIscsiTarget.

func (*FakePoolIscsiTargets) Update added in v0.5.0

func (c *FakePoolIscsiTargets) Update(ctx context.Context, poolIscsiTarget *v1alpha1.PoolIscsiTarget, opts v1.UpdateOptions) (result *v1alpha1.PoolIscsiTarget, err error)

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

func (*FakePoolIscsiTargets) UpdateStatus added in v0.5.0

func (c *FakePoolIscsiTargets) UpdateStatus(ctx context.Context, poolIscsiTarget *v1alpha1.PoolIscsiTarget, opts v1.UpdateOptions) (*v1alpha1.PoolIscsiTarget, error)

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

func (*FakePoolIscsiTargets) Watch added in v0.5.0

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

type FakePoolManagedDiskAttachments added in v0.5.0

type FakePoolManagedDiskAttachments struct {
	Fake *FakeDiskV1alpha1
	// contains filtered or unexported fields
}

FakePoolManagedDiskAttachments implements PoolManagedDiskAttachmentInterface

func (*FakePoolManagedDiskAttachments) Create added in v0.5.0

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

func (*FakePoolManagedDiskAttachments) Delete added in v0.5.0

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

func (*FakePoolManagedDiskAttachments) DeleteCollection added in v0.5.0

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

DeleteCollection deletes a collection of objects.

func (*FakePoolManagedDiskAttachments) Get added in v0.5.0

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

func (*FakePoolManagedDiskAttachments) List added in v0.5.0

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

func (*FakePoolManagedDiskAttachments) Patch added in v0.5.0

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

Patch applies the patch and returns the patched poolManagedDiskAttachment.

func (*FakePoolManagedDiskAttachments) Update added in v0.5.0

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

func (*FakePoolManagedDiskAttachments) UpdateStatus added in v0.5.0

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

func (*FakePoolManagedDiskAttachments) Watch added in v0.5.0

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

type FakePools added in v0.5.0

type FakePools struct {
	Fake *FakeDiskV1alpha1
	// contains filtered or unexported fields
}

FakePools implements PoolInterface

func (*FakePools) Create added in v0.5.0

func (c *FakePools) Create(ctx context.Context, pool *v1alpha1.Pool, opts v1.CreateOptions) (result *v1alpha1.Pool, err error)

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

func (*FakePools) Delete added in v0.5.0

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

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

func (*FakePools) DeleteCollection added in v0.5.0

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

DeleteCollection deletes a collection of objects.

func (*FakePools) Get added in v0.5.0

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

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

func (*FakePools) List added in v0.5.0

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

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

func (*FakePools) Patch added in v0.5.0

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

Patch applies the patch and returns the patched pool.

func (*FakePools) Update added in v0.5.0

func (c *FakePools) Update(ctx context.Context, pool *v1alpha1.Pool, opts v1.UpdateOptions) (result *v1alpha1.Pool, err error)

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

func (*FakePools) UpdateStatus added in v0.5.0

func (c *FakePools) UpdateStatus(ctx context.Context, pool *v1alpha1.Pool, opts v1.UpdateOptions) (*v1alpha1.Pool, error)

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

func (*FakePools) Watch added in v0.5.0

func (c *FakePools) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

Jump to

Keyboard shortcuts

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