fake

package
v0.3.25 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 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 FakeAccessV1alpha1

type FakeAccessV1alpha1 struct {
	*testing.Fake
}

func (*FakeAccessV1alpha1) RESTClient

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

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

func (*FakeAccessV1alpha1) TrafficTargets

func (c *FakeAccessV1alpha1) TrafficTargets(namespace string) v1alpha1.TrafficTargetInterface

type FakeTrafficTargets

type FakeTrafficTargets struct {
	Fake *FakeAccessV1alpha1
	// contains filtered or unexported fields
}

FakeTrafficTargets implements TrafficTargetInterface

func (*FakeTrafficTargets) Create

func (c *FakeTrafficTargets) Create(trafficTarget *v1alpha1.TrafficTarget) (result *v1alpha1.TrafficTarget, err error)

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

func (*FakeTrafficTargets) Delete

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

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

func (*FakeTrafficTargets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTrafficTargets) Get

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

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

func (*FakeTrafficTargets) List

func (c *FakeTrafficTargets) List(opts v1.ListOptions) (result *v1alpha1.TrafficTargetList, err error)

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

func (*FakeTrafficTargets) Patch

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

Patch applies the patch and returns the patched trafficTarget.

func (*FakeTrafficTargets) Update

func (c *FakeTrafficTargets) Update(trafficTarget *v1alpha1.TrafficTarget) (result *v1alpha1.TrafficTarget, err error)

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

func (*FakeTrafficTargets) Watch

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

Jump to

Keyboard shortcuts

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