fake

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2019 License: Apache-2.0 Imports: 9 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 FakeIndicatorDocuments

type FakeIndicatorDocuments struct {
	Fake *FakeIndicatorprotocolV1
	// contains filtered or unexported fields
}

FakeIndicatorDocuments implements IndicatorDocumentInterface

func (*FakeIndicatorDocuments) Create

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

func (*FakeIndicatorDocuments) Delete

func (c *FakeIndicatorDocuments) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeIndicatorDocuments) DeleteCollection

func (c *FakeIndicatorDocuments) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeIndicatorDocuments) Get

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

func (*FakeIndicatorDocuments) List

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

func (*FakeIndicatorDocuments) Patch

func (c *FakeIndicatorDocuments) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *indicatordocumentv1.IndicatorDocument, err error)

Patch applies the patch and returns the patched indicatorDocument.

func (*FakeIndicatorDocuments) Update

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

func (*FakeIndicatorDocuments) UpdateStatus

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

func (*FakeIndicatorDocuments) Watch

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

type FakeIndicatorprotocolV1 added in v0.8.3

type FakeIndicatorprotocolV1 struct {
	*testing.Fake
}

func (*FakeIndicatorprotocolV1) IndicatorDocuments added in v0.8.3

func (c *FakeIndicatorprotocolV1) IndicatorDocuments(namespace string) v1.IndicatorDocumentInterface

func (*FakeIndicatorprotocolV1) Indicators added in v0.8.3

func (c *FakeIndicatorprotocolV1) Indicators(namespace string) v1.IndicatorInterface

func (*FakeIndicatorprotocolV1) RESTClient added in v0.8.3

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

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

type FakeIndicators

type FakeIndicators struct {
	Fake *FakeIndicatorprotocolV1
	// contains filtered or unexported fields
}

FakeIndicators implements IndicatorInterface

func (*FakeIndicators) Create

func (c *FakeIndicators) Create(indicator *indicatordocumentv1.Indicator) (result *indicatordocumentv1.Indicator, err error)

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

func (*FakeIndicators) Delete

func (c *FakeIndicators) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeIndicators) DeleteCollection

func (c *FakeIndicators) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeIndicators) Get

func (c *FakeIndicators) Get(name string, options v1.GetOptions) (result *indicatordocumentv1.Indicator, err error)

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

func (*FakeIndicators) List

func (c *FakeIndicators) List(opts v1.ListOptions) (result *indicatordocumentv1.IndicatorList, err error)

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

func (*FakeIndicators) Patch

func (c *FakeIndicators) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *indicatordocumentv1.Indicator, err error)

Patch applies the patch and returns the patched indicator.

func (*FakeIndicators) Update

func (c *FakeIndicators) Update(indicator *indicatordocumentv1.Indicator) (result *indicatordocumentv1.Indicator, err error)

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

func (*FakeIndicators) UpdateStatus

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

func (*FakeIndicators) Watch

func (c *FakeIndicators) Watch(opts v1.ListOptions) (watch.Interface, error)

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

Jump to

Keyboard shortcuts

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