fake

package
v1.37.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 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 FakeAlertProviders

type FakeAlertProviders struct {
	Fake *FakeFlaggerV1beta1
	// contains filtered or unexported fields
}

FakeAlertProviders implements AlertProviderInterface

func (*FakeAlertProviders) Create

func (c *FakeAlertProviders) Create(ctx context.Context, alertProvider *v1beta1.AlertProvider, opts v1.CreateOptions) (result *v1beta1.AlertProvider, err error)

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

func (*FakeAlertProviders) Delete

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

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

func (*FakeAlertProviders) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAlertProviders) Get

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

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

func (*FakeAlertProviders) List

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

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

func (*FakeAlertProviders) Patch

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

Patch applies the patch and returns the patched alertProvider.

func (*FakeAlertProviders) Update

func (c *FakeAlertProviders) Update(ctx context.Context, alertProvider *v1beta1.AlertProvider, opts v1.UpdateOptions) (result *v1beta1.AlertProvider, err error)

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

func (*FakeAlertProviders) UpdateStatus

func (c *FakeAlertProviders) UpdateStatus(ctx context.Context, alertProvider *v1beta1.AlertProvider, opts v1.UpdateOptions) (*v1beta1.AlertProvider, error)

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

func (*FakeAlertProviders) Watch

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

type FakeCanaries

type FakeCanaries struct {
	Fake *FakeFlaggerV1beta1
	// contains filtered or unexported fields
}

FakeCanaries implements CanaryInterface

func (*FakeCanaries) Create

func (c *FakeCanaries) Create(ctx context.Context, canary *v1beta1.Canary, opts v1.CreateOptions) (result *v1beta1.Canary, err error)

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

func (*FakeCanaries) Delete

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

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

func (*FakeCanaries) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCanaries) Get

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

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

func (*FakeCanaries) List

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

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

func (*FakeCanaries) Patch

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

Patch applies the patch and returns the patched canary.

func (*FakeCanaries) Update

func (c *FakeCanaries) Update(ctx context.Context, canary *v1beta1.Canary, opts v1.UpdateOptions) (result *v1beta1.Canary, err error)

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

func (*FakeCanaries) UpdateStatus

func (c *FakeCanaries) UpdateStatus(ctx context.Context, canary *v1beta1.Canary, opts v1.UpdateOptions) (*v1beta1.Canary, error)

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

func (*FakeCanaries) Watch

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

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

type FakeFlaggerV1beta1

type FakeFlaggerV1beta1 struct {
	*testing.Fake
}

func (*FakeFlaggerV1beta1) AlertProviders

func (c *FakeFlaggerV1beta1) AlertProviders(namespace string) v1beta1.AlertProviderInterface

func (*FakeFlaggerV1beta1) Canaries

func (c *FakeFlaggerV1beta1) Canaries(namespace string) v1beta1.CanaryInterface

func (*FakeFlaggerV1beta1) MetricTemplates

func (c *FakeFlaggerV1beta1) MetricTemplates(namespace string) v1beta1.MetricTemplateInterface

func (*FakeFlaggerV1beta1) RESTClient

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

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

type FakeMetricTemplates

type FakeMetricTemplates struct {
	Fake *FakeFlaggerV1beta1
	// contains filtered or unexported fields
}

FakeMetricTemplates implements MetricTemplateInterface

func (*FakeMetricTemplates) Create

func (c *FakeMetricTemplates) Create(ctx context.Context, metricTemplate *v1beta1.MetricTemplate, opts v1.CreateOptions) (result *v1beta1.MetricTemplate, err error)

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

func (*FakeMetricTemplates) Delete

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

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

func (*FakeMetricTemplates) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMetricTemplates) Get

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

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

func (*FakeMetricTemplates) List

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

func (*FakeMetricTemplates) Patch

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

Patch applies the patch and returns the patched metricTemplate.

func (*FakeMetricTemplates) Update

func (c *FakeMetricTemplates) Update(ctx context.Context, metricTemplate *v1beta1.MetricTemplate, opts v1.UpdateOptions) (result *v1beta1.MetricTemplate, err error)

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

func (*FakeMetricTemplates) UpdateStatus

func (c *FakeMetricTemplates) UpdateStatus(ctx context.Context, metricTemplate *v1beta1.MetricTemplate, opts v1.UpdateOptions) (*v1beta1.MetricTemplate, error)

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

func (*FakeMetricTemplates) Watch

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

Jump to

Keyboard shortcuts

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