fake

package
v0.6.1-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 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 FakeAutoscalingEngines

type FakeAutoscalingEngines struct {
	Fake *FakeCerebralV1alpha1
}

FakeAutoscalingEngines implements AutoscalingEngineInterface

func (*FakeAutoscalingEngines) Create

func (c *FakeAutoscalingEngines) Create(autoscalingEngine *v1alpha1.AutoscalingEngine) (result *v1alpha1.AutoscalingEngine, err error)

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

func (*FakeAutoscalingEngines) Delete

func (c *FakeAutoscalingEngines) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeAutoscalingEngines) DeleteCollection

func (c *FakeAutoscalingEngines) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeAutoscalingEngines) Get

func (c *FakeAutoscalingEngines) Get(name string, options v1.GetOptions) (result *v1alpha1.AutoscalingEngine, err error)

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

func (*FakeAutoscalingEngines) List

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

func (*FakeAutoscalingEngines) Patch

func (c *FakeAutoscalingEngines) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.AutoscalingEngine, err error)

Patch applies the patch and returns the patched autoscalingEngine.

func (*FakeAutoscalingEngines) Update

func (c *FakeAutoscalingEngines) Update(autoscalingEngine *v1alpha1.AutoscalingEngine) (result *v1alpha1.AutoscalingEngine, err error)

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

func (*FakeAutoscalingEngines) Watch

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

type FakeAutoscalingGroups

type FakeAutoscalingGroups struct {
	Fake *FakeCerebralV1alpha1
}

FakeAutoscalingGroups implements AutoscalingGroupInterface

func (*FakeAutoscalingGroups) Create

func (c *FakeAutoscalingGroups) Create(autoscalingGroup *v1alpha1.AutoscalingGroup) (result *v1alpha1.AutoscalingGroup, err error)

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

func (*FakeAutoscalingGroups) Delete

func (c *FakeAutoscalingGroups) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeAutoscalingGroups) DeleteCollection

func (c *FakeAutoscalingGroups) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeAutoscalingGroups) Get

func (c *FakeAutoscalingGroups) Get(name string, options v1.GetOptions) (result *v1alpha1.AutoscalingGroup, err error)

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

func (*FakeAutoscalingGroups) List

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

func (*FakeAutoscalingGroups) Patch

func (c *FakeAutoscalingGroups) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.AutoscalingGroup, err error)

Patch applies the patch and returns the patched autoscalingGroup.

func (*FakeAutoscalingGroups) Update

func (c *FakeAutoscalingGroups) Update(autoscalingGroup *v1alpha1.AutoscalingGroup) (result *v1alpha1.AutoscalingGroup, err error)

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

func (*FakeAutoscalingGroups) UpdateStatus

func (c *FakeAutoscalingGroups) UpdateStatus(autoscalingGroup *v1alpha1.AutoscalingGroup) (*v1alpha1.AutoscalingGroup, error)

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

func (*FakeAutoscalingGroups) Watch

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

type FakeAutoscalingPolicies

type FakeAutoscalingPolicies struct {
	Fake *FakeCerebralV1alpha1
}

FakeAutoscalingPolicies implements AutoscalingPolicyInterface

func (*FakeAutoscalingPolicies) Create

func (c *FakeAutoscalingPolicies) Create(autoscalingPolicy *v1alpha1.AutoscalingPolicy) (result *v1alpha1.AutoscalingPolicy, err error)

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

func (*FakeAutoscalingPolicies) Delete

func (c *FakeAutoscalingPolicies) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeAutoscalingPolicies) DeleteCollection

func (c *FakeAutoscalingPolicies) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeAutoscalingPolicies) Get

func (c *FakeAutoscalingPolicies) Get(name string, options v1.GetOptions) (result *v1alpha1.AutoscalingPolicy, err error)

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

func (*FakeAutoscalingPolicies) List

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

func (*FakeAutoscalingPolicies) Patch

func (c *FakeAutoscalingPolicies) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.AutoscalingPolicy, err error)

Patch applies the patch and returns the patched autoscalingPolicy.

func (*FakeAutoscalingPolicies) Update

func (c *FakeAutoscalingPolicies) Update(autoscalingPolicy *v1alpha1.AutoscalingPolicy) (result *v1alpha1.AutoscalingPolicy, err error)

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

func (*FakeAutoscalingPolicies) Watch

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

type FakeCerebralV1alpha1

type FakeCerebralV1alpha1 struct {
	*testing.Fake
}

func (*FakeCerebralV1alpha1) AutoscalingEngines

func (*FakeCerebralV1alpha1) AutoscalingGroups

func (*FakeCerebralV1alpha1) AutoscalingPolicies

func (c *FakeCerebralV1alpha1) AutoscalingPolicies() v1alpha1.AutoscalingPolicyInterface

func (*FakeCerebralV1alpha1) MetricsBackends

func (*FakeCerebralV1alpha1) RESTClient

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

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

type FakeMetricsBackends

type FakeMetricsBackends struct {
	Fake *FakeCerebralV1alpha1
}

FakeMetricsBackends implements MetricsBackendInterface

func (*FakeMetricsBackends) Create

func (c *FakeMetricsBackends) Create(metricsBackend *v1alpha1.MetricsBackend) (result *v1alpha1.MetricsBackend, err error)

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

func (*FakeMetricsBackends) Delete

func (c *FakeMetricsBackends) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeMetricsBackends) DeleteCollection

func (c *FakeMetricsBackends) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeMetricsBackends) Get

func (c *FakeMetricsBackends) Get(name string, options v1.GetOptions) (result *v1alpha1.MetricsBackend, err error)

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

func (*FakeMetricsBackends) List

func (c *FakeMetricsBackends) List(opts v1.ListOptions) (result *v1alpha1.MetricsBackendList, err error)

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

func (*FakeMetricsBackends) Patch

func (c *FakeMetricsBackends) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.MetricsBackend, err error)

Patch applies the patch and returns the patched metricsBackend.

func (*FakeMetricsBackends) Update

func (c *FakeMetricsBackends) Update(metricsBackend *v1alpha1.MetricsBackend) (result *v1alpha1.MetricsBackend, err error)

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

func (*FakeMetricsBackends) Watch

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

Jump to

Keyboard shortcuts

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