fake

package
v3.9.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2017 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 added in v3.7.0

type FakeOAuthAccessTokens struct {
	Fake *FakeOauthV1
}

FakeOAuthAccessTokens implements OAuthAccessTokenInterface

func (*FakeOAuthAccessTokens) Create added in v3.7.0

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 added in v3.7.0

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 added in v3.7.0

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

DeleteCollection deletes a collection of objects.

func (*FakeOAuthAccessTokens) Get added in v3.7.0

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 added in v3.7.0

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

func (*FakeOAuthAccessTokens) Patch added in v3.7.0

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 added in v3.7.0

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 added in v3.7.0

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

type FakeOAuthAuthorizeTokens added in v3.7.0

type FakeOAuthAuthorizeTokens struct {
	Fake *FakeOauthV1
}

FakeOAuthAuthorizeTokens implements OAuthAuthorizeTokenInterface

func (*FakeOAuthAuthorizeTokens) Create added in v3.7.0

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 added in v3.7.0

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 added in v3.7.0

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

DeleteCollection deletes a collection of objects.

func (*FakeOAuthAuthorizeTokens) Get added in v3.7.0

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 added in v3.7.0

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

func (*FakeOAuthAuthorizeTokens) Patch added in v3.7.0

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 added in v3.7.0

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 added in v3.7.0

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

type FakeOAuthClientAuthorizations added in v3.7.0

type FakeOAuthClientAuthorizations struct {
	Fake *FakeOauthV1
}

FakeOAuthClientAuthorizations implements OAuthClientAuthorizationInterface

func (*FakeOAuthClientAuthorizations) Create added in v3.7.0

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 added in v3.7.0

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 added in v3.7.0

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

DeleteCollection deletes a collection of objects.

func (*FakeOAuthClientAuthorizations) Get added in v3.7.0

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

func (*FakeOAuthClientAuthorizations) List added in v3.7.0

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

func (*FakeOAuthClientAuthorizations) Patch added in v3.7.0

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 added in v3.7.0

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 added in v3.7.0

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 added in v3.7.0

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

func (*FakeOauthV1) OAuthAuthorizeTokens added in v3.7.0

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

func (*FakeOauthV1) OAuthClientAuthorizations added in v3.7.0

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