fake

package
v0.0.0-...-53abe87 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: GPL-3.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 FakeAutoscalingRules

type FakeAutoscalingRules struct {
	Fake *FakeBsinfoV1
	// contains filtered or unexported fields
}

FakeAutoscalingRules implements AutoscalingRuleInterface

func (*FakeAutoscalingRules) Create

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

func (*FakeAutoscalingRules) Delete

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

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

func (*FakeAutoscalingRules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAutoscalingRules) Get

func (c *FakeAutoscalingRules) Get(name string, options v1.GetOptions) (result *autoscalingrulev1.AutoscalingRule, err error)

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

func (*FakeAutoscalingRules) List

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

func (*FakeAutoscalingRules) Patch

func (c *FakeAutoscalingRules) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *autoscalingrulev1.AutoscalingRule, err error)

Patch applies the patch and returns the patched autoscalingRule.

func (*FakeAutoscalingRules) Update

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

func (*FakeAutoscalingRules) Watch

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

type FakeBsinfoV1

type FakeBsinfoV1 struct {
	*testing.Fake
}

func (*FakeBsinfoV1) AutoscalingRules

func (c *FakeBsinfoV1) AutoscalingRules(namespace string) v1.AutoscalingRuleInterface

func (*FakeBsinfoV1) RESTClient

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

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

Jump to

Keyboard shortcuts

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