fake

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 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 FakeCertificateRequests

type FakeCertificateRequests struct {
	Fake *FakeCertmanagerV1
	// contains filtered or unexported fields
}

FakeCertificateRequests implements CertificateRequestInterface

func (*FakeCertificateRequests) Create

func (c *FakeCertificateRequests) Create(ctx context.Context, certificateRequest *v1.CertificateRequest, opts metav1.CreateOptions) (result *v1.CertificateRequest, err error)

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

func (*FakeCertificateRequests) Delete

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

func (*FakeCertificateRequests) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCertificateRequests) Get

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

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

func (*FakeCertificateRequests) List

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

func (*FakeCertificateRequests) Patch

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

Patch applies the patch and returns the patched certificateRequest.

func (*FakeCertificateRequests) Update

func (c *FakeCertificateRequests) Update(ctx context.Context, certificateRequest *v1.CertificateRequest, opts metav1.UpdateOptions) (result *v1.CertificateRequest, err error)

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

func (*FakeCertificateRequests) UpdateStatus

func (c *FakeCertificateRequests) UpdateStatus(ctx context.Context, certificateRequest *v1.CertificateRequest, opts metav1.UpdateOptions) (*v1.CertificateRequest, error)

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

func (*FakeCertificateRequests) Watch

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

type FakeCertificates

type FakeCertificates struct {
	Fake *FakeCertmanagerV1
	// contains filtered or unexported fields
}

FakeCertificates implements CertificateInterface

func (*FakeCertificates) Create

func (c *FakeCertificates) Create(ctx context.Context, certificate *v1.Certificate, opts metav1.CreateOptions) (result *v1.Certificate, err error)

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

func (*FakeCertificates) Delete

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

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

func (*FakeCertificates) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCertificates) Get

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

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

func (*FakeCertificates) List

func (c *FakeCertificates) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CertificateList, err error)

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

func (*FakeCertificates) Patch

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

Patch applies the patch and returns the patched certificate.

func (*FakeCertificates) Update

func (c *FakeCertificates) Update(ctx context.Context, certificate *v1.Certificate, opts metav1.UpdateOptions) (result *v1.Certificate, err error)

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

func (*FakeCertificates) UpdateStatus

func (c *FakeCertificates) UpdateStatus(ctx context.Context, certificate *v1.Certificate, opts metav1.UpdateOptions) (*v1.Certificate, error)

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

func (*FakeCertificates) Watch

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

type FakeCertmanagerV1

type FakeCertmanagerV1 struct {
	*testing.Fake
}

func (*FakeCertmanagerV1) CertificateRequests

func (c *FakeCertmanagerV1) CertificateRequests(namespace string) v1.CertificateRequestInterface

func (*FakeCertmanagerV1) Certificates

func (c *FakeCertmanagerV1) Certificates(namespace string) v1.CertificateInterface

func (*FakeCertmanagerV1) ClusterIssuers

func (c *FakeCertmanagerV1) ClusterIssuers() v1.ClusterIssuerInterface

func (*FakeCertmanagerV1) Issuers

func (c *FakeCertmanagerV1) Issuers(namespace string) v1.IssuerInterface

func (*FakeCertmanagerV1) RESTClient

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

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

type FakeClusterIssuers

type FakeClusterIssuers struct {
	Fake *FakeCertmanagerV1
}

FakeClusterIssuers implements ClusterIssuerInterface

func (*FakeClusterIssuers) Create

func (c *FakeClusterIssuers) Create(ctx context.Context, clusterIssuer *v1.ClusterIssuer, opts metav1.CreateOptions) (result *v1.ClusterIssuer, err error)

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

func (*FakeClusterIssuers) Delete

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

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

func (*FakeClusterIssuers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterIssuers) Get

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

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

func (*FakeClusterIssuers) List

func (c *FakeClusterIssuers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterIssuerList, err error)

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

func (*FakeClusterIssuers) Patch

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

Patch applies the patch and returns the patched clusterIssuer.

func (*FakeClusterIssuers) Update

func (c *FakeClusterIssuers) Update(ctx context.Context, clusterIssuer *v1.ClusterIssuer, opts metav1.UpdateOptions) (result *v1.ClusterIssuer, err error)

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

func (*FakeClusterIssuers) UpdateStatus

func (c *FakeClusterIssuers) UpdateStatus(ctx context.Context, clusterIssuer *v1.ClusterIssuer, opts metav1.UpdateOptions) (*v1.ClusterIssuer, error)

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

func (*FakeClusterIssuers) Watch

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

type FakeIssuers

type FakeIssuers struct {
	Fake *FakeCertmanagerV1
	// contains filtered or unexported fields
}

FakeIssuers implements IssuerInterface

func (*FakeIssuers) Create

func (c *FakeIssuers) Create(ctx context.Context, issuer *v1.Issuer, opts metav1.CreateOptions) (result *v1.Issuer, err error)

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

func (*FakeIssuers) Delete

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

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

func (*FakeIssuers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeIssuers) Get

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

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

func (*FakeIssuers) List

func (c *FakeIssuers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.IssuerList, err error)

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

func (*FakeIssuers) Patch

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

Patch applies the patch and returns the patched issuer.

func (*FakeIssuers) Update

func (c *FakeIssuers) Update(ctx context.Context, issuer *v1.Issuer, opts metav1.UpdateOptions) (result *v1.Issuer, err error)

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

func (*FakeIssuers) UpdateStatus

func (c *FakeIssuers) UpdateStatus(ctx context.Context, issuer *v1.Issuer, opts metav1.UpdateOptions) (*v1.Issuer, error)

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

func (*FakeIssuers) Watch

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

Jump to

Keyboard shortcuts

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