fake

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: Apache-2.0 Imports: 12 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 FakePodSecurityPolicyReviews

type FakePodSecurityPolicyReviews struct {
	Fake *FakeSecurityV1
	// contains filtered or unexported fields
}

FakePodSecurityPolicyReviews implements PodSecurityPolicyReviewInterface

func (*FakePodSecurityPolicyReviews) Create

func (c *FakePodSecurityPolicyReviews) Create(ctx context.Context, podSecurityPolicyReview *v1.PodSecurityPolicyReview, opts metav1.CreateOptions) (result *v1.PodSecurityPolicyReview, err error)

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

type FakePodSecurityPolicySelfSubjectReviews

type FakePodSecurityPolicySelfSubjectReviews struct {
	Fake *FakeSecurityV1
	// contains filtered or unexported fields
}

FakePodSecurityPolicySelfSubjectReviews implements PodSecurityPolicySelfSubjectReviewInterface

func (*FakePodSecurityPolicySelfSubjectReviews) Create

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

type FakePodSecurityPolicySubjectReviews

type FakePodSecurityPolicySubjectReviews struct {
	Fake *FakeSecurityV1
	// contains filtered or unexported fields
}

FakePodSecurityPolicySubjectReviews implements PodSecurityPolicySubjectReviewInterface

func (*FakePodSecurityPolicySubjectReviews) Create

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

type FakeRangeAllocations

type FakeRangeAllocations struct {
	Fake *FakeSecurityV1
}

FakeRangeAllocations implements RangeAllocationInterface

func (*FakeRangeAllocations) Apply added in v0.29.0

Apply takes the given apply declarative configuration, applies it and returns the applied rangeAllocation.

func (*FakeRangeAllocations) Create

func (c *FakeRangeAllocations) Create(ctx context.Context, rangeAllocation *v1.RangeAllocation, opts metav1.CreateOptions) (result *v1.RangeAllocation, err error)

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

func (*FakeRangeAllocations) Delete

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

func (*FakeRangeAllocations) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRangeAllocations) Get

func (c *FakeRangeAllocations) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.RangeAllocation, err error)

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

func (*FakeRangeAllocations) List

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

func (*FakeRangeAllocations) Patch

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

Patch applies the patch and returns the patched rangeAllocation.

func (*FakeRangeAllocations) Update

func (c *FakeRangeAllocations) Update(ctx context.Context, rangeAllocation *v1.RangeAllocation, opts metav1.UpdateOptions) (result *v1.RangeAllocation, err error)

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

func (*FakeRangeAllocations) Watch

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

type FakeSecurityContextConstraints

type FakeSecurityContextConstraints struct {
	Fake *FakeSecurityV1
}

FakeSecurityContextConstraints implements SecurityContextConstraintsInterface

func (*FakeSecurityContextConstraints) Apply added in v0.29.0

Apply takes the given apply declarative configuration, applies it and returns the applied securityContextConstraints.

func (*FakeSecurityContextConstraints) Create

func (c *FakeSecurityContextConstraints) Create(ctx context.Context, securityContextConstraints *v1.SecurityContextConstraints, opts metav1.CreateOptions) (result *v1.SecurityContextConstraints, err error)

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

func (*FakeSecurityContextConstraints) Delete

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

func (*FakeSecurityContextConstraints) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSecurityContextConstraints) Get

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

func (*FakeSecurityContextConstraints) List

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

func (*FakeSecurityContextConstraints) Patch

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

Patch applies the patch and returns the patched securityContextConstraints.

func (*FakeSecurityContextConstraints) Update

func (c *FakeSecurityContextConstraints) Update(ctx context.Context, securityContextConstraints *v1.SecurityContextConstraints, opts metav1.UpdateOptions) (result *v1.SecurityContextConstraints, err error)

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

func (*FakeSecurityContextConstraints) Watch

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

type FakeSecurityV1

type FakeSecurityV1 struct {
	*testing.Fake
}

func (*FakeSecurityV1) PodSecurityPolicyReviews

func (c *FakeSecurityV1) PodSecurityPolicyReviews(namespace string) v1.PodSecurityPolicyReviewInterface

func (*FakeSecurityV1) PodSecurityPolicySelfSubjectReviews

func (c *FakeSecurityV1) PodSecurityPolicySelfSubjectReviews(namespace string) v1.PodSecurityPolicySelfSubjectReviewInterface

func (*FakeSecurityV1) PodSecurityPolicySubjectReviews

func (c *FakeSecurityV1) PodSecurityPolicySubjectReviews(namespace string) v1.PodSecurityPolicySubjectReviewInterface

func (*FakeSecurityV1) RESTClient

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

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

func (*FakeSecurityV1) RangeAllocations

func (c *FakeSecurityV1) RangeAllocations() v1.RangeAllocationInterface

func (*FakeSecurityV1) SecurityContextConstraints

func (c *FakeSecurityV1) SecurityContextConstraints() v1.SecurityContextConstraintsInterface

Jump to

Keyboard shortcuts

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