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 FakeAccounts

type FakeAccounts struct {
	Fake *FakeBatchV1alpha1
	// contains filtered or unexported fields
}

FakeAccounts implements AccountInterface

func (*FakeAccounts) Create

func (c *FakeAccounts) Create(ctx context.Context, account *v1alpha1.Account, opts v1.CreateOptions) (result *v1alpha1.Account, err error)

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

func (*FakeAccounts) Delete

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

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

func (*FakeAccounts) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAccounts) Get

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

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

func (*FakeAccounts) List

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

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

func (*FakeAccounts) Patch

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

Patch applies the patch and returns the patched account.

func (*FakeAccounts) Update

func (c *FakeAccounts) Update(ctx context.Context, account *v1alpha1.Account, opts v1.UpdateOptions) (result *v1alpha1.Account, err error)

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

func (*FakeAccounts) UpdateStatus

func (c *FakeAccounts) UpdateStatus(ctx context.Context, account *v1alpha1.Account, opts v1.UpdateOptions) (*v1alpha1.Account, error)

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

func (*FakeAccounts) Watch

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

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

type FakeApplications

type FakeApplications struct {
	Fake *FakeBatchV1alpha1
	// contains filtered or unexported fields
}

FakeApplications implements ApplicationInterface

func (*FakeApplications) Create

func (c *FakeApplications) Create(ctx context.Context, application *v1alpha1.Application, opts v1.CreateOptions) (result *v1alpha1.Application, err error)

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

func (*FakeApplications) Delete

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

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

func (*FakeApplications) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeApplications) Get

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

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

func (*FakeApplications) List

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

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

func (*FakeApplications) Patch

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

Patch applies the patch and returns the patched application.

func (*FakeApplications) Update

func (c *FakeApplications) Update(ctx context.Context, application *v1alpha1.Application, opts v1.UpdateOptions) (result *v1alpha1.Application, err error)

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

func (*FakeApplications) UpdateStatus

func (c *FakeApplications) UpdateStatus(ctx context.Context, application *v1alpha1.Application, opts v1.UpdateOptions) (*v1alpha1.Application, error)

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

func (*FakeApplications) Watch

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

type FakeBatchV1alpha1

type FakeBatchV1alpha1 struct {
	*testing.Fake
}

func (*FakeBatchV1alpha1) Accounts

func (c *FakeBatchV1alpha1) Accounts(namespace string) v1alpha1.AccountInterface

func (*FakeBatchV1alpha1) Applications

func (c *FakeBatchV1alpha1) Applications(namespace string) v1alpha1.ApplicationInterface

func (*FakeBatchV1alpha1) Certificates

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

func (*FakeBatchV1alpha1) Jobs added in v0.5.0

func (c *FakeBatchV1alpha1) Jobs(namespace string) v1alpha1.JobInterface

func (*FakeBatchV1alpha1) Pools

func (c *FakeBatchV1alpha1) Pools(namespace string) v1alpha1.PoolInterface

func (*FakeBatchV1alpha1) RESTClient

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

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

type FakeCertificates

type FakeCertificates struct {
	Fake *FakeBatchV1alpha1
	// 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 FakeJobs added in v0.5.0

type FakeJobs struct {
	Fake *FakeBatchV1alpha1
	// contains filtered or unexported fields
}

FakeJobs implements JobInterface

func (*FakeJobs) Create added in v0.5.0

func (c *FakeJobs) Create(ctx context.Context, job *v1alpha1.Job, opts v1.CreateOptions) (result *v1alpha1.Job, err error)

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

func (*FakeJobs) Delete added in v0.5.0

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

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

func (*FakeJobs) DeleteCollection added in v0.5.0

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

DeleteCollection deletes a collection of objects.

func (*FakeJobs) Get added in v0.5.0

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

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

func (*FakeJobs) List added in v0.5.0

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

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

func (*FakeJobs) Patch added in v0.5.0

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

Patch applies the patch and returns the patched job.

func (*FakeJobs) Update added in v0.5.0

func (c *FakeJobs) Update(ctx context.Context, job *v1alpha1.Job, opts v1.UpdateOptions) (result *v1alpha1.Job, err error)

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

func (*FakeJobs) UpdateStatus added in v0.5.0

func (c *FakeJobs) UpdateStatus(ctx context.Context, job *v1alpha1.Job, opts v1.UpdateOptions) (*v1alpha1.Job, error)

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

func (*FakeJobs) Watch added in v0.5.0

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

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

type FakePools

type FakePools struct {
	Fake *FakeBatchV1alpha1
	// contains filtered or unexported fields
}

FakePools implements PoolInterface

func (*FakePools) Create

func (c *FakePools) Create(ctx context.Context, pool *v1alpha1.Pool, opts v1.CreateOptions) (result *v1alpha1.Pool, err error)

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

func (*FakePools) Delete

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

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

func (*FakePools) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePools) Get

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

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

func (*FakePools) List

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

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

func (*FakePools) Patch

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

Patch applies the patch and returns the patched pool.

func (*FakePools) Update

func (c *FakePools) Update(ctx context.Context, pool *v1alpha1.Pool, opts v1.UpdateOptions) (result *v1alpha1.Pool, err error)

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

func (*FakePools) UpdateStatus

func (c *FakePools) UpdateStatus(ctx context.Context, pool *v1alpha1.Pool, opts v1.UpdateOptions) (*v1alpha1.Pool, error)

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

func (*FakePools) Watch

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

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

Jump to

Keyboard shortcuts

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