fake

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 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 FakeCaPoolIamBindings

type FakeCaPoolIamBindings struct {
	Fake *FakePrivatecaV1alpha1
	// contains filtered or unexported fields
}

FakeCaPoolIamBindings implements CaPoolIamBindingInterface

func (*FakeCaPoolIamBindings) Create

func (c *FakeCaPoolIamBindings) Create(ctx context.Context, caPoolIamBinding *v1alpha1.CaPoolIamBinding, opts v1.CreateOptions) (result *v1alpha1.CaPoolIamBinding, err error)

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

func (*FakeCaPoolIamBindings) Delete

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

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

func (*FakeCaPoolIamBindings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCaPoolIamBindings) Get

func (c *FakeCaPoolIamBindings) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.CaPoolIamBinding, err error)

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

func (*FakeCaPoolIamBindings) List

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

func (*FakeCaPoolIamBindings) Patch

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

Patch applies the patch and returns the patched caPoolIamBinding.

func (*FakeCaPoolIamBindings) Update

func (c *FakeCaPoolIamBindings) Update(ctx context.Context, caPoolIamBinding *v1alpha1.CaPoolIamBinding, opts v1.UpdateOptions) (result *v1alpha1.CaPoolIamBinding, err error)

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

func (*FakeCaPoolIamBindings) UpdateStatus

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

func (*FakeCaPoolIamBindings) Watch

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

type FakeCaPoolIamMembers

type FakeCaPoolIamMembers struct {
	Fake *FakePrivatecaV1alpha1
	// contains filtered or unexported fields
}

FakeCaPoolIamMembers implements CaPoolIamMemberInterface

func (*FakeCaPoolIamMembers) Create

func (c *FakeCaPoolIamMembers) Create(ctx context.Context, caPoolIamMember *v1alpha1.CaPoolIamMember, opts v1.CreateOptions) (result *v1alpha1.CaPoolIamMember, err error)

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

func (*FakeCaPoolIamMembers) Delete

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

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

func (*FakeCaPoolIamMembers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCaPoolIamMembers) Get

func (c *FakeCaPoolIamMembers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.CaPoolIamMember, err error)

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

func (*FakeCaPoolIamMembers) List

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

func (*FakeCaPoolIamMembers) Patch

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

Patch applies the patch and returns the patched caPoolIamMember.

func (*FakeCaPoolIamMembers) Update

func (c *FakeCaPoolIamMembers) Update(ctx context.Context, caPoolIamMember *v1alpha1.CaPoolIamMember, opts v1.UpdateOptions) (result *v1alpha1.CaPoolIamMember, err error)

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

func (*FakeCaPoolIamMembers) UpdateStatus

func (c *FakeCaPoolIamMembers) UpdateStatus(ctx context.Context, caPoolIamMember *v1alpha1.CaPoolIamMember, opts v1.UpdateOptions) (*v1alpha1.CaPoolIamMember, error)

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

func (*FakeCaPoolIamMembers) Watch

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

type FakeCaPoolIamPolicies

type FakeCaPoolIamPolicies struct {
	Fake *FakePrivatecaV1alpha1
	// contains filtered or unexported fields
}

FakeCaPoolIamPolicies implements CaPoolIamPolicyInterface

func (*FakeCaPoolIamPolicies) Create

func (c *FakeCaPoolIamPolicies) Create(ctx context.Context, caPoolIamPolicy *v1alpha1.CaPoolIamPolicy, opts v1.CreateOptions) (result *v1alpha1.CaPoolIamPolicy, err error)

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

func (*FakeCaPoolIamPolicies) Delete

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

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

func (*FakeCaPoolIamPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCaPoolIamPolicies) Get

func (c *FakeCaPoolIamPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.CaPoolIamPolicy, err error)

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

func (*FakeCaPoolIamPolicies) List

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

func (*FakeCaPoolIamPolicies) Patch

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

Patch applies the patch and returns the patched caPoolIamPolicy.

func (*FakeCaPoolIamPolicies) Update

func (c *FakeCaPoolIamPolicies) Update(ctx context.Context, caPoolIamPolicy *v1alpha1.CaPoolIamPolicy, opts v1.UpdateOptions) (result *v1alpha1.CaPoolIamPolicy, err error)

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

func (*FakeCaPoolIamPolicies) UpdateStatus

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

func (*FakeCaPoolIamPolicies) Watch

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

type FakeCaPools

type FakeCaPools struct {
	Fake *FakePrivatecaV1alpha1
	// contains filtered or unexported fields
}

FakeCaPools implements CaPoolInterface

func (*FakeCaPools) Create

func (c *FakeCaPools) Create(ctx context.Context, caPool *v1alpha1.CaPool, opts v1.CreateOptions) (result *v1alpha1.CaPool, err error)

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

func (*FakeCaPools) Delete

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

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

func (*FakeCaPools) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCaPools) Get

func (c *FakeCaPools) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.CaPool, err error)

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

func (*FakeCaPools) List

func (c *FakeCaPools) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.CaPoolList, err error)

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

func (*FakeCaPools) Patch

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

Patch applies the patch and returns the patched caPool.

func (*FakeCaPools) Update

func (c *FakeCaPools) Update(ctx context.Context, caPool *v1alpha1.CaPool, opts v1.UpdateOptions) (result *v1alpha1.CaPool, err error)

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

func (*FakeCaPools) UpdateStatus

func (c *FakeCaPools) UpdateStatus(ctx context.Context, caPool *v1alpha1.CaPool, opts v1.UpdateOptions) (*v1alpha1.CaPool, error)

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

func (*FakeCaPools) Watch

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

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

type FakeCertificateAuthorities

type FakeCertificateAuthorities struct {
	Fake *FakePrivatecaV1alpha1
	// contains filtered or unexported fields
}

FakeCertificateAuthorities implements CertificateAuthorityInterface

func (*FakeCertificateAuthorities) Create

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

func (*FakeCertificateAuthorities) Delete

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

func (*FakeCertificateAuthorities) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCertificateAuthorities) Get

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

func (*FakeCertificateAuthorities) List

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

func (*FakeCertificateAuthorities) Patch

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

Patch applies the patch and returns the patched certificateAuthority.

func (*FakeCertificateAuthorities) Update

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

func (*FakeCertificateAuthorities) UpdateStatus

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

func (*FakeCertificateAuthorities) Watch

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

type FakeCertificateTemplates

type FakeCertificateTemplates struct {
	Fake *FakePrivatecaV1alpha1
	// contains filtered or unexported fields
}

FakeCertificateTemplates implements CertificateTemplateInterface

func (*FakeCertificateTemplates) Create

func (c *FakeCertificateTemplates) Create(ctx context.Context, certificateTemplate *v1alpha1.CertificateTemplate, opts v1.CreateOptions) (result *v1alpha1.CertificateTemplate, err error)

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

func (*FakeCertificateTemplates) Delete

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

func (*FakeCertificateTemplates) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCertificateTemplates) Get

func (c *FakeCertificateTemplates) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.CertificateTemplate, err error)

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

func (*FakeCertificateTemplates) List

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

func (*FakeCertificateTemplates) Patch

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

Patch applies the patch and returns the patched certificateTemplate.

func (*FakeCertificateTemplates) Update

func (c *FakeCertificateTemplates) Update(ctx context.Context, certificateTemplate *v1alpha1.CertificateTemplate, opts v1.UpdateOptions) (result *v1alpha1.CertificateTemplate, err error)

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

func (*FakeCertificateTemplates) UpdateStatus

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

func (*FakeCertificateTemplates) Watch

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

type FakeCertificates

type FakeCertificates struct {
	Fake *FakePrivatecaV1alpha1
	// 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 FakePrivatecaV1alpha1

type FakePrivatecaV1alpha1 struct {
	*testing.Fake
}

func (*FakePrivatecaV1alpha1) CaPoolIamBindings

func (c *FakePrivatecaV1alpha1) CaPoolIamBindings(namespace string) v1alpha1.CaPoolIamBindingInterface

func (*FakePrivatecaV1alpha1) CaPoolIamMembers

func (c *FakePrivatecaV1alpha1) CaPoolIamMembers(namespace string) v1alpha1.CaPoolIamMemberInterface

func (*FakePrivatecaV1alpha1) CaPoolIamPolicies

func (c *FakePrivatecaV1alpha1) CaPoolIamPolicies(namespace string) v1alpha1.CaPoolIamPolicyInterface

func (*FakePrivatecaV1alpha1) CaPools

func (c *FakePrivatecaV1alpha1) CaPools(namespace string) v1alpha1.CaPoolInterface

func (*FakePrivatecaV1alpha1) CertificateAuthorities

func (c *FakePrivatecaV1alpha1) CertificateAuthorities(namespace string) v1alpha1.CertificateAuthorityInterface

func (*FakePrivatecaV1alpha1) CertificateTemplates

func (c *FakePrivatecaV1alpha1) CertificateTemplates(namespace string) v1alpha1.CertificateTemplateInterface

func (*FakePrivatecaV1alpha1) Certificates

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

func (*FakePrivatecaV1alpha1) RESTClient

func (c *FakePrivatecaV1alpha1) 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