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 FakeEncryptedDatas

type FakeEncryptedDatas struct {
	Fake *FakeKmsV1alpha1
	// contains filtered or unexported fields
}

FakeEncryptedDatas implements EncryptedDataInterface

func (*FakeEncryptedDatas) Create

func (c *FakeEncryptedDatas) Create(ctx context.Context, encryptedData *v1alpha1.EncryptedData, opts v1.CreateOptions) (result *v1alpha1.EncryptedData, err error)

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

func (*FakeEncryptedDatas) Delete

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

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

func (*FakeEncryptedDatas) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEncryptedDatas) Get

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

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

func (*FakeEncryptedDatas) List

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

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

func (*FakeEncryptedDatas) Patch

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

Patch applies the patch and returns the patched encryptedData.

func (*FakeEncryptedDatas) Update

func (c *FakeEncryptedDatas) Update(ctx context.Context, encryptedData *v1alpha1.EncryptedData, opts v1.UpdateOptions) (result *v1alpha1.EncryptedData, err error)

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

func (*FakeEncryptedDatas) UpdateStatus

func (c *FakeEncryptedDatas) UpdateStatus(ctx context.Context, encryptedData *v1alpha1.EncryptedData, opts v1.UpdateOptions) (*v1alpha1.EncryptedData, error)

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

func (*FakeEncryptedDatas) Watch

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

type FakeGeneratedKeys

type FakeGeneratedKeys struct {
	Fake *FakeKmsV1alpha1
	// contains filtered or unexported fields
}

FakeGeneratedKeys implements GeneratedKeyInterface

func (*FakeGeneratedKeys) Create

func (c *FakeGeneratedKeys) Create(ctx context.Context, generatedKey *v1alpha1.GeneratedKey, opts v1.CreateOptions) (result *v1alpha1.GeneratedKey, err error)

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

func (*FakeGeneratedKeys) Delete

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

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

func (*FakeGeneratedKeys) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGeneratedKeys) Get

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

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

func (*FakeGeneratedKeys) List

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

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

func (*FakeGeneratedKeys) Patch

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

Patch applies the patch and returns the patched generatedKey.

func (*FakeGeneratedKeys) Update

func (c *FakeGeneratedKeys) Update(ctx context.Context, generatedKey *v1alpha1.GeneratedKey, opts v1.UpdateOptions) (result *v1alpha1.GeneratedKey, err error)

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

func (*FakeGeneratedKeys) UpdateStatus

func (c *FakeGeneratedKeys) UpdateStatus(ctx context.Context, generatedKey *v1alpha1.GeneratedKey, opts v1.UpdateOptions) (*v1alpha1.GeneratedKey, error)

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

func (*FakeGeneratedKeys) Watch

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

type FakeKeyVersions

type FakeKeyVersions struct {
	Fake *FakeKmsV1alpha1
	// contains filtered or unexported fields
}

FakeKeyVersions implements KeyVersionInterface

func (*FakeKeyVersions) Create

func (c *FakeKeyVersions) Create(ctx context.Context, keyVersion *v1alpha1.KeyVersion, opts v1.CreateOptions) (result *v1alpha1.KeyVersion, err error)

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

func (*FakeKeyVersions) Delete

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

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

func (*FakeKeyVersions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeKeyVersions) Get

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

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

func (*FakeKeyVersions) List

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

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

func (*FakeKeyVersions) Patch

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

Patch applies the patch and returns the patched keyVersion.

func (*FakeKeyVersions) Update

func (c *FakeKeyVersions) Update(ctx context.Context, keyVersion *v1alpha1.KeyVersion, opts v1.UpdateOptions) (result *v1alpha1.KeyVersion, err error)

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

func (*FakeKeyVersions) UpdateStatus

func (c *FakeKeyVersions) UpdateStatus(ctx context.Context, keyVersion *v1alpha1.KeyVersion, opts v1.UpdateOptions) (*v1alpha1.KeyVersion, error)

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

func (*FakeKeyVersions) Watch

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

type FakeKeys

type FakeKeys struct {
	Fake *FakeKmsV1alpha1
	// contains filtered or unexported fields
}

FakeKeys implements KeyInterface

func (*FakeKeys) Create

func (c *FakeKeys) Create(ctx context.Context, key *v1alpha1.Key, opts v1.CreateOptions) (result *v1alpha1.Key, err error)

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

func (*FakeKeys) Delete

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

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

func (*FakeKeys) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeKeys) Get

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

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

func (*FakeKeys) List

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

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

func (*FakeKeys) Patch

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

Patch applies the patch and returns the patched key.

func (*FakeKeys) Update

func (c *FakeKeys) Update(ctx context.Context, key *v1alpha1.Key, opts v1.UpdateOptions) (result *v1alpha1.Key, err error)

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

func (*FakeKeys) UpdateStatus

func (c *FakeKeys) UpdateStatus(ctx context.Context, key *v1alpha1.Key, opts v1.UpdateOptions) (*v1alpha1.Key, error)

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

func (*FakeKeys) Watch

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

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

type FakeKmsV1alpha1

type FakeKmsV1alpha1 struct {
	*testing.Fake
}

func (*FakeKmsV1alpha1) EncryptedDatas

func (c *FakeKmsV1alpha1) EncryptedDatas(namespace string) v1alpha1.EncryptedDataInterface

func (*FakeKmsV1alpha1) GeneratedKeys

func (c *FakeKmsV1alpha1) GeneratedKeys(namespace string) v1alpha1.GeneratedKeyInterface

func (*FakeKmsV1alpha1) KeyVersions

func (c *FakeKmsV1alpha1) KeyVersions(namespace string) v1alpha1.KeyVersionInterface

func (*FakeKmsV1alpha1) Keys

func (c *FakeKmsV1alpha1) Keys(namespace string) v1alpha1.KeyInterface

func (*FakeKmsV1alpha1) RESTClient

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

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

func (*FakeKmsV1alpha1) Signs

func (c *FakeKmsV1alpha1) Signs(namespace string) v1alpha1.SignInterface

func (*FakeKmsV1alpha1) VaultReplications

func (c *FakeKmsV1alpha1) VaultReplications(namespace string) v1alpha1.VaultReplicationInterface

func (*FakeKmsV1alpha1) Vaults

func (c *FakeKmsV1alpha1) Vaults(namespace string) v1alpha1.VaultInterface

func (*FakeKmsV1alpha1) Verifies

func (c *FakeKmsV1alpha1) Verifies(namespace string) v1alpha1.VerifyInterface

type FakeSigns

type FakeSigns struct {
	Fake *FakeKmsV1alpha1
	// contains filtered or unexported fields
}

FakeSigns implements SignInterface

func (*FakeSigns) Create

func (c *FakeSigns) Create(ctx context.Context, sign *v1alpha1.Sign, opts v1.CreateOptions) (result *v1alpha1.Sign, err error)

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

func (*FakeSigns) Delete

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

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

func (*FakeSigns) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSigns) Get

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

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

func (*FakeSigns) List

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

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

func (*FakeSigns) Patch

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

Patch applies the patch and returns the patched sign.

func (*FakeSigns) Update

func (c *FakeSigns) Update(ctx context.Context, sign *v1alpha1.Sign, opts v1.UpdateOptions) (result *v1alpha1.Sign, err error)

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

func (*FakeSigns) UpdateStatus

func (c *FakeSigns) UpdateStatus(ctx context.Context, sign *v1alpha1.Sign, opts v1.UpdateOptions) (*v1alpha1.Sign, error)

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

func (*FakeSigns) Watch

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

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

type FakeVaultReplications

type FakeVaultReplications struct {
	Fake *FakeKmsV1alpha1
	// contains filtered or unexported fields
}

FakeVaultReplications implements VaultReplicationInterface

func (*FakeVaultReplications) Create

func (c *FakeVaultReplications) Create(ctx context.Context, vaultReplication *v1alpha1.VaultReplication, opts v1.CreateOptions) (result *v1alpha1.VaultReplication, err error)

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

func (*FakeVaultReplications) Delete

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

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

func (*FakeVaultReplications) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVaultReplications) Get

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

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

func (*FakeVaultReplications) List

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

func (*FakeVaultReplications) Patch

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

Patch applies the patch and returns the patched vaultReplication.

func (*FakeVaultReplications) Update

func (c *FakeVaultReplications) Update(ctx context.Context, vaultReplication *v1alpha1.VaultReplication, opts v1.UpdateOptions) (result *v1alpha1.VaultReplication, err error)

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

func (*FakeVaultReplications) UpdateStatus

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

func (*FakeVaultReplications) Watch

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

type FakeVaults

type FakeVaults struct {
	Fake *FakeKmsV1alpha1
	// contains filtered or unexported fields
}

FakeVaults implements VaultInterface

func (*FakeVaults) Create

func (c *FakeVaults) Create(ctx context.Context, vault *v1alpha1.Vault, opts v1.CreateOptions) (result *v1alpha1.Vault, err error)

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

func (*FakeVaults) Delete

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

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

func (*FakeVaults) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVaults) Get

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

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

func (*FakeVaults) List

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

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

func (*FakeVaults) Patch

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

Patch applies the patch and returns the patched vault.

func (*FakeVaults) Update

func (c *FakeVaults) Update(ctx context.Context, vault *v1alpha1.Vault, opts v1.UpdateOptions) (result *v1alpha1.Vault, err error)

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

func (*FakeVaults) UpdateStatus

func (c *FakeVaults) UpdateStatus(ctx context.Context, vault *v1alpha1.Vault, opts v1.UpdateOptions) (*v1alpha1.Vault, error)

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

func (*FakeVaults) Watch

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

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

type FakeVerifies

type FakeVerifies struct {
	Fake *FakeKmsV1alpha1
	// contains filtered or unexported fields
}

FakeVerifies implements VerifyInterface

func (*FakeVerifies) Create

func (c *FakeVerifies) Create(ctx context.Context, verify *v1alpha1.Verify, opts v1.CreateOptions) (result *v1alpha1.Verify, err error)

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

func (*FakeVerifies) Delete

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

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

func (*FakeVerifies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVerifies) Get

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

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

func (*FakeVerifies) List

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

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

func (*FakeVerifies) Patch

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

Patch applies the patch and returns the patched verify.

func (*FakeVerifies) Update

func (c *FakeVerifies) Update(ctx context.Context, verify *v1alpha1.Verify, opts v1.UpdateOptions) (result *v1alpha1.Verify, err error)

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

func (*FakeVerifies) UpdateStatus

func (c *FakeVerifies) UpdateStatus(ctx context.Context, verify *v1alpha1.Verify, opts v1.UpdateOptions) (*v1alpha1.Verify, error)

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

func (*FakeVerifies) Watch

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

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

Jump to

Keyboard shortcuts

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