fake

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 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 FakeArtifacts

type FakeArtifacts struct {
	Fake *FakeGlooV1
	// contains filtered or unexported fields
}

FakeArtifacts implements ArtifactInterface

func (*FakeArtifacts) Create

func (c *FakeArtifacts) Create(artifact *gloosoloiov1.Artifact) (result *gloosoloiov1.Artifact, err error)

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

func (*FakeArtifacts) Delete

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

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

func (*FakeArtifacts) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeArtifacts) Get

func (c *FakeArtifacts) Get(name string, options v1.GetOptions) (result *gloosoloiov1.Artifact, err error)

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

func (*FakeArtifacts) List

func (c *FakeArtifacts) List(opts v1.ListOptions) (result *gloosoloiov1.ArtifactList, err error)

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

func (*FakeArtifacts) Patch

func (c *FakeArtifacts) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *gloosoloiov1.Artifact, err error)

Patch applies the patch and returns the patched artifact.

func (*FakeArtifacts) Update

func (c *FakeArtifacts) Update(artifact *gloosoloiov1.Artifact) (result *gloosoloiov1.Artifact, err error)

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

func (*FakeArtifacts) Watch

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

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

type FakeEndpoints

type FakeEndpoints struct {
	Fake *FakeGlooV1
	// contains filtered or unexported fields
}

FakeEndpoints implements EndpointInterface

func (*FakeEndpoints) Create

func (c *FakeEndpoints) Create(endpoint *gloosoloiov1.Endpoint) (result *gloosoloiov1.Endpoint, err error)

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

func (*FakeEndpoints) Delete

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

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

func (*FakeEndpoints) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEndpoints) Get

func (c *FakeEndpoints) Get(name string, options v1.GetOptions) (result *gloosoloiov1.Endpoint, err error)

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

func (*FakeEndpoints) List

func (c *FakeEndpoints) List(opts v1.ListOptions) (result *gloosoloiov1.EndpointList, err error)

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

func (*FakeEndpoints) Patch

func (c *FakeEndpoints) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *gloosoloiov1.Endpoint, err error)

Patch applies the patch and returns the patched endpoint.

func (*FakeEndpoints) Update

func (c *FakeEndpoints) Update(endpoint *gloosoloiov1.Endpoint) (result *gloosoloiov1.Endpoint, err error)

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

func (*FakeEndpoints) Watch

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

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

type FakeGlooV1

type FakeGlooV1 struct {
	*testing.Fake
}

func (*FakeGlooV1) Artifacts

func (c *FakeGlooV1) Artifacts(namespace string) v1.ArtifactInterface

func (*FakeGlooV1) Endpoints

func (c *FakeGlooV1) Endpoints(namespace string) v1.EndpointInterface

func (*FakeGlooV1) Proxies

func (c *FakeGlooV1) Proxies(namespace string) v1.ProxyInterface

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) Secrets

func (c *FakeGlooV1) Secrets(namespace string) v1.SecretInterface

func (*FakeGlooV1) Settingses

func (c *FakeGlooV1) Settingses(namespace string) v1.SettingsInterface

func (*FakeGlooV1) UpstreamGroups

func (c *FakeGlooV1) UpstreamGroups(namespace string) v1.UpstreamGroupInterface

func (*FakeGlooV1) Upstreams

func (c *FakeGlooV1) Upstreams(namespace string) v1.UpstreamInterface

type FakeProxies

type FakeProxies struct {
	Fake *FakeGlooV1
	// contains filtered or unexported fields
}

FakeProxies implements ProxyInterface

func (*FakeProxies) Create

func (c *FakeProxies) Create(proxy *gloosoloiov1.Proxy) (result *gloosoloiov1.Proxy, err error)

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

func (*FakeProxies) Delete

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

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

func (*FakeProxies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeProxies) Get

func (c *FakeProxies) Get(name string, options v1.GetOptions) (result *gloosoloiov1.Proxy, err error)

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

func (*FakeProxies) List

func (c *FakeProxies) List(opts v1.ListOptions) (result *gloosoloiov1.ProxyList, err error)

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

func (*FakeProxies) Patch

func (c *FakeProxies) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *gloosoloiov1.Proxy, err error)

Patch applies the patch and returns the patched proxy.

func (*FakeProxies) Update

func (c *FakeProxies) Update(proxy *gloosoloiov1.Proxy) (result *gloosoloiov1.Proxy, err error)

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

func (*FakeProxies) UpdateStatus

func (c *FakeProxies) UpdateStatus(proxy *gloosoloiov1.Proxy) (*gloosoloiov1.Proxy, error)

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

func (*FakeProxies) Watch

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

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

type FakeSecrets

type FakeSecrets struct {
	Fake *FakeGlooV1
	// contains filtered or unexported fields
}

FakeSecrets implements SecretInterface

func (*FakeSecrets) Create

func (c *FakeSecrets) Create(secret *gloosoloiov1.Secret) (result *gloosoloiov1.Secret, err error)

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

func (*FakeSecrets) Delete

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

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

func (*FakeSecrets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSecrets) Get

func (c *FakeSecrets) Get(name string, options v1.GetOptions) (result *gloosoloiov1.Secret, err error)

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

func (*FakeSecrets) List

func (c *FakeSecrets) List(opts v1.ListOptions) (result *gloosoloiov1.SecretList, err error)

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

func (*FakeSecrets) Patch

func (c *FakeSecrets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *gloosoloiov1.Secret, err error)

Patch applies the patch and returns the patched secret.

func (*FakeSecrets) Update

func (c *FakeSecrets) Update(secret *gloosoloiov1.Secret) (result *gloosoloiov1.Secret, err error)

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

func (*FakeSecrets) Watch

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

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

type FakeSettingses

type FakeSettingses struct {
	Fake *FakeGlooV1
	// contains filtered or unexported fields
}

FakeSettingses implements SettingsInterface

func (*FakeSettingses) Create

func (c *FakeSettingses) Create(settings *gloosoloiov1.Settings) (result *gloosoloiov1.Settings, err error)

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

func (*FakeSettingses) Delete

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

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

func (*FakeSettingses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSettingses) Get

func (c *FakeSettingses) Get(name string, options v1.GetOptions) (result *gloosoloiov1.Settings, err error)

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

func (*FakeSettingses) List

func (c *FakeSettingses) List(opts v1.ListOptions) (result *gloosoloiov1.SettingsList, err error)

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

func (*FakeSettingses) Patch

func (c *FakeSettingses) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *gloosoloiov1.Settings, err error)

Patch applies the patch and returns the patched settings.

func (*FakeSettingses) Update

func (c *FakeSettingses) Update(settings *gloosoloiov1.Settings) (result *gloosoloiov1.Settings, err error)

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

func (*FakeSettingses) UpdateStatus

func (c *FakeSettingses) UpdateStatus(settings *gloosoloiov1.Settings) (*gloosoloiov1.Settings, error)

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

func (*FakeSettingses) Watch

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

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

type FakeUpstreamGroups

type FakeUpstreamGroups struct {
	Fake *FakeGlooV1
	// contains filtered or unexported fields
}

FakeUpstreamGroups implements UpstreamGroupInterface

func (*FakeUpstreamGroups) Create

func (c *FakeUpstreamGroups) Create(upstreamGroup *gloosoloiov1.UpstreamGroup) (result *gloosoloiov1.UpstreamGroup, err error)

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

func (*FakeUpstreamGroups) Delete

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

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

func (*FakeUpstreamGroups) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeUpstreamGroups) Get

func (c *FakeUpstreamGroups) Get(name string, options v1.GetOptions) (result *gloosoloiov1.UpstreamGroup, err error)

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

func (*FakeUpstreamGroups) List

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

func (*FakeUpstreamGroups) Patch

func (c *FakeUpstreamGroups) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *gloosoloiov1.UpstreamGroup, err error)

Patch applies the patch and returns the patched upstreamGroup.

func (*FakeUpstreamGroups) Update

func (c *FakeUpstreamGroups) Update(upstreamGroup *gloosoloiov1.UpstreamGroup) (result *gloosoloiov1.UpstreamGroup, err error)

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

func (*FakeUpstreamGroups) UpdateStatus

func (c *FakeUpstreamGroups) UpdateStatus(upstreamGroup *gloosoloiov1.UpstreamGroup) (*gloosoloiov1.UpstreamGroup, error)

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

func (*FakeUpstreamGroups) Watch

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

type FakeUpstreams

type FakeUpstreams struct {
	Fake *FakeGlooV1
	// contains filtered or unexported fields
}

FakeUpstreams implements UpstreamInterface

func (*FakeUpstreams) Create

func (c *FakeUpstreams) Create(upstream *gloosoloiov1.Upstream) (result *gloosoloiov1.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 *gloosoloiov1.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 *gloosoloiov1.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 *gloosoloiov1.Upstream, err error)

Patch applies the patch and returns the patched upstream.

func (*FakeUpstreams) Update

func (c *FakeUpstreams) Update(upstream *gloosoloiov1.Upstream) (result *gloosoloiov1.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) UpdateStatus

func (c *FakeUpstreams) UpdateStatus(upstream *gloosoloiov1.Upstream) (*gloosoloiov1.Upstream, error)

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

func (*FakeUpstreams) Watch

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

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

Jump to

Keyboard shortcuts

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