fake

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 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 added in v0.9.0

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

FakeCertificateRequests implements CertificateRequestInterface

func (*FakeCertificateRequests) Create added in v0.9.0

func (c *FakeCertificateRequests) Create(certificateRequest *v1alpha1.CertificateRequest) (result *v1alpha1.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 added in v0.9.0

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

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

func (*FakeCertificateRequests) DeleteCollection added in v0.9.0

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

DeleteCollection deletes a collection of objects.

func (*FakeCertificateRequests) Get added in v0.9.0

func (c *FakeCertificateRequests) Get(name string, options v1.GetOptions) (result *v1alpha1.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 added in v0.9.0

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

func (*FakeCertificateRequests) Patch added in v0.9.0

func (c *FakeCertificateRequests) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.CertificateRequest, err error)

Patch applies the patch and returns the patched certificateRequest.

func (*FakeCertificateRequests) Update added in v0.9.0

func (c *FakeCertificateRequests) Update(certificateRequest *v1alpha1.CertificateRequest) (result *v1alpha1.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 added in v0.9.0

func (c *FakeCertificateRequests) UpdateStatus(certificateRequest *v1alpha1.CertificateRequest) (*v1alpha1.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 added in v0.9.0

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

type FakeCertificates

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

FakeCertificates implements CertificateInterface

func (*FakeCertificates) Create

func (c *FakeCertificates) Create(certificate *v1alpha1.Certificate) (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(name string, options *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(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeCertificates) Get

func (c *FakeCertificates) Get(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(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(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Certificate, err error)

Patch applies the patch and returns the patched certificate.

func (*FakeCertificates) Update

func (c *FakeCertificates) Update(certificate *v1alpha1.Certificate) (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(certificate *v1alpha1.Certificate) (*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

func (c *FakeCertificates) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeCertmanagerV1alpha1

type FakeCertmanagerV1alpha1 struct {
	*testing.Fake
}

func (*FakeCertmanagerV1alpha1) CertificateRequests added in v0.9.0

func (c *FakeCertmanagerV1alpha1) CertificateRequests(namespace string) v1alpha1.CertificateRequestInterface

func (*FakeCertmanagerV1alpha1) Certificates

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

func (*FakeCertmanagerV1alpha1) Challenges

func (c *FakeCertmanagerV1alpha1) Challenges(namespace string) v1alpha1.ChallengeInterface

func (*FakeCertmanagerV1alpha1) ClusterIssuers

func (*FakeCertmanagerV1alpha1) Issuers

func (*FakeCertmanagerV1alpha1) Orders

func (*FakeCertmanagerV1alpha1) RESTClient

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

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

type FakeChallenges

type FakeChallenges struct {
	Fake *FakeCertmanagerV1alpha1
	// contains filtered or unexported fields
}

FakeChallenges implements ChallengeInterface

func (*FakeChallenges) Create

func (c *FakeChallenges) Create(challenge *v1alpha1.Challenge) (result *v1alpha1.Challenge, err error)

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

func (*FakeChallenges) Delete

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

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

func (*FakeChallenges) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeChallenges) Get

func (c *FakeChallenges) Get(name string, options v1.GetOptions) (result *v1alpha1.Challenge, err error)

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

func (*FakeChallenges) List

func (c *FakeChallenges) List(opts v1.ListOptions) (result *v1alpha1.ChallengeList, err error)

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

func (*FakeChallenges) Patch

func (c *FakeChallenges) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Challenge, err error)

Patch applies the patch and returns the patched challenge.

func (*FakeChallenges) Update

func (c *FakeChallenges) Update(challenge *v1alpha1.Challenge) (result *v1alpha1.Challenge, err error)

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

func (*FakeChallenges) UpdateStatus

func (c *FakeChallenges) UpdateStatus(challenge *v1alpha1.Challenge) (*v1alpha1.Challenge, error)

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

func (*FakeChallenges) Watch

func (c *FakeChallenges) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeClusterIssuers

type FakeClusterIssuers struct {
	Fake *FakeCertmanagerV1alpha1
}

FakeClusterIssuers implements ClusterIssuerInterface

func (*FakeClusterIssuers) Create

func (c *FakeClusterIssuers) Create(clusterIssuer *v1alpha1.ClusterIssuer) (result *v1alpha1.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(name string, options *v1.DeleteOptions) error

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

func (*FakeClusterIssuers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterIssuers) Get

func (c *FakeClusterIssuers) Get(name string, options v1.GetOptions) (result *v1alpha1.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(opts v1.ListOptions) (result *v1alpha1.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(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.ClusterIssuer, err error)

Patch applies the patch and returns the patched clusterIssuer.

func (*FakeClusterIssuers) Update

func (c *FakeClusterIssuers) Update(clusterIssuer *v1alpha1.ClusterIssuer) (result *v1alpha1.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(clusterIssuer *v1alpha1.ClusterIssuer) (*v1alpha1.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 *FakeCertmanagerV1alpha1
	// contains filtered or unexported fields
}

FakeIssuers implements IssuerInterface

func (*FakeIssuers) Create

func (c *FakeIssuers) Create(issuer *v1alpha1.Issuer) (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(name string, options *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(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeIssuers) Get

func (c *FakeIssuers) Get(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(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(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Issuer, err error)

Patch applies the patch and returns the patched issuer.

func (*FakeIssuers) Update

func (c *FakeIssuers) Update(issuer *v1alpha1.Issuer) (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(issuer *v1alpha1.Issuer) (*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(opts v1.ListOptions) (watch.Interface, error)

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

type FakeOrders

type FakeOrders struct {
	Fake *FakeCertmanagerV1alpha1
	// contains filtered or unexported fields
}

FakeOrders implements OrderInterface

func (*FakeOrders) Create

func (c *FakeOrders) Create(order *v1alpha1.Order) (result *v1alpha1.Order, err error)

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

func (*FakeOrders) Delete

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

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

func (*FakeOrders) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeOrders) Get

func (c *FakeOrders) Get(name string, options v1.GetOptions) (result *v1alpha1.Order, err error)

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

func (*FakeOrders) List

func (c *FakeOrders) List(opts v1.ListOptions) (result *v1alpha1.OrderList, err error)

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

func (*FakeOrders) Patch

func (c *FakeOrders) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Order, err error)

Patch applies the patch and returns the patched order.

func (*FakeOrders) Update

func (c *FakeOrders) Update(order *v1alpha1.Order) (result *v1alpha1.Order, err error)

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

func (*FakeOrders) UpdateStatus

func (c *FakeOrders) UpdateStatus(order *v1alpha1.Order) (*v1alpha1.Order, error)

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

func (*FakeOrders) Watch

func (c *FakeOrders) Watch(opts v1.ListOptions) (watch.Interface, error)

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

Jump to

Keyboard shortcuts

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