fake

package
v3.10.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2018 License: Apache-2.0 Imports: 9 Imported by: 32

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 FakeOAuthAccessTokens

type FakeOAuthAccessTokens struct {
	Fake *FakeOauth
}

FakeOAuthAccessTokens implements OAuthAccessTokenInterface

func (*FakeOAuthAccessTokens) Create

func (c *FakeOAuthAccessTokens) Create(oAuthAccessToken *oauth.OAuthAccessToken) (result *oauth.OAuthAccessToken, err error)

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

func (*FakeOAuthAccessTokens) Delete

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

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

func (*FakeOAuthAccessTokens) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeOAuthAccessTokens) Get

func (c *FakeOAuthAccessTokens) Get(name string, options v1.GetOptions) (result *oauth.OAuthAccessToken, err error)

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

func (*FakeOAuthAccessTokens) List

func (c *FakeOAuthAccessTokens) List(opts v1.ListOptions) (result *oauth.OAuthAccessTokenList, err error)

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

func (*FakeOAuthAccessTokens) Patch

func (c *FakeOAuthAccessTokens) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *oauth.OAuthAccessToken, err error)

Patch applies the patch and returns the patched oAuthAccessToken.

func (*FakeOAuthAccessTokens) Update

func (c *FakeOAuthAccessTokens) Update(oAuthAccessToken *oauth.OAuthAccessToken) (result *oauth.OAuthAccessToken, err error)

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

func (*FakeOAuthAccessTokens) Watch

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

type FakeOAuthAuthorizeTokens

type FakeOAuthAuthorizeTokens struct {
	Fake *FakeOauth
}

FakeOAuthAuthorizeTokens implements OAuthAuthorizeTokenInterface

func (*FakeOAuthAuthorizeTokens) Create

func (c *FakeOAuthAuthorizeTokens) Create(oAuthAuthorizeToken *oauth.OAuthAuthorizeToken) (result *oauth.OAuthAuthorizeToken, err error)

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

func (*FakeOAuthAuthorizeTokens) Delete

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

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

func (*FakeOAuthAuthorizeTokens) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeOAuthAuthorizeTokens) Get

func (c *FakeOAuthAuthorizeTokens) Get(name string, options v1.GetOptions) (result *oauth.OAuthAuthorizeToken, err error)

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

func (*FakeOAuthAuthorizeTokens) List

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

func (*FakeOAuthAuthorizeTokens) Patch

func (c *FakeOAuthAuthorizeTokens) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *oauth.OAuthAuthorizeToken, err error)

Patch applies the patch and returns the patched oAuthAuthorizeToken.

func (*FakeOAuthAuthorizeTokens) Update

func (c *FakeOAuthAuthorizeTokens) Update(oAuthAuthorizeToken *oauth.OAuthAuthorizeToken) (result *oauth.OAuthAuthorizeToken, err error)

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

func (*FakeOAuthAuthorizeTokens) Watch

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

type FakeOAuthClientAuthorizations

type FakeOAuthClientAuthorizations struct {
	Fake *FakeOauth
}

FakeOAuthClientAuthorizations implements OAuthClientAuthorizationInterface

func (*FakeOAuthClientAuthorizations) Create

func (c *FakeOAuthClientAuthorizations) Create(oAuthClientAuthorization *oauth.OAuthClientAuthorization) (result *oauth.OAuthClientAuthorization, err error)

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

func (*FakeOAuthClientAuthorizations) Delete

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

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

func (*FakeOAuthClientAuthorizations) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeOAuthClientAuthorizations) Get

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

func (*FakeOAuthClientAuthorizations) List

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

func (*FakeOAuthClientAuthorizations) Patch

func (c *FakeOAuthClientAuthorizations) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *oauth.OAuthClientAuthorization, err error)

Patch applies the patch and returns the patched oAuthClientAuthorization.

func (*FakeOAuthClientAuthorizations) Update

func (c *FakeOAuthClientAuthorizations) Update(oAuthClientAuthorization *oauth.OAuthClientAuthorization) (result *oauth.OAuthClientAuthorization, err error)

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

func (*FakeOAuthClientAuthorizations) Watch

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

type FakeOAuthClients

type FakeOAuthClients struct {
	Fake *FakeOauth
}

FakeOAuthClients implements OAuthClientInterface

func (*FakeOAuthClients) Create

func (c *FakeOAuthClients) Create(oAuthClient *oauth.OAuthClient) (result *oauth.OAuthClient, err error)

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

func (*FakeOAuthClients) Delete

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

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

func (*FakeOAuthClients) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeOAuthClients) Get

func (c *FakeOAuthClients) Get(name string, options v1.GetOptions) (result *oauth.OAuthClient, err error)

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

func (*FakeOAuthClients) List

func (c *FakeOAuthClients) List(opts v1.ListOptions) (result *oauth.OAuthClientList, err error)

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

func (*FakeOAuthClients) Patch

func (c *FakeOAuthClients) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *oauth.OAuthClient, err error)

Patch applies the patch and returns the patched oAuthClient.

func (*FakeOAuthClients) Update

func (c *FakeOAuthClients) Update(oAuthClient *oauth.OAuthClient) (result *oauth.OAuthClient, err error)

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

func (*FakeOAuthClients) Watch

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

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

type FakeOauth

type FakeOauth struct {
	*testing.Fake
}

func (*FakeOauth) OAuthAccessTokens

func (c *FakeOauth) OAuthAccessTokens() internalversion.OAuthAccessTokenInterface

func (*FakeOauth) OAuthAuthorizeTokens

func (c *FakeOauth) OAuthAuthorizeTokens() internalversion.OAuthAuthorizeTokenInterface

func (*FakeOauth) OAuthClientAuthorizations

func (c *FakeOauth) OAuthClientAuthorizations() internalversion.OAuthClientAuthorizationInterface

func (*FakeOauth) OAuthClients

func (*FakeOauth) RESTClient

func (c *FakeOauth) 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