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 FakeAccountCustomerManagedKeys added in v0.5.0

type FakeAccountCustomerManagedKeys struct {
	Fake *FakeCognitiveV1alpha1
	// contains filtered or unexported fields
}

FakeAccountCustomerManagedKeys implements AccountCustomerManagedKeyInterface

func (*FakeAccountCustomerManagedKeys) Create added in v0.5.0

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

func (*FakeAccountCustomerManagedKeys) Delete added in v0.5.0

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

func (*FakeAccountCustomerManagedKeys) DeleteCollection added in v0.5.0

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

DeleteCollection deletes a collection of objects.

func (*FakeAccountCustomerManagedKeys) Get added in v0.5.0

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

func (*FakeAccountCustomerManagedKeys) List added in v0.5.0

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

func (*FakeAccountCustomerManagedKeys) Patch added in v0.5.0

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

Patch applies the patch and returns the patched accountCustomerManagedKey.

func (*FakeAccountCustomerManagedKeys) Update added in v0.5.0

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

func (*FakeAccountCustomerManagedKeys) UpdateStatus added in v0.5.0

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

func (*FakeAccountCustomerManagedKeys) Watch added in v0.5.0

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

type FakeAccounts

type FakeAccounts struct {
	Fake *FakeCognitiveV1alpha1
	// 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 FakeCognitiveV1alpha1

type FakeCognitiveV1alpha1 struct {
	*testing.Fake
}

func (*FakeCognitiveV1alpha1) AccountCustomerManagedKeys added in v0.5.0

func (c *FakeCognitiveV1alpha1) AccountCustomerManagedKeys(namespace string) v1alpha1.AccountCustomerManagedKeyInterface

func (*FakeCognitiveV1alpha1) Accounts

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

func (*FakeCognitiveV1alpha1) RESTClient

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