Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeGlooV1
- type FakeUpstreams
- func (c *FakeUpstreams) Create(upstream *solo_io_v1.Upstream) (result *solo_io_v1.Upstream, err error)
- func (c *FakeUpstreams) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeUpstreams) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeUpstreams) Get(name string, options v1.GetOptions) (result *solo_io_v1.Upstream, err error)
- func (c *FakeUpstreams) List(opts v1.ListOptions) (result *solo_io_v1.UpstreamList, err error)
- func (c *FakeUpstreams) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *solo_io_v1.Upstream, err error)
- func (c *FakeUpstreams) Update(upstream *solo_io_v1.Upstream) (result *solo_io_v1.Upstream, err error)
- func (c *FakeUpstreams) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeVirtualHosts
- func (c *FakeVirtualHosts) Create(virtualHost *solo_io_v1.VirtualHost) (result *solo_io_v1.VirtualHost, err error)
- func (c *FakeVirtualHosts) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeVirtualHosts) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeVirtualHosts) Get(name string, options v1.GetOptions) (result *solo_io_v1.VirtualHost, err error)
- func (c *FakeVirtualHosts) List(opts v1.ListOptions) (result *solo_io_v1.VirtualHostList, err error)
- func (c *FakeVirtualHosts) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *solo_io_v1.VirtualHost, err error)
- func (c *FakeVirtualHosts) Update(virtualHost *solo_io_v1.VirtualHost) (result *solo_io_v1.VirtualHost, err error)
- func (c *FakeVirtualHosts) Watch(opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeGlooV1 ¶
func (*FakeGlooV1) RESTClient ¶
func (c *FakeGlooV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeGlooV1) Upstreams ¶
func (c *FakeGlooV1) Upstreams(namespace string) v1.UpstreamInterface
func (*FakeGlooV1) VirtualHosts ¶
func (c *FakeGlooV1) VirtualHosts(namespace string) v1.VirtualHostInterface
type FakeUpstreams ¶
type FakeUpstreams struct { Fake *FakeGlooV1 // contains filtered or unexported fields }
FakeUpstreams implements UpstreamInterface
func (*FakeUpstreams) Create ¶
func (c *FakeUpstreams) Create(upstream *solo_io_v1.Upstream) (result *solo_io_v1.Upstream, err error)
Create takes the representation of a upstream and creates it. Returns the server's representation of the upstream, and an error, if there is any.
func (*FakeUpstreams) Delete ¶
func (c *FakeUpstreams) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the upstream and deletes it. Returns an error if one occurs.
func (*FakeUpstreams) DeleteCollection ¶
func (c *FakeUpstreams) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeUpstreams) Get ¶
func (c *FakeUpstreams) Get(name string, options v1.GetOptions) (result *solo_io_v1.Upstream, err error)
Get takes name of the upstream, and returns the corresponding upstream object, and an error if there is any.
func (*FakeUpstreams) List ¶
func (c *FakeUpstreams) List(opts v1.ListOptions) (result *solo_io_v1.UpstreamList, err error)
List takes label and field selectors, and returns the list of Upstreams that match those selectors.
func (*FakeUpstreams) Patch ¶
func (c *FakeUpstreams) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *solo_io_v1.Upstream, err error)
Patch applies the patch and returns the patched upstream.
func (*FakeUpstreams) Update ¶
func (c *FakeUpstreams) Update(upstream *solo_io_v1.Upstream) (result *solo_io_v1.Upstream, err error)
Update takes the representation of a upstream and updates it. Returns the server's representation of the upstream, and an error, if there is any.
func (*FakeUpstreams) Watch ¶
func (c *FakeUpstreams) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested upstreams.
type FakeVirtualHosts ¶
type FakeVirtualHosts struct { Fake *FakeGlooV1 // contains filtered or unexported fields }
FakeVirtualHosts implements VirtualHostInterface
func (*FakeVirtualHosts) Create ¶
func (c *FakeVirtualHosts) Create(virtualHost *solo_io_v1.VirtualHost) (result *solo_io_v1.VirtualHost, err error)
Create takes the representation of a virtualHost and creates it. Returns the server's representation of the virtualHost, and an error, if there is any.
func (*FakeVirtualHosts) Delete ¶
func (c *FakeVirtualHosts) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the virtualHost and deletes it. Returns an error if one occurs.
func (*FakeVirtualHosts) DeleteCollection ¶
func (c *FakeVirtualHosts) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeVirtualHosts) Get ¶
func (c *FakeVirtualHosts) Get(name string, options v1.GetOptions) (result *solo_io_v1.VirtualHost, err error)
Get takes name of the virtualHost, and returns the corresponding virtualHost object, and an error if there is any.
func (*FakeVirtualHosts) List ¶
func (c *FakeVirtualHosts) List(opts v1.ListOptions) (result *solo_io_v1.VirtualHostList, err error)
List takes label and field selectors, and returns the list of VirtualHosts that match those selectors.
func (*FakeVirtualHosts) Patch ¶
func (c *FakeVirtualHosts) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *solo_io_v1.VirtualHost, err error)
Patch applies the patch and returns the patched virtualHost.
func (*FakeVirtualHosts) Update ¶
func (c *FakeVirtualHosts) Update(virtualHost *solo_io_v1.VirtualHost) (result *solo_io_v1.VirtualHost, err error)
Update takes the representation of a virtualHost and updates it. Returns the server's representation of the virtualHost, and an error, if there is any.
func (*FakeVirtualHosts) Watch ¶
func (c *FakeVirtualHosts) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested virtualHosts.