fake

package
v0.0.0-...-a52e8f6 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 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 FakeHandlers

type FakeHandlers struct {
	Fake *FakeIstioV1alpha2
	// contains filtered or unexported fields
}

FakeHandlers implements HandlerInterface

func (*FakeHandlers) Create

func (c *FakeHandlers) Create(handler *v1alpha2.Handler) (result *v1alpha2.Handler, err error)

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

func (*FakeHandlers) Delete

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

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

func (*FakeHandlers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeHandlers) Get

func (c *FakeHandlers) Get(name string, options v1.GetOptions) (result *v1alpha2.Handler, err error)

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

func (*FakeHandlers) List

func (c *FakeHandlers) List(opts v1.ListOptions) (result *v1alpha2.HandlerList, err error)

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

func (*FakeHandlers) Patch

func (c *FakeHandlers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha2.Handler, err error)

Patch applies the patch and returns the patched handler.

func (*FakeHandlers) Update

func (c *FakeHandlers) Update(handler *v1alpha2.Handler) (result *v1alpha2.Handler, err error)

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

func (*FakeHandlers) Watch

func (c *FakeHandlers) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeInstances

type FakeInstances struct {
	Fake *FakeIstioV1alpha2
	// contains filtered or unexported fields
}

FakeInstances implements InstanceInterface

func (*FakeInstances) Create

func (c *FakeInstances) Create(instance *v1alpha2.Instance) (result *v1alpha2.Instance, err error)

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

func (*FakeInstances) Delete

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

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

func (*FakeInstances) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeInstances) Get

func (c *FakeInstances) Get(name string, options v1.GetOptions) (result *v1alpha2.Instance, err error)

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

func (*FakeInstances) List

func (c *FakeInstances) List(opts v1.ListOptions) (result *v1alpha2.InstanceList, err error)

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

func (*FakeInstances) Patch

func (c *FakeInstances) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha2.Instance, err error)

Patch applies the patch and returns the patched instance.

func (*FakeInstances) Update

func (c *FakeInstances) Update(instance *v1alpha2.Instance) (result *v1alpha2.Instance, err error)

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

func (*FakeInstances) Watch

func (c *FakeInstances) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeIstioV1alpha2

type FakeIstioV1alpha2 struct {
	*testing.Fake
}

func (*FakeIstioV1alpha2) Handlers

func (c *FakeIstioV1alpha2) Handlers(namespace string) v1alpha2.HandlerInterface

func (*FakeIstioV1alpha2) Instances

func (c *FakeIstioV1alpha2) Instances(namespace string) v1alpha2.InstanceInterface

func (*FakeIstioV1alpha2) RESTClient

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

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

func (*FakeIstioV1alpha2) Rules

func (c *FakeIstioV1alpha2) Rules(namespace string) v1alpha2.RuleInterface

type FakeRules

type FakeRules struct {
	Fake *FakeIstioV1alpha2
	// contains filtered or unexported fields
}

FakeRules implements RuleInterface

func (*FakeRules) Create

func (c *FakeRules) Create(rule *v1alpha2.Rule) (result *v1alpha2.Rule, err error)

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

func (*FakeRules) Delete

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

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

func (*FakeRules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRules) Get

func (c *FakeRules) Get(name string, options v1.GetOptions) (result *v1alpha2.Rule, err error)

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

func (*FakeRules) List

func (c *FakeRules) List(opts v1.ListOptions) (result *v1alpha2.RuleList, err error)

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

func (*FakeRules) Patch

func (c *FakeRules) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha2.Rule, err error)

Patch applies the patch and returns the patched rule.

func (*FakeRules) Update

func (c *FakeRules) Update(rule *v1alpha2.Rule) (result *v1alpha2.Rule, err error)

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

func (*FakeRules) Watch

func (c *FakeRules) Watch(opts v1.ListOptions) (watch.Interface, error)

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

Jump to

Keyboard shortcuts

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