fake

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 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 FakePolicyV1alpha1

type FakePolicyV1alpha1 struct {
	*testing.Fake
}

func (*FakePolicyV1alpha1) RESTClient

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

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

func (*FakePolicyV1alpha1) VaultPolicies

func (c *FakePolicyV1alpha1) VaultPolicies(namespace string) v1alpha1.VaultPolicyInterface

func (*FakePolicyV1alpha1) VaultPolicyBindings

func (c *FakePolicyV1alpha1) VaultPolicyBindings(namespace string) v1alpha1.VaultPolicyBindingInterface

type FakeVaultPolicies

type FakeVaultPolicies struct {
	Fake *FakePolicyV1alpha1
	// contains filtered or unexported fields
}

FakeVaultPolicies implements VaultPolicyInterface

func (*FakeVaultPolicies) Create

func (c *FakeVaultPolicies) Create(ctx context.Context, vaultPolicy *v1alpha1.VaultPolicy, opts v1.CreateOptions) (result *v1alpha1.VaultPolicy, err error)

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

func (*FakeVaultPolicies) Delete

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

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

func (*FakeVaultPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVaultPolicies) Get

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

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

func (*FakeVaultPolicies) List

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

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

func (*FakeVaultPolicies) Patch

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

Patch applies the patch and returns the patched vaultPolicy.

func (*FakeVaultPolicies) Update

func (c *FakeVaultPolicies) Update(ctx context.Context, vaultPolicy *v1alpha1.VaultPolicy, opts v1.UpdateOptions) (result *v1alpha1.VaultPolicy, err error)

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

func (*FakeVaultPolicies) UpdateStatus

func (c *FakeVaultPolicies) UpdateStatus(ctx context.Context, vaultPolicy *v1alpha1.VaultPolicy, opts v1.UpdateOptions) (*v1alpha1.VaultPolicy, error)

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

func (*FakeVaultPolicies) Watch

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

type FakeVaultPolicyBindings

type FakeVaultPolicyBindings struct {
	Fake *FakePolicyV1alpha1
	// contains filtered or unexported fields
}

FakeVaultPolicyBindings implements VaultPolicyBindingInterface

func (*FakeVaultPolicyBindings) Create

func (c *FakeVaultPolicyBindings) Create(ctx context.Context, vaultPolicyBinding *v1alpha1.VaultPolicyBinding, opts v1.CreateOptions) (result *v1alpha1.VaultPolicyBinding, err error)

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

func (*FakeVaultPolicyBindings) Delete

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

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

func (*FakeVaultPolicyBindings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVaultPolicyBindings) Get

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

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

func (*FakeVaultPolicyBindings) List

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

func (*FakeVaultPolicyBindings) Patch

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

Patch applies the patch and returns the patched vaultPolicyBinding.

func (*FakeVaultPolicyBindings) Update

func (c *FakeVaultPolicyBindings) Update(ctx context.Context, vaultPolicyBinding *v1alpha1.VaultPolicyBinding, opts v1.UpdateOptions) (result *v1alpha1.VaultPolicyBinding, err error)

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

func (*FakeVaultPolicyBindings) UpdateStatus

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

func (*FakeVaultPolicyBindings) Watch

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

Jump to

Keyboard shortcuts

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