fake

package
v0.0.0-...-87e400f Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 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 FakeCatalogs

type FakeCatalogs struct {
	Fake *FakeEdgeapiV1alpha1
	// contains filtered or unexported fields
}

FakeCatalogs implements CatalogInterface

func (*FakeCatalogs) Create

func (c *FakeCatalogs) Create(ctx context.Context, catalog *v1alpha1.Catalog, opts v1.CreateOptions) (result *v1alpha1.Catalog, err error)

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

func (*FakeCatalogs) Delete

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

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

func (*FakeCatalogs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCatalogs) Get

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

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

func (*FakeCatalogs) List

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

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

func (*FakeCatalogs) Patch

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

Patch applies the patch and returns the patched catalog.

func (*FakeCatalogs) Update

func (c *FakeCatalogs) Update(ctx context.Context, catalog *v1alpha1.Catalog, opts v1.UpdateOptions) (result *v1alpha1.Catalog, err error)

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

func (*FakeCatalogs) UpdateStatus

func (c *FakeCatalogs) UpdateStatus(ctx context.Context, catalog *v1alpha1.Catalog, opts v1.UpdateOptions) (*v1alpha1.Catalog, error)

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

func (*FakeCatalogs) Watch

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

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

type FakeDeviceTemplateRevisions

type FakeDeviceTemplateRevisions struct {
	Fake *FakeEdgeapiV1alpha1
	// contains filtered or unexported fields
}

FakeDeviceTemplateRevisions implements DeviceTemplateRevisionInterface

func (*FakeDeviceTemplateRevisions) Create

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

func (*FakeDeviceTemplateRevisions) Delete

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

func (*FakeDeviceTemplateRevisions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDeviceTemplateRevisions) Get

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

func (*FakeDeviceTemplateRevisions) List

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

func (*FakeDeviceTemplateRevisions) Patch

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

Patch applies the patch and returns the patched deviceTemplateRevision.

func (*FakeDeviceTemplateRevisions) Update

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

func (*FakeDeviceTemplateRevisions) UpdateStatus

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

func (*FakeDeviceTemplateRevisions) Watch

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

type FakeDeviceTemplates

type FakeDeviceTemplates struct {
	Fake *FakeEdgeapiV1alpha1
	// contains filtered or unexported fields
}

FakeDeviceTemplates implements DeviceTemplateInterface

func (*FakeDeviceTemplates) Create

func (c *FakeDeviceTemplates) Create(ctx context.Context, deviceTemplate *v1alpha1.DeviceTemplate, opts v1.CreateOptions) (result *v1alpha1.DeviceTemplate, err error)

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

func (*FakeDeviceTemplates) Delete

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

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

func (*FakeDeviceTemplates) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDeviceTemplates) Get

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

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

func (*FakeDeviceTemplates) List

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

func (*FakeDeviceTemplates) Patch

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

Patch applies the patch and returns the patched deviceTemplate.

func (*FakeDeviceTemplates) Update

func (c *FakeDeviceTemplates) Update(ctx context.Context, deviceTemplate *v1alpha1.DeviceTemplate, opts v1.UpdateOptions) (result *v1alpha1.DeviceTemplate, err error)

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

func (*FakeDeviceTemplates) UpdateStatus

func (c *FakeDeviceTemplates) UpdateStatus(ctx context.Context, deviceTemplate *v1alpha1.DeviceTemplate, opts v1.UpdateOptions) (*v1alpha1.DeviceTemplate, error)

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

func (*FakeDeviceTemplates) Watch

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

type FakeEdgeapiV1alpha1

type FakeEdgeapiV1alpha1 struct {
	*testing.Fake
}

func (*FakeEdgeapiV1alpha1) Catalogs

func (c *FakeEdgeapiV1alpha1) Catalogs(namespace string) v1alpha1.CatalogInterface

func (*FakeEdgeapiV1alpha1) DeviceTemplateRevisions

func (c *FakeEdgeapiV1alpha1) DeviceTemplateRevisions(namespace string) v1alpha1.DeviceTemplateRevisionInterface

func (*FakeEdgeapiV1alpha1) DeviceTemplates

func (c *FakeEdgeapiV1alpha1) DeviceTemplates(namespace string) v1alpha1.DeviceTemplateInterface

func (*FakeEdgeapiV1alpha1) RESTClient

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

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

func (*FakeEdgeapiV1alpha1) Settings

type FakeSettings

type FakeSettings struct {
	Fake *FakeEdgeapiV1alpha1
}

FakeSettings implements SettingInterface

func (*FakeSettings) Create

func (c *FakeSettings) Create(ctx context.Context, setting *v1alpha1.Setting, opts v1.CreateOptions) (result *v1alpha1.Setting, err error)

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

func (*FakeSettings) Delete

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

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

func (*FakeSettings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSettings) Get

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

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

func (*FakeSettings) List

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

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

func (*FakeSettings) Patch

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

Patch applies the patch and returns the patched setting.

func (*FakeSettings) Update

func (c *FakeSettings) Update(ctx context.Context, setting *v1alpha1.Setting, opts v1.UpdateOptions) (result *v1alpha1.Setting, err error)

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

func (*FakeSettings) Watch

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

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

Jump to

Keyboard shortcuts

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