fake

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: Apache-2.0 Imports: 9 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 FakeClusterPolicies

type FakeClusterPolicies struct {
	Fake *FakeKyvernoV1
}

FakeClusterPolicies implements ClusterPolicyInterface

func (*FakeClusterPolicies) Create

func (c *FakeClusterPolicies) Create(clusterPolicy *kyvernov1.ClusterPolicy) (result *kyvernov1.ClusterPolicy, err error)

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

func (*FakeClusterPolicies) Delete

func (c *FakeClusterPolicies) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeClusterPolicies) DeleteCollection

func (c *FakeClusterPolicies) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeClusterPolicies) Get

func (c *FakeClusterPolicies) Get(name string, options v1.GetOptions) (result *kyvernov1.ClusterPolicy, err error)

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

func (*FakeClusterPolicies) List

func (c *FakeClusterPolicies) List(opts v1.ListOptions) (result *kyvernov1.ClusterPolicyList, err error)

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

func (*FakeClusterPolicies) Patch

func (c *FakeClusterPolicies) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *kyvernov1.ClusterPolicy, err error)

Patch applies the patch and returns the patched clusterPolicy.

func (*FakeClusterPolicies) Update

func (c *FakeClusterPolicies) Update(clusterPolicy *kyvernov1.ClusterPolicy) (result *kyvernov1.ClusterPolicy, err error)

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

func (*FakeClusterPolicies) UpdateStatus

func (c *FakeClusterPolicies) UpdateStatus(clusterPolicy *kyvernov1.ClusterPolicy) (*kyvernov1.ClusterPolicy, error)

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

func (*FakeClusterPolicies) Watch

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

type FakeClusterPolicyViolations

type FakeClusterPolicyViolations struct {
	Fake *FakeKyvernoV1
}

FakeClusterPolicyViolations implements ClusterPolicyViolationInterface

func (*FakeClusterPolicyViolations) Create

func (c *FakeClusterPolicyViolations) Create(clusterPolicyViolation *kyvernov1.ClusterPolicyViolation) (result *kyvernov1.ClusterPolicyViolation, err error)

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

func (*FakeClusterPolicyViolations) Delete

func (c *FakeClusterPolicyViolations) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeClusterPolicyViolations) DeleteCollection

func (c *FakeClusterPolicyViolations) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeClusterPolicyViolations) Get

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

func (*FakeClusterPolicyViolations) List

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

func (*FakeClusterPolicyViolations) Patch

func (c *FakeClusterPolicyViolations) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *kyvernov1.ClusterPolicyViolation, err error)

Patch applies the patch and returns the patched clusterPolicyViolation.

func (*FakeClusterPolicyViolations) Update

func (c *FakeClusterPolicyViolations) Update(clusterPolicyViolation *kyvernov1.ClusterPolicyViolation) (result *kyvernov1.ClusterPolicyViolation, err error)

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

func (*FakeClusterPolicyViolations) UpdateStatus

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

func (*FakeClusterPolicyViolations) Watch

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

type FakeGenerateRequests added in v1.1.0

type FakeGenerateRequests struct {
	Fake *FakeKyvernoV1
	// contains filtered or unexported fields
}

FakeGenerateRequests implements GenerateRequestInterface

func (*FakeGenerateRequests) Create added in v1.1.0

func (c *FakeGenerateRequests) Create(generateRequest *kyvernov1.GenerateRequest) (result *kyvernov1.GenerateRequest, err error)

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

func (*FakeGenerateRequests) Delete added in v1.1.0

func (c *FakeGenerateRequests) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeGenerateRequests) DeleteCollection added in v1.1.0

func (c *FakeGenerateRequests) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeGenerateRequests) Get added in v1.1.0

func (c *FakeGenerateRequests) Get(name string, options v1.GetOptions) (result *kyvernov1.GenerateRequest, err error)

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

func (*FakeGenerateRequests) List added in v1.1.0

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

func (*FakeGenerateRequests) Patch added in v1.1.0

func (c *FakeGenerateRequests) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *kyvernov1.GenerateRequest, err error)

Patch applies the patch and returns the patched generateRequest.

func (*FakeGenerateRequests) Update added in v1.1.0

func (c *FakeGenerateRequests) Update(generateRequest *kyvernov1.GenerateRequest) (result *kyvernov1.GenerateRequest, err error)

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

func (*FakeGenerateRequests) UpdateStatus added in v1.1.0

func (c *FakeGenerateRequests) UpdateStatus(generateRequest *kyvernov1.GenerateRequest) (*kyvernov1.GenerateRequest, error)

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

func (*FakeGenerateRequests) Watch added in v1.1.0

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

type FakeKyvernoV1

type FakeKyvernoV1 struct {
	*testing.Fake
}

func (*FakeKyvernoV1) ClusterPolicies

func (c *FakeKyvernoV1) ClusterPolicies() v1.ClusterPolicyInterface

func (*FakeKyvernoV1) ClusterPolicyViolations

func (c *FakeKyvernoV1) ClusterPolicyViolations() v1.ClusterPolicyViolationInterface

func (*FakeKyvernoV1) GenerateRequests added in v1.1.0

func (c *FakeKyvernoV1) GenerateRequests(namespace string) v1.GenerateRequestInterface

func (*FakeKyvernoV1) PolicyViolations added in v1.1.0

func (c *FakeKyvernoV1) PolicyViolations(namespace string) v1.PolicyViolationInterface

func (*FakeKyvernoV1) RESTClient

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

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

type FakePolicyViolations added in v1.1.0

type FakePolicyViolations struct {
	Fake *FakeKyvernoV1
	// contains filtered or unexported fields
}

FakePolicyViolations implements PolicyViolationInterface

func (*FakePolicyViolations) Create added in v1.1.0

func (c *FakePolicyViolations) Create(policyViolation *kyvernov1.PolicyViolation) (result *kyvernov1.PolicyViolation, err error)

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

func (*FakePolicyViolations) Delete added in v1.1.0

func (c *FakePolicyViolations) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakePolicyViolations) DeleteCollection added in v1.1.0

func (c *FakePolicyViolations) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakePolicyViolations) Get added in v1.1.0

func (c *FakePolicyViolations) Get(name string, options v1.GetOptions) (result *kyvernov1.PolicyViolation, err error)

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

func (*FakePolicyViolations) List added in v1.1.0

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

func (*FakePolicyViolations) Patch added in v1.1.0

func (c *FakePolicyViolations) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *kyvernov1.PolicyViolation, err error)

Patch applies the patch and returns the patched policyViolation.

func (*FakePolicyViolations) Update added in v1.1.0

func (c *FakePolicyViolations) Update(policyViolation *kyvernov1.PolicyViolation) (result *kyvernov1.PolicyViolation, err error)

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

func (*FakePolicyViolations) UpdateStatus added in v1.1.0

func (c *FakePolicyViolations) UpdateStatus(policyViolation *kyvernov1.PolicyViolation) (*kyvernov1.PolicyViolation, error)

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

func (*FakePolicyViolations) Watch added in v1.1.0

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

Jump to

Keyboard shortcuts

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