fake

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MIT 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 FakeClusterPolicyReports

type FakeClusterPolicyReports struct {
	Fake *FakeWgpolicyk8sV1alpha2
}

FakeClusterPolicyReports implements ClusterPolicyReportInterface

func (*FakeClusterPolicyReports) Create

func (c *FakeClusterPolicyReports) Create(ctx context.Context, clusterPolicyReport *v1alpha2.ClusterPolicyReport, opts v1.CreateOptions) (result *v1alpha2.ClusterPolicyReport, err error)

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

func (*FakeClusterPolicyReports) Delete

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

func (*FakeClusterPolicyReports) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterPolicyReports) Get

func (c *FakeClusterPolicyReports) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.ClusterPolicyReport, err error)

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

func (*FakeClusterPolicyReports) List

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

func (*FakeClusterPolicyReports) Patch

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

Patch applies the patch and returns the patched clusterPolicyReport.

func (*FakeClusterPolicyReports) Update

func (c *FakeClusterPolicyReports) Update(ctx context.Context, clusterPolicyReport *v1alpha2.ClusterPolicyReport, opts v1.UpdateOptions) (result *v1alpha2.ClusterPolicyReport, err error)

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

func (*FakeClusterPolicyReports) Watch

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

type FakePolicyReports

type FakePolicyReports struct {
	Fake *FakeWgpolicyk8sV1alpha2
	// contains filtered or unexported fields
}

FakePolicyReports implements PolicyReportInterface

func (*FakePolicyReports) Create

func (c *FakePolicyReports) Create(ctx context.Context, policyReport *v1alpha2.PolicyReport, opts v1.CreateOptions) (result *v1alpha2.PolicyReport, err error)

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

func (*FakePolicyReports) Delete

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

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

func (*FakePolicyReports) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePolicyReports) Get

func (c *FakePolicyReports) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.PolicyReport, err error)

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

func (*FakePolicyReports) List

func (c *FakePolicyReports) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.PolicyReportList, err error)

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

func (*FakePolicyReports) Patch

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

Patch applies the patch and returns the patched policyReport.

func (*FakePolicyReports) Update

func (c *FakePolicyReports) Update(ctx context.Context, policyReport *v1alpha2.PolicyReport, opts v1.UpdateOptions) (result *v1alpha2.PolicyReport, err error)

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

func (*FakePolicyReports) Watch

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

type FakeWgpolicyk8sV1alpha2

type FakeWgpolicyk8sV1alpha2 struct {
	*testing.Fake
}

func (*FakeWgpolicyk8sV1alpha2) ClusterPolicyReports

func (*FakeWgpolicyk8sV1alpha2) PolicyReports

func (c *FakeWgpolicyk8sV1alpha2) PolicyReports(namespace string) v1alpha2.PolicyReportInterface

func (*FakeWgpolicyk8sV1alpha2) RESTClient

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

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

Jump to

Keyboard shortcuts

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