fake

package
v0.0.0-...-425e462 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 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 FakeClusterAlerts

type FakeClusterAlerts struct {
	Fake *FakeMonitoringV1alpha1
	// contains filtered or unexported fields
}

FakeClusterAlerts implements ClusterAlertInterface

func (*FakeClusterAlerts) Create

func (c *FakeClusterAlerts) Create(clusterAlert *v1alpha1.ClusterAlert) (result *v1alpha1.ClusterAlert, err error)

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

func (*FakeClusterAlerts) Delete

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

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

func (*FakeClusterAlerts) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterAlerts) Get

func (c *FakeClusterAlerts) Get(name string, options v1.GetOptions) (result *v1alpha1.ClusterAlert, err error)

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

func (*FakeClusterAlerts) List

func (c *FakeClusterAlerts) List(opts v1.ListOptions) (result *v1alpha1.ClusterAlertList, err error)

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

func (*FakeClusterAlerts) Patch

func (c *FakeClusterAlerts) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.ClusterAlert, err error)

Patch applies the patch and returns the patched clusterAlert.

func (*FakeClusterAlerts) Update

func (c *FakeClusterAlerts) Update(clusterAlert *v1alpha1.ClusterAlert) (result *v1alpha1.ClusterAlert, err error)

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

func (*FakeClusterAlerts) Watch

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

type FakeIncidents

type FakeIncidents struct {
	Fake *FakeMonitoringV1alpha1
	// contains filtered or unexported fields
}

FakeIncidents implements IncidentInterface

func (*FakeIncidents) Create

func (c *FakeIncidents) Create(incident *v1alpha1.Incident) (result *v1alpha1.Incident, err error)

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

func (*FakeIncidents) Delete

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

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

func (*FakeIncidents) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeIncidents) Get

func (c *FakeIncidents) Get(name string, options v1.GetOptions) (result *v1alpha1.Incident, err error)

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

func (*FakeIncidents) List

func (c *FakeIncidents) List(opts v1.ListOptions) (result *v1alpha1.IncidentList, err error)

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

func (*FakeIncidents) Patch

func (c *FakeIncidents) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Incident, err error)

Patch applies the patch and returns the patched incident.

func (*FakeIncidents) Update

func (c *FakeIncidents) Update(incident *v1alpha1.Incident) (result *v1alpha1.Incident, err error)

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

func (*FakeIncidents) UpdateStatus

func (c *FakeIncidents) UpdateStatus(incident *v1alpha1.Incident) (*v1alpha1.Incident, error)

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

func (*FakeIncidents) Watch

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

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

type FakeMonitoringV1alpha1

type FakeMonitoringV1alpha1 struct {
	*testing.Fake
}

func (*FakeMonitoringV1alpha1) ClusterAlerts

func (c *FakeMonitoringV1alpha1) ClusterAlerts(namespace string) v1alpha1.ClusterAlertInterface

func (*FakeMonitoringV1alpha1) Incidents

func (c *FakeMonitoringV1alpha1) Incidents(namespace string) v1alpha1.IncidentInterface

func (*FakeMonitoringV1alpha1) NodeAlerts

func (c *FakeMonitoringV1alpha1) NodeAlerts(namespace string) v1alpha1.NodeAlertInterface

func (*FakeMonitoringV1alpha1) PodAlerts

func (c *FakeMonitoringV1alpha1) PodAlerts(namespace string) v1alpha1.PodAlertInterface

func (*FakeMonitoringV1alpha1) RESTClient

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

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

func (*FakeMonitoringV1alpha1) SearchlightPlugins

type FakeNodeAlerts

type FakeNodeAlerts struct {
	Fake *FakeMonitoringV1alpha1
	// contains filtered or unexported fields
}

FakeNodeAlerts implements NodeAlertInterface

func (*FakeNodeAlerts) Create

func (c *FakeNodeAlerts) Create(nodeAlert *v1alpha1.NodeAlert) (result *v1alpha1.NodeAlert, err error)

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

func (*FakeNodeAlerts) Delete

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

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

func (*FakeNodeAlerts) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNodeAlerts) Get

func (c *FakeNodeAlerts) Get(name string, options v1.GetOptions) (result *v1alpha1.NodeAlert, err error)

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

func (*FakeNodeAlerts) List

func (c *FakeNodeAlerts) List(opts v1.ListOptions) (result *v1alpha1.NodeAlertList, err error)

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

func (*FakeNodeAlerts) Patch

func (c *FakeNodeAlerts) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.NodeAlert, err error)

Patch applies the patch and returns the patched nodeAlert.

func (*FakeNodeAlerts) Update

func (c *FakeNodeAlerts) Update(nodeAlert *v1alpha1.NodeAlert) (result *v1alpha1.NodeAlert, err error)

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

func (*FakeNodeAlerts) Watch

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

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

type FakePodAlerts

type FakePodAlerts struct {
	Fake *FakeMonitoringV1alpha1
	// contains filtered or unexported fields
}

FakePodAlerts implements PodAlertInterface

func (*FakePodAlerts) Create

func (c *FakePodAlerts) Create(podAlert *v1alpha1.PodAlert) (result *v1alpha1.PodAlert, err error)

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

func (*FakePodAlerts) Delete

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

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

func (*FakePodAlerts) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePodAlerts) Get

func (c *FakePodAlerts) Get(name string, options v1.GetOptions) (result *v1alpha1.PodAlert, err error)

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

func (*FakePodAlerts) List

func (c *FakePodAlerts) List(opts v1.ListOptions) (result *v1alpha1.PodAlertList, err error)

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

func (*FakePodAlerts) Patch

func (c *FakePodAlerts) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.PodAlert, err error)

Patch applies the patch and returns the patched podAlert.

func (*FakePodAlerts) Update

func (c *FakePodAlerts) Update(podAlert *v1alpha1.PodAlert) (result *v1alpha1.PodAlert, err error)

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

func (*FakePodAlerts) Watch

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

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

type FakeSearchlightPlugins

type FakeSearchlightPlugins struct {
	Fake *FakeMonitoringV1alpha1
}

FakeSearchlightPlugins implements SearchlightPluginInterface

func (*FakeSearchlightPlugins) Create

func (c *FakeSearchlightPlugins) Create(searchlightPlugin *v1alpha1.SearchlightPlugin) (result *v1alpha1.SearchlightPlugin, err error)

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

func (*FakeSearchlightPlugins) Delete

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

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

func (*FakeSearchlightPlugins) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSearchlightPlugins) Get

func (c *FakeSearchlightPlugins) Get(name string, options v1.GetOptions) (result *v1alpha1.SearchlightPlugin, err error)

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

func (*FakeSearchlightPlugins) List

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

func (*FakeSearchlightPlugins) Patch

func (c *FakeSearchlightPlugins) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.SearchlightPlugin, err error)

Patch applies the patch and returns the patched searchlightPlugin.

func (*FakeSearchlightPlugins) Update

func (c *FakeSearchlightPlugins) Update(searchlightPlugin *v1alpha1.SearchlightPlugin) (result *v1alpha1.SearchlightPlugin, err error)

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

func (*FakeSearchlightPlugins) Watch

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

Jump to

Keyboard shortcuts

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