fake

package
Version: v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: MIT 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 FakeDashboards

type FakeDashboards struct {
	Fake *FakeKobsV1beta1
	// contains filtered or unexported fields
}

FakeDashboards implements DashboardInterface

func (*FakeDashboards) Create

func (c *FakeDashboards) Create(ctx context.Context, dashboard *v1beta1.Dashboard, opts v1.CreateOptions) (result *v1beta1.Dashboard, err error)

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

func (*FakeDashboards) Delete

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

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

func (*FakeDashboards) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDashboards) Get

func (c *FakeDashboards) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Dashboard, err error)

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

func (*FakeDashboards) List

func (c *FakeDashboards) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.DashboardList, err error)

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

func (*FakeDashboards) Patch

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

Patch applies the patch and returns the patched dashboard.

func (*FakeDashboards) Update

func (c *FakeDashboards) Update(ctx context.Context, dashboard *v1beta1.Dashboard, opts v1.UpdateOptions) (result *v1beta1.Dashboard, err error)

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

func (*FakeDashboards) Watch

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

type FakeKobsV1beta1

type FakeKobsV1beta1 struct {
	*testing.Fake
}

func (*FakeKobsV1beta1) Dashboards

func (c *FakeKobsV1beta1) Dashboards(namespace string) v1beta1.DashboardInterface

func (*FakeKobsV1beta1) RESTClient

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