fake

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2022 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 FakeArbiterV1alpha1

type FakeArbiterV1alpha1 struct {
	*testing.Fake
}

func (*FakeArbiterV1alpha1) ObservabilityActionPolicies

func (c *FakeArbiterV1alpha1) ObservabilityActionPolicies(namespace string) v1alpha1.ObservabilityActionPolicyInterface

func (*FakeArbiterV1alpha1) ObservabilityIndicants

func (c *FakeArbiterV1alpha1) ObservabilityIndicants(namespace string) v1alpha1.ObservabilityIndicantInterface

func (*FakeArbiterV1alpha1) RESTClient

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

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

func (*FakeArbiterV1alpha1) Schedulers

func (c *FakeArbiterV1alpha1) Schedulers(namespace string) v1alpha1.SchedulerInterface

func (*FakeArbiterV1alpha1) Scores

func (c *FakeArbiterV1alpha1) Scores(namespace string) v1alpha1.ScoreInterface

type FakeObservabilityActionPolicies

type FakeObservabilityActionPolicies struct {
	Fake *FakeArbiterV1alpha1
	// contains filtered or unexported fields
}

FakeObservabilityActionPolicies implements ObservabilityActionPolicyInterface

func (*FakeObservabilityActionPolicies) Create

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

func (*FakeObservabilityActionPolicies) Delete

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

func (*FakeObservabilityActionPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeObservabilityActionPolicies) Get

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

func (*FakeObservabilityActionPolicies) List

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

func (*FakeObservabilityActionPolicies) Patch

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

Patch applies the patch and returns the patched observabilityActionPolicy.

func (*FakeObservabilityActionPolicies) Update

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

func (*FakeObservabilityActionPolicies) Watch

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

type FakeObservabilityIndicants

type FakeObservabilityIndicants struct {
	Fake *FakeArbiterV1alpha1
	// contains filtered or unexported fields
}

FakeObservabilityIndicants implements ObservabilityIndicantInterface

func (*FakeObservabilityIndicants) Create

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

func (*FakeObservabilityIndicants) Delete

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

func (*FakeObservabilityIndicants) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeObservabilityIndicants) Get

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

func (*FakeObservabilityIndicants) List

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

func (*FakeObservabilityIndicants) Patch

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

Patch applies the patch and returns the patched observabilityIndicant.

func (*FakeObservabilityIndicants) Update

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

func (*FakeObservabilityIndicants) Watch

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

type FakeSchedulers

type FakeSchedulers struct {
	Fake *FakeArbiterV1alpha1
	// contains filtered or unexported fields
}

FakeSchedulers implements SchedulerInterface

func (*FakeSchedulers) Create

func (c *FakeSchedulers) Create(ctx context.Context, scheduler *v1alpha1.Scheduler, opts v1.CreateOptions) (result *v1alpha1.Scheduler, err error)

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

func (*FakeSchedulers) Delete

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

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

func (*FakeSchedulers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSchedulers) Get

func (c *FakeSchedulers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Scheduler, err error)

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

func (*FakeSchedulers) List

func (c *FakeSchedulers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SchedulerList, err error)

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

func (*FakeSchedulers) Patch

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

Patch applies the patch and returns the patched scheduler.

func (*FakeSchedulers) Update

func (c *FakeSchedulers) Update(ctx context.Context, scheduler *v1alpha1.Scheduler, opts v1.UpdateOptions) (result *v1alpha1.Scheduler, err error)

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

func (*FakeSchedulers) Watch

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

type FakeScores

type FakeScores struct {
	Fake *FakeArbiterV1alpha1
	// contains filtered or unexported fields
}

FakeScores implements ScoreInterface

func (*FakeScores) Create

func (c *FakeScores) Create(ctx context.Context, score *v1alpha1.Score, opts v1.CreateOptions) (result *v1alpha1.Score, err error)

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

func (*FakeScores) Delete

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

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

func (*FakeScores) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeScores) Get

func (c *FakeScores) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Score, err error)

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

func (*FakeScores) List

func (c *FakeScores) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ScoreList, err error)

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

func (*FakeScores) Patch

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

Patch applies the patch and returns the patched score.

func (*FakeScores) Update

func (c *FakeScores) Update(ctx context.Context, score *v1alpha1.Score, opts v1.UpdateOptions) (result *v1alpha1.Score, err error)

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

func (*FakeScores) UpdateStatus

func (c *FakeScores) UpdateStatus(ctx context.Context, score *v1alpha1.Score, opts v1.UpdateOptions) (*v1alpha1.Score, error)

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

func (*FakeScores) Watch

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

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

Jump to

Keyboard shortcuts

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