fake

package
v0.0.0-...-d24fd3e Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 13 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) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied oAuthAccessToken.

func (*FakeOAuthAccessTokens) Create

func (c *FakeOAuthAccessTokens) Create(ctx context.Context, oAuthAccessToken *oauthv1.OAuthAccessToken, opts v1.CreateOptions) (result *oauthv1.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(ctx context.Context, name string, opts 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(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeOAuthAccessTokens) Get

func (c *FakeOAuthAccessTokens) Get(ctx context.Context, name string, options v1.GetOptions) (result *oauthv1.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(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *oauthv1.OAuthAccessToken, err error)

Patch applies the patch and returns the patched oAuthAccessToken.

func (*FakeOAuthAccessTokens) Update

func (c *FakeOAuthAccessTokens) Update(ctx context.Context, oAuthAccessToken *oauthv1.OAuthAccessToken, opts v1.UpdateOptions) (result *oauthv1.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) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied oAuthAuthorizeToken.

func (*FakeOAuthAuthorizeTokens) Create

func (c *FakeOAuthAuthorizeTokens) Create(ctx context.Context, oAuthAuthorizeToken *oauthv1.OAuthAuthorizeToken, opts v1.CreateOptions) (result *oauthv1.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

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

func (*FakeOAuthAuthorizeTokens) DeleteCollection

func (c *FakeOAuthAuthorizeTokens) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeOAuthAuthorizeTokens) Get

func (c *FakeOAuthAuthorizeTokens) Get(ctx context.Context, name string, options v1.GetOptions) (result *oauthv1.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(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *oauthv1.OAuthAuthorizeToken, err error)

Patch applies the patch and returns the patched oAuthAuthorizeToken.

func (*FakeOAuthAuthorizeTokens) Update

func (c *FakeOAuthAuthorizeTokens) Update(ctx context.Context, oAuthAuthorizeToken *oauthv1.OAuthAuthorizeToken, opts v1.UpdateOptions) (result *oauthv1.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) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied oAuthClientAuthorization.

func (*FakeOAuthClientAuthorizations) Create

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

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

func (*FakeOAuthClientAuthorizations) DeleteCollection

func (c *FakeOAuthClientAuthorizations) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts 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(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *oauthv1.OAuthClientAuthorization, err error)

Patch applies the patch and returns the patched oAuthClientAuthorization.

func (*FakeOAuthClientAuthorizations) Update

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

Apply takes the given apply declarative configuration, applies it and returns the applied oAuthClient.

func (*FakeOAuthClients) Create

func (c *FakeOAuthClients) Create(ctx context.Context, oAuthClient *oauthv1.OAuthClient, opts v1.CreateOptions) (result *oauthv1.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(ctx context.Context, name string, opts 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(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeOAuthClients) Get

func (c *FakeOAuthClients) Get(ctx context.Context, name string, options v1.GetOptions) (result *oauthv1.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(ctx context.Context, opts v1.ListOptions) (result *oauthv1.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(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *oauthv1.OAuthClient, err error)

Patch applies the patch and returns the patched oAuthClient.

func (*FakeOAuthClients) Update

func (c *FakeOAuthClients) Update(ctx context.Context, oAuthClient *oauthv1.OAuthClient, opts v1.UpdateOptions) (result *oauthv1.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

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.

func (*FakeOauthV1) UserOAuthAccessTokens

func (c *FakeOauthV1) UserOAuthAccessTokens() v1.UserOAuthAccessTokenInterface

type FakeUserOAuthAccessTokens

type FakeUserOAuthAccessTokens struct {
	Fake *FakeOauthV1
}

FakeUserOAuthAccessTokens implements UserOAuthAccessTokenInterface

func (*FakeUserOAuthAccessTokens) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied userOAuthAccessToken.

func (*FakeUserOAuthAccessTokens) Create

func (c *FakeUserOAuthAccessTokens) Create(ctx context.Context, userOAuthAccessToken *oauthv1.UserOAuthAccessToken, opts v1.CreateOptions) (result *oauthv1.UserOAuthAccessToken, err error)

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

func (*FakeUserOAuthAccessTokens) Delete

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

func (*FakeUserOAuthAccessTokens) DeleteCollection

func (c *FakeUserOAuthAccessTokens) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeUserOAuthAccessTokens) Get

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

func (*FakeUserOAuthAccessTokens) List

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

func (*FakeUserOAuthAccessTokens) Patch

func (c *FakeUserOAuthAccessTokens) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *oauthv1.UserOAuthAccessToken, err error)

Patch applies the patch and returns the patched userOAuthAccessToken.

func (*FakeUserOAuthAccessTokens) Update

func (c *FakeUserOAuthAccessTokens) Update(ctx context.Context, userOAuthAccessToken *oauthv1.UserOAuthAccessToken, opts v1.UpdateOptions) (result *oauthv1.UserOAuthAccessToken, err error)

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

func (*FakeUserOAuthAccessTokens) Watch

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

Jump to

Keyboard shortcuts

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