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 FakeAttestorIamBindings

type FakeAttestorIamBindings struct {
	Fake *FakeBinaryauthorizationV1alpha1
	// contains filtered or unexported fields
}

FakeAttestorIamBindings implements AttestorIamBindingInterface

func (*FakeAttestorIamBindings) Create

func (c *FakeAttestorIamBindings) Create(ctx context.Context, attestorIamBinding *v1alpha1.AttestorIamBinding, opts v1.CreateOptions) (result *v1alpha1.AttestorIamBinding, err error)

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

func (*FakeAttestorIamBindings) Delete

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

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

func (*FakeAttestorIamBindings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAttestorIamBindings) Get

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

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

func (*FakeAttestorIamBindings) List

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

func (*FakeAttestorIamBindings) Patch

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

Patch applies the patch and returns the patched attestorIamBinding.

func (*FakeAttestorIamBindings) Update

func (c *FakeAttestorIamBindings) Update(ctx context.Context, attestorIamBinding *v1alpha1.AttestorIamBinding, opts v1.UpdateOptions) (result *v1alpha1.AttestorIamBinding, err error)

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

func (*FakeAttestorIamBindings) UpdateStatus

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

func (*FakeAttestorIamBindings) Watch

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

type FakeAttestorIamMembers

type FakeAttestorIamMembers struct {
	Fake *FakeBinaryauthorizationV1alpha1
	// contains filtered or unexported fields
}

FakeAttestorIamMembers implements AttestorIamMemberInterface

func (*FakeAttestorIamMembers) Create

func (c *FakeAttestorIamMembers) Create(ctx context.Context, attestorIamMember *v1alpha1.AttestorIamMember, opts v1.CreateOptions) (result *v1alpha1.AttestorIamMember, err error)

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

func (*FakeAttestorIamMembers) Delete

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

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

func (*FakeAttestorIamMembers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAttestorIamMembers) Get

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

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

func (*FakeAttestorIamMembers) List

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

func (*FakeAttestorIamMembers) Patch

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

Patch applies the patch and returns the patched attestorIamMember.

func (*FakeAttestorIamMembers) Update

func (c *FakeAttestorIamMembers) Update(ctx context.Context, attestorIamMember *v1alpha1.AttestorIamMember, opts v1.UpdateOptions) (result *v1alpha1.AttestorIamMember, err error)

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

func (*FakeAttestorIamMembers) UpdateStatus

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

func (*FakeAttestorIamMembers) Watch

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

type FakeAttestorIamPolicies

type FakeAttestorIamPolicies struct {
	Fake *FakeBinaryauthorizationV1alpha1
	// contains filtered or unexported fields
}

FakeAttestorIamPolicies implements AttestorIamPolicyInterface

func (*FakeAttestorIamPolicies) Create

func (c *FakeAttestorIamPolicies) Create(ctx context.Context, attestorIamPolicy *v1alpha1.AttestorIamPolicy, opts v1.CreateOptions) (result *v1alpha1.AttestorIamPolicy, err error)

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

func (*FakeAttestorIamPolicies) Delete

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

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

func (*FakeAttestorIamPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAttestorIamPolicies) Get

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

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

func (*FakeAttestorIamPolicies) List

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

func (*FakeAttestorIamPolicies) Patch

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

Patch applies the patch and returns the patched attestorIamPolicy.

func (*FakeAttestorIamPolicies) Update

func (c *FakeAttestorIamPolicies) Update(ctx context.Context, attestorIamPolicy *v1alpha1.AttestorIamPolicy, opts v1.UpdateOptions) (result *v1alpha1.AttestorIamPolicy, err error)

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

func (*FakeAttestorIamPolicies) UpdateStatus

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

func (*FakeAttestorIamPolicies) Watch

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

type FakeAttestors

type FakeAttestors struct {
	Fake *FakeBinaryauthorizationV1alpha1
	// contains filtered or unexported fields
}

FakeAttestors implements AttestorInterface

func (*FakeAttestors) Create

func (c *FakeAttestors) Create(ctx context.Context, attestor *v1alpha1.Attestor, opts v1.CreateOptions) (result *v1alpha1.Attestor, err error)

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

func (*FakeAttestors) Delete

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

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

func (*FakeAttestors) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAttestors) Get

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

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

func (*FakeAttestors) List

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

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

func (*FakeAttestors) Patch

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

Patch applies the patch and returns the patched attestor.

func (*FakeAttestors) Update

func (c *FakeAttestors) Update(ctx context.Context, attestor *v1alpha1.Attestor, opts v1.UpdateOptions) (result *v1alpha1.Attestor, err error)

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

func (*FakeAttestors) UpdateStatus

func (c *FakeAttestors) UpdateStatus(ctx context.Context, attestor *v1alpha1.Attestor, opts v1.UpdateOptions) (*v1alpha1.Attestor, error)

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

func (*FakeAttestors) Watch

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

type FakeBinaryauthorizationV1alpha1

type FakeBinaryauthorizationV1alpha1 struct {
	*testing.Fake
}

func (*FakeBinaryauthorizationV1alpha1) AttestorIamBindings

func (*FakeBinaryauthorizationV1alpha1) AttestorIamMembers

func (*FakeBinaryauthorizationV1alpha1) AttestorIamPolicies

func (*FakeBinaryauthorizationV1alpha1) Attestors

func (*FakeBinaryauthorizationV1alpha1) Policies

func (*FakeBinaryauthorizationV1alpha1) RESTClient

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

type FakePolicies

type FakePolicies struct {
	Fake *FakeBinaryauthorizationV1alpha1
	// contains filtered or unexported fields
}

FakePolicies implements PolicyInterface

func (*FakePolicies) Create

func (c *FakePolicies) Create(ctx context.Context, policy *v1alpha1.Policy, opts v1.CreateOptions) (result *v1alpha1.Policy, err error)

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

func (*FakePolicies) Delete

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

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

func (*FakePolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePolicies) Get

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

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

func (*FakePolicies) List

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

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

func (*FakePolicies) Patch

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

Patch applies the patch and returns the patched policy.

func (*FakePolicies) Update

func (c *FakePolicies) Update(ctx context.Context, policy *v1alpha1.Policy, opts v1.UpdateOptions) (result *v1alpha1.Policy, err error)

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

func (*FakePolicies) UpdateStatus

func (c *FakePolicies) UpdateStatus(ctx context.Context, policy *v1alpha1.Policy, opts v1.UpdateOptions) (*v1alpha1.Policy, error)

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

func (*FakePolicies) Watch

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

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

Jump to

Keyboard shortcuts

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