fake

package
v1.42.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 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 FakeMonitoringAlertPolicies

type FakeMonitoringAlertPolicies struct {
	Fake *FakeMonitoringV1beta1
	// contains filtered or unexported fields
}

FakeMonitoringAlertPolicies implements MonitoringAlertPolicyInterface

func (*FakeMonitoringAlertPolicies) Create

func (c *FakeMonitoringAlertPolicies) Create(ctx context.Context, monitoringAlertPolicy *v1beta1.MonitoringAlertPolicy, opts v1.CreateOptions) (result *v1beta1.MonitoringAlertPolicy, err error)

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

func (*FakeMonitoringAlertPolicies) Delete

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

func (*FakeMonitoringAlertPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMonitoringAlertPolicies) Get

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

func (*FakeMonitoringAlertPolicies) List

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

func (*FakeMonitoringAlertPolicies) Patch

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

Patch applies the patch and returns the patched monitoringAlertPolicy.

func (*FakeMonitoringAlertPolicies) Update

func (c *FakeMonitoringAlertPolicies) Update(ctx context.Context, monitoringAlertPolicy *v1beta1.MonitoringAlertPolicy, opts v1.UpdateOptions) (result *v1beta1.MonitoringAlertPolicy, err error)

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

func (*FakeMonitoringAlertPolicies) UpdateStatus

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

func (*FakeMonitoringAlertPolicies) Watch

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

type FakeMonitoringGroups

type FakeMonitoringGroups struct {
	Fake *FakeMonitoringV1beta1
	// contains filtered or unexported fields
}

FakeMonitoringGroups implements MonitoringGroupInterface

func (*FakeMonitoringGroups) Create

func (c *FakeMonitoringGroups) Create(ctx context.Context, monitoringGroup *v1beta1.MonitoringGroup, opts v1.CreateOptions) (result *v1beta1.MonitoringGroup, err error)

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

func (*FakeMonitoringGroups) Delete

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

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

func (*FakeMonitoringGroups) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMonitoringGroups) Get

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

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

func (*FakeMonitoringGroups) List

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

func (*FakeMonitoringGroups) Patch

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

Patch applies the patch and returns the patched monitoringGroup.

func (*FakeMonitoringGroups) Update

func (c *FakeMonitoringGroups) Update(ctx context.Context, monitoringGroup *v1beta1.MonitoringGroup, opts v1.UpdateOptions) (result *v1beta1.MonitoringGroup, err error)

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

func (*FakeMonitoringGroups) UpdateStatus

func (c *FakeMonitoringGroups) UpdateStatus(ctx context.Context, monitoringGroup *v1beta1.MonitoringGroup, opts v1.UpdateOptions) (*v1beta1.MonitoringGroup, error)

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

func (*FakeMonitoringGroups) Watch

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

type FakeMonitoringNotificationChannels

type FakeMonitoringNotificationChannels struct {
	Fake *FakeMonitoringV1beta1
	// contains filtered or unexported fields
}

FakeMonitoringNotificationChannels implements MonitoringNotificationChannelInterface

func (*FakeMonitoringNotificationChannels) Create

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

func (*FakeMonitoringNotificationChannels) Delete

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

func (*FakeMonitoringNotificationChannels) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMonitoringNotificationChannels) Get

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

func (*FakeMonitoringNotificationChannels) List

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

func (*FakeMonitoringNotificationChannels) Patch

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

Patch applies the patch and returns the patched monitoringNotificationChannel.

func (*FakeMonitoringNotificationChannels) Update

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

func (*FakeMonitoringNotificationChannels) UpdateStatus

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

func (*FakeMonitoringNotificationChannels) Watch

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

type FakeMonitoringV1beta1

type FakeMonitoringV1beta1 struct {
	*testing.Fake
}

func (*FakeMonitoringV1beta1) MonitoringAlertPolicies

func (c *FakeMonitoringV1beta1) MonitoringAlertPolicies(namespace string) v1beta1.MonitoringAlertPolicyInterface

func (*FakeMonitoringV1beta1) MonitoringGroups

func (c *FakeMonitoringV1beta1) MonitoringGroups(namespace string) v1beta1.MonitoringGroupInterface

func (*FakeMonitoringV1beta1) MonitoringNotificationChannels

func (c *FakeMonitoringV1beta1) MonitoringNotificationChannels(namespace string) v1beta1.MonitoringNotificationChannelInterface

func (*FakeMonitoringV1beta1) RESTClient

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