fake

package
v0.0.0-...-3acc49a Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 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 FakePodScales

type FakePodScales struct {
	Fake *FakeSystemautoscalerV1beta1
	// contains filtered or unexported fields
}

FakePodScales implements PodScaleInterface

func (*FakePodScales) Create

func (c *FakePodScales) Create(ctx context.Context, podScale *v1beta1.PodScale, opts v1.CreateOptions) (result *v1beta1.PodScale, err error)

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

func (*FakePodScales) Delete

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

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

func (*FakePodScales) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePodScales) Get

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

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

func (*FakePodScales) List

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

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

func (*FakePodScales) Patch

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

Patch applies the patch and returns the patched podScale.

func (*FakePodScales) Update

func (c *FakePodScales) Update(ctx context.Context, podScale *v1beta1.PodScale, opts v1.UpdateOptions) (result *v1beta1.PodScale, err error)

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

func (*FakePodScales) UpdateStatus

func (c *FakePodScales) UpdateStatus(ctx context.Context, podScale *v1beta1.PodScale, opts v1.UpdateOptions) (*v1beta1.PodScale, error)

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

func (*FakePodScales) Watch

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

type FakeServiceLevelAgreements

type FakeServiceLevelAgreements struct {
	Fake *FakeSystemautoscalerV1beta1
	// contains filtered or unexported fields
}

FakeServiceLevelAgreements implements ServiceLevelAgreementInterface

func (*FakeServiceLevelAgreements) Create

func (c *FakeServiceLevelAgreements) Create(ctx context.Context, serviceLevelAgreement *v1beta1.ServiceLevelAgreement, opts v1.CreateOptions) (result *v1beta1.ServiceLevelAgreement, err error)

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

func (*FakeServiceLevelAgreements) Delete

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

func (*FakeServiceLevelAgreements) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeServiceLevelAgreements) Get

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

func (*FakeServiceLevelAgreements) List

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

func (*FakeServiceLevelAgreements) Patch

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

Patch applies the patch and returns the patched serviceLevelAgreement.

func (*FakeServiceLevelAgreements) Update

func (c *FakeServiceLevelAgreements) Update(ctx context.Context, serviceLevelAgreement *v1beta1.ServiceLevelAgreement, opts v1.UpdateOptions) (result *v1beta1.ServiceLevelAgreement, err error)

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

func (*FakeServiceLevelAgreements) Watch

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

type FakeSystemautoscalerV1beta1

type FakeSystemautoscalerV1beta1 struct {
	*testing.Fake
}

func (*FakeSystemautoscalerV1beta1) PodScales

func (*FakeSystemautoscalerV1beta1) RESTClient

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

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

func (*FakeSystemautoscalerV1beta1) ServiceLevelAgreements

func (c *FakeSystemautoscalerV1beta1) ServiceLevelAgreements(namespace string) v1beta1.ServiceLevelAgreementInterface

Jump to

Keyboard shortcuts

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