fake

package
Version: 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: 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 FakeOAuthAccessTokens

type FakeOAuthAccessTokens struct {
	Fake *FakeOauthV1
}

FakeOAuthAccessTokens implements OAuthAccessTokenInterface

func (*FakeOAuthAccessTokens) Create

func (c *FakeOAuthAccessTokens) Create(oAuthAccessToken *oauth_v1.OAuthAccessToken) (result *oauth_v1.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_v1.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

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_v1.OAuthAccessToken, err error)

Patch applies the patch and returns the patched oAuthAccessToken.

func (*FakeOAuthAccessTokens) Update

func (c *FakeOAuthAccessTokens) Update(oAuthAccessToken *oauth_v1.OAuthAccessToken) (result *oauth_v1.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 *FakeOauthV1
}

FakeOAuthAuthorizeTokens implements OAuthAuthorizeTokenInterface

func (*FakeOAuthAuthorizeTokens) Create

func (c *FakeOAuthAuthorizeTokens) Create(oAuthAuthorizeToken *oauth_v1.OAuthAuthorizeToken) (result *oauth_v1.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_v1.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_v1.OAuthAuthorizeToken, err error)

Patch applies the patch and returns the patched oAuthAuthorizeToken.

func (*FakeOAuthAuthorizeTokens) Update

func (c *FakeOAuthAuthorizeTokens) Update(oAuthAuthorizeToken *oauth_v1.OAuthAuthorizeToken) (result *oauth_v1.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 *FakeOauthV1
}

FakeOAuthClientAuthorizations implements OAuthClientAuthorizationInterface

func (*FakeOAuthClientAuthorizations) Create

func (c *FakeOAuthClientAuthorizations) Create(oAuthClientAuthorization *oauth_v1.OAuthClientAuthorization) (result *oauth_v1.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_v1.OAuthClientAuthorization, err error)

Patch applies the patch and returns the patched oAuthClientAuthorization.

func (*FakeOAuthClientAuthorizations) Update

func (c *FakeOAuthClientAuthorizations) Update(oAuthClientAuthorization *oauth_v1.OAuthClientAuthorization) (result *oauth_v1.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 *FakeOauthV1
}

FakeOAuthClients implements OAuthClientInterface

func (*FakeOAuthClients) Create

func (c *FakeOAuthClients) Create(oAuthClient *oauth_v1.OAuthClient) (result *oauth_v1.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_v1.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_v1.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_v1.OAuthClient, err error)

Patch applies the patch and returns the patched oAuthClient.

func (*FakeOAuthClients) Update

func (c *FakeOAuthClients) Update(oAuthClient *oauth_v1.OAuthClient) (result *oauth_v1.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 FakeOauthV1

type FakeOauthV1 struct {
	*testing.Fake
}

func (*FakeOauthV1) OAuthAccessTokens

func (c *FakeOauthV1) OAuthAccessTokens() v1.OAuthAccessTokenInterface

func (*FakeOauthV1) OAuthAuthorizeTokens

func (c *FakeOauthV1) OAuthAuthorizeTokens() v1.OAuthAuthorizeTokenInterface

func (*FakeOauthV1) OAuthClientAuthorizations

func (c *FakeOauthV1) OAuthClientAuthorizations() v1.OAuthClientAuthorizationInterface

func (*FakeOauthV1) OAuthClients

func (c *FakeOauthV1) OAuthClients() v1.OAuthClientInterface

func (*FakeOauthV1) RESTClient

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