fake

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 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 FakeCertV1alpha1

type FakeCertV1alpha1 struct {
	*testing.Fake
}

func (*FakeCertV1alpha1) CertificateRevocations added in v0.12.0

func (c *FakeCertV1alpha1) CertificateRevocations(namespace string) v1alpha1.CertificateRevocationInterface

func (*FakeCertV1alpha1) Certificates

func (c *FakeCertV1alpha1) Certificates(namespace string) v1alpha1.CertificateInterface

func (*FakeCertV1alpha1) Issuers

func (c *FakeCertV1alpha1) Issuers(namespace string) v1alpha1.IssuerInterface

func (*FakeCertV1alpha1) RESTClient

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

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

type FakeCertificateRevocations added in v0.12.0

type FakeCertificateRevocations struct {
	Fake *FakeCertV1alpha1
	// contains filtered or unexported fields
}

FakeCertificateRevocations implements CertificateRevocationInterface

func (*FakeCertificateRevocations) Create added in v0.12.0

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

func (*FakeCertificateRevocations) Delete added in v0.12.0

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

func (*FakeCertificateRevocations) DeleteCollection added in v0.12.0

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

DeleteCollection deletes a collection of objects.

func (*FakeCertificateRevocations) Get added in v0.12.0

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

func (*FakeCertificateRevocations) List added in v0.12.0

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

func (*FakeCertificateRevocations) Patch added in v0.12.0

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

Patch applies the patch and returns the patched certificateRevocation.

func (*FakeCertificateRevocations) Update added in v0.12.0

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

func (*FakeCertificateRevocations) UpdateStatus added in v0.12.0

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

func (*FakeCertificateRevocations) Watch added in v0.12.0

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

type FakeCertificates

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

FakeCertificates implements CertificateInterface

func (*FakeCertificates) Create

func (c *FakeCertificates) Create(ctx context.Context, certificate *v1alpha1.Certificate, opts v1.CreateOptions) (result *v1alpha1.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 v1.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 v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeCertificates) Get

func (c *FakeCertificates) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.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 v1.ListOptions) (result *v1alpha1.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 v1.PatchOptions, subresources ...string) (result *v1alpha1.Certificate, err error)

Patch applies the patch and returns the patched certificate.

func (*FakeCertificates) Update

func (c *FakeCertificates) Update(ctx context.Context, certificate *v1alpha1.Certificate, opts v1.UpdateOptions) (result *v1alpha1.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 *v1alpha1.Certificate, opts v1.UpdateOptions) (*v1alpha1.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 FakeIssuers

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

FakeIssuers implements IssuerInterface

func (*FakeIssuers) Create

func (c *FakeIssuers) Create(ctx context.Context, issuer *v1alpha1.Issuer, opts v1.CreateOptions) (result *v1alpha1.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 v1.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 v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeIssuers) Get

func (c *FakeIssuers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.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 v1.ListOptions) (result *v1alpha1.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 v1.PatchOptions, subresources ...string) (result *v1alpha1.Issuer, err error)

Patch applies the patch and returns the patched issuer.

func (*FakeIssuers) Update

func (c *FakeIssuers) Update(ctx context.Context, issuer *v1alpha1.Issuer, opts v1.UpdateOptions) (result *v1alpha1.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 *v1alpha1.Issuer, opts v1.UpdateOptions) (*v1alpha1.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

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

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