fake

package
v0.0.0-...-432d548 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 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 FakeCarbonJobs

type FakeCarbonJobs struct {
	Fake *FakeCarbonV1
	// contains filtered or unexported fields
}

FakeCarbonJobs implements CarbonJobInterface

func (*FakeCarbonJobs) Create

func (c *FakeCarbonJobs) Create(ctx context.Context, carbonJob *carbonv1.CarbonJob, opts v1.CreateOptions) (result *carbonv1.CarbonJob, err error)

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

func (*FakeCarbonJobs) Delete

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

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

func (*FakeCarbonJobs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCarbonJobs) Get

func (c *FakeCarbonJobs) Get(ctx context.Context, name string, options v1.GetOptions) (result *carbonv1.CarbonJob, err error)

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

func (*FakeCarbonJobs) List

func (c *FakeCarbonJobs) List(ctx context.Context, opts v1.ListOptions) (result *carbonv1.CarbonJobList, err error)

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

func (*FakeCarbonJobs) Patch

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

Patch applies the patch and returns the patched carbonJob.

func (*FakeCarbonJobs) Update

func (c *FakeCarbonJobs) Update(ctx context.Context, carbonJob *carbonv1.CarbonJob, opts v1.UpdateOptions) (result *carbonv1.CarbonJob, err error)

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

func (*FakeCarbonJobs) UpdateStatus

func (c *FakeCarbonJobs) UpdateStatus(ctx context.Context, carbonJob *carbonv1.CarbonJob, opts v1.UpdateOptions) (*carbonv1.CarbonJob, error)

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

func (*FakeCarbonJobs) Watch

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

type FakeCarbonV1

type FakeCarbonV1 struct {
	*testing.Fake
}

func (*FakeCarbonV1) CarbonJobs

func (c *FakeCarbonV1) CarbonJobs(namespace string) v1.CarbonJobInterface

func (*FakeCarbonV1) RESTClient

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

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

func (*FakeCarbonV1) RollingSets

func (c *FakeCarbonV1) RollingSets(namespace string) v1.RollingSetInterface

func (*FakeCarbonV1) ServicePublishers

func (c *FakeCarbonV1) ServicePublishers(namespace string) v1.ServicePublisherInterface

func (*FakeCarbonV1) ShardGroups

func (c *FakeCarbonV1) ShardGroups(namespace string) v1.ShardGroupInterface

func (*FakeCarbonV1) TemporaryConstraints

func (c *FakeCarbonV1) TemporaryConstraints(namespace string) v1.TemporaryConstraintInterface

func (*FakeCarbonV1) WorkerNodeEvictions

func (c *FakeCarbonV1) WorkerNodeEvictions(namespace string) v1.WorkerNodeEvictionInterface

func (*FakeCarbonV1) WorkerNodes

func (c *FakeCarbonV1) WorkerNodes(namespace string) v1.WorkerNodeInterface

type FakeRollingSets

type FakeRollingSets struct {
	Fake *FakeCarbonV1
	// contains filtered or unexported fields
}

FakeRollingSets implements RollingSetInterface

func (*FakeRollingSets) Create

func (c *FakeRollingSets) Create(ctx context.Context, rollingSet *carbonv1.RollingSet, opts v1.CreateOptions) (result *carbonv1.RollingSet, err error)

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

func (*FakeRollingSets) Delete

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

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

func (*FakeRollingSets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRollingSets) Get

func (c *FakeRollingSets) Get(ctx context.Context, name string, options v1.GetOptions) (result *carbonv1.RollingSet, err error)

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

func (*FakeRollingSets) List

func (c *FakeRollingSets) List(ctx context.Context, opts v1.ListOptions) (result *carbonv1.RollingSetList, err error)

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

func (*FakeRollingSets) Patch

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

Patch applies the patch and returns the patched rollingSet.

func (*FakeRollingSets) Update

func (c *FakeRollingSets) Update(ctx context.Context, rollingSet *carbonv1.RollingSet, opts v1.UpdateOptions) (result *carbonv1.RollingSet, err error)

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

func (*FakeRollingSets) UpdateStatus

func (c *FakeRollingSets) UpdateStatus(ctx context.Context, rollingSet *carbonv1.RollingSet, opts v1.UpdateOptions) (*carbonv1.RollingSet, error)

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

func (*FakeRollingSets) Watch

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

type FakeServicePublishers

type FakeServicePublishers struct {
	Fake *FakeCarbonV1
	// contains filtered or unexported fields
}

FakeServicePublishers implements ServicePublisherInterface

func (*FakeServicePublishers) Create

func (c *FakeServicePublishers) Create(ctx context.Context, servicePublisher *carbonv1.ServicePublisher, opts v1.CreateOptions) (result *carbonv1.ServicePublisher, err error)

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

func (*FakeServicePublishers) Delete

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

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

func (*FakeServicePublishers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeServicePublishers) Get

func (c *FakeServicePublishers) Get(ctx context.Context, name string, options v1.GetOptions) (result *carbonv1.ServicePublisher, err error)

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

func (*FakeServicePublishers) List

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

func (*FakeServicePublishers) Patch

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

Patch applies the patch and returns the patched servicePublisher.

func (*FakeServicePublishers) Update

func (c *FakeServicePublishers) Update(ctx context.Context, servicePublisher *carbonv1.ServicePublisher, opts v1.UpdateOptions) (result *carbonv1.ServicePublisher, err error)

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

func (*FakeServicePublishers) UpdateStatus

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

func (*FakeServicePublishers) Watch

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

type FakeShardGroups

type FakeShardGroups struct {
	Fake *FakeCarbonV1
	// contains filtered or unexported fields
}

FakeShardGroups implements ShardGroupInterface

func (*FakeShardGroups) Create

func (c *FakeShardGroups) Create(ctx context.Context, shardGroup *carbonv1.ShardGroup, opts v1.CreateOptions) (result *carbonv1.ShardGroup, err error)

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

func (*FakeShardGroups) Delete

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

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

func (*FakeShardGroups) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeShardGroups) Get

func (c *FakeShardGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *carbonv1.ShardGroup, err error)

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

func (*FakeShardGroups) List

func (c *FakeShardGroups) List(ctx context.Context, opts v1.ListOptions) (result *carbonv1.ShardGroupList, err error)

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

func (*FakeShardGroups) Patch

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

Patch applies the patch and returns the patched shardGroup.

func (*FakeShardGroups) Update

func (c *FakeShardGroups) Update(ctx context.Context, shardGroup *carbonv1.ShardGroup, opts v1.UpdateOptions) (result *carbonv1.ShardGroup, err error)

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

func (*FakeShardGroups) UpdateStatus

func (c *FakeShardGroups) UpdateStatus(ctx context.Context, shardGroup *carbonv1.ShardGroup, opts v1.UpdateOptions) (*carbonv1.ShardGroup, error)

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

func (*FakeShardGroups) Watch

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

type FakeTemporaryConstraints

type FakeTemporaryConstraints struct {
	Fake *FakeCarbonV1
	// contains filtered or unexported fields
}

FakeTemporaryConstraints implements TemporaryConstraintInterface

func (*FakeTemporaryConstraints) Create

func (c *FakeTemporaryConstraints) Create(ctx context.Context, temporaryConstraint *carbonv1.TemporaryConstraint, opts v1.CreateOptions) (result *carbonv1.TemporaryConstraint, err error)

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

func (*FakeTemporaryConstraints) Delete

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

func (*FakeTemporaryConstraints) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTemporaryConstraints) Get

func (c *FakeTemporaryConstraints) Get(ctx context.Context, name string, options v1.GetOptions) (result *carbonv1.TemporaryConstraint, err error)

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

func (*FakeTemporaryConstraints) List

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

func (*FakeTemporaryConstraints) Patch

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

Patch applies the patch and returns the patched temporaryConstraint.

func (*FakeTemporaryConstraints) Update

func (c *FakeTemporaryConstraints) Update(ctx context.Context, temporaryConstraint *carbonv1.TemporaryConstraint, opts v1.UpdateOptions) (result *carbonv1.TemporaryConstraint, err error)

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

func (*FakeTemporaryConstraints) UpdateStatus

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

func (*FakeTemporaryConstraints) Watch

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

type FakeWorkerNodeEvictions

type FakeWorkerNodeEvictions struct {
	Fake *FakeCarbonV1
	// contains filtered or unexported fields
}

FakeWorkerNodeEvictions implements WorkerNodeEvictionInterface

func (*FakeWorkerNodeEvictions) Create

func (c *FakeWorkerNodeEvictions) Create(ctx context.Context, workerNodeEviction *carbonv1.WorkerNodeEviction, opts v1.CreateOptions) (result *carbonv1.WorkerNodeEviction, err error)

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

func (*FakeWorkerNodeEvictions) Delete

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

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

func (*FakeWorkerNodeEvictions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeWorkerNodeEvictions) Get

func (c *FakeWorkerNodeEvictions) Get(ctx context.Context, name string, options v1.GetOptions) (result *carbonv1.WorkerNodeEviction, err error)

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

func (*FakeWorkerNodeEvictions) List

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

func (*FakeWorkerNodeEvictions) Patch

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

Patch applies the patch and returns the patched workerNodeEviction.

func (*FakeWorkerNodeEvictions) Update

func (c *FakeWorkerNodeEvictions) Update(ctx context.Context, workerNodeEviction *carbonv1.WorkerNodeEviction, opts v1.UpdateOptions) (result *carbonv1.WorkerNodeEviction, err error)

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

func (*FakeWorkerNodeEvictions) UpdateStatus

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

func (*FakeWorkerNodeEvictions) Watch

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

type FakeWorkerNodes

type FakeWorkerNodes struct {
	Fake *FakeCarbonV1
	// contains filtered or unexported fields
}

FakeWorkerNodes implements WorkerNodeInterface

func (*FakeWorkerNodes) Create

func (c *FakeWorkerNodes) Create(ctx context.Context, workerNode *carbonv1.WorkerNode, opts v1.CreateOptions) (result *carbonv1.WorkerNode, err error)

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

func (*FakeWorkerNodes) Delete

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

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

func (*FakeWorkerNodes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeWorkerNodes) Get

func (c *FakeWorkerNodes) Get(ctx context.Context, name string, options v1.GetOptions) (result *carbonv1.WorkerNode, err error)

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

func (*FakeWorkerNodes) List

func (c *FakeWorkerNodes) List(ctx context.Context, opts v1.ListOptions) (result *carbonv1.WorkerNodeList, err error)

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

func (*FakeWorkerNodes) Patch

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

Patch applies the patch and returns the patched workerNode.

func (*FakeWorkerNodes) Update

func (c *FakeWorkerNodes) Update(ctx context.Context, workerNode *carbonv1.WorkerNode, opts v1.UpdateOptions) (result *carbonv1.WorkerNode, err error)

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

func (*FakeWorkerNodes) UpdateStatus

func (c *FakeWorkerNodes) UpdateStatus(ctx context.Context, workerNode *carbonv1.WorkerNode, opts v1.UpdateOptions) (*carbonv1.WorkerNode, error)

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

func (*FakeWorkerNodes) Watch

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

Jump to

Keyboard shortcuts

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