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 FakeDatabricksV1alpha1

type FakeDatabricksV1alpha1 struct {
	*testing.Fake
}

func (*FakeDatabricksV1alpha1) RESTClient

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

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

func (*FakeDatabricksV1alpha1) WorkspaceCustomerManagedKeys added in v0.5.0

func (c *FakeDatabricksV1alpha1) WorkspaceCustomerManagedKeys(namespace string) v1alpha1.WorkspaceCustomerManagedKeyInterface

func (*FakeDatabricksV1alpha1) Workspaces

func (c *FakeDatabricksV1alpha1) Workspaces(namespace string) v1alpha1.WorkspaceInterface

type FakeWorkspaceCustomerManagedKeys added in v0.5.0

type FakeWorkspaceCustomerManagedKeys struct {
	Fake *FakeDatabricksV1alpha1
	// contains filtered or unexported fields
}

FakeWorkspaceCustomerManagedKeys implements WorkspaceCustomerManagedKeyInterface

func (*FakeWorkspaceCustomerManagedKeys) Create added in v0.5.0

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

func (*FakeWorkspaceCustomerManagedKeys) Delete added in v0.5.0

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

func (*FakeWorkspaceCustomerManagedKeys) DeleteCollection added in v0.5.0

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

DeleteCollection deletes a collection of objects.

func (*FakeWorkspaceCustomerManagedKeys) Get added in v0.5.0

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

func (*FakeWorkspaceCustomerManagedKeys) List added in v0.5.0

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

func (*FakeWorkspaceCustomerManagedKeys) Patch added in v0.5.0

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

Patch applies the patch and returns the patched workspaceCustomerManagedKey.

func (*FakeWorkspaceCustomerManagedKeys) Update added in v0.5.0

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

func (*FakeWorkspaceCustomerManagedKeys) 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 (*FakeWorkspaceCustomerManagedKeys) Watch added in v0.5.0

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

type FakeWorkspaces

type FakeWorkspaces struct {
	Fake *FakeDatabricksV1alpha1
	// contains filtered or unexported fields
}

FakeWorkspaces implements WorkspaceInterface

func (*FakeWorkspaces) Create

func (c *FakeWorkspaces) Create(ctx context.Context, workspace *v1alpha1.Workspace, opts v1.CreateOptions) (result *v1alpha1.Workspace, err error)

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

func (*FakeWorkspaces) Delete

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

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

func (*FakeWorkspaces) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeWorkspaces) Get

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

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

func (*FakeWorkspaces) List

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

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

func (*FakeWorkspaces) Patch

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

Patch applies the patch and returns the patched workspace.

func (*FakeWorkspaces) Update

func (c *FakeWorkspaces) Update(ctx context.Context, workspace *v1alpha1.Workspace, opts v1.UpdateOptions) (result *v1alpha1.Workspace, err error)

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

func (*FakeWorkspaces) UpdateStatus

func (c *FakeWorkspaces) UpdateStatus(ctx context.Context, workspace *v1alpha1.Workspace, opts v1.UpdateOptions) (*v1alpha1.Workspace, error)

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

func (*FakeWorkspaces) Watch

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

Jump to

Keyboard shortcuts

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