fake

package
v0.0.0-...-ecd0e23 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: Apache-2.0 Imports: 10 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 FakeAuthRealms

type FakeAuthRealms struct {
	Fake *FakeIdentityconfigV1alpha1
	// contains filtered or unexported fields
}

FakeAuthRealms implements AuthRealmInterface

func (*FakeAuthRealms) Create

func (c *FakeAuthRealms) Create(ctx context.Context, authRealm *v1alpha1.AuthRealm, opts v1.CreateOptions) (result *v1alpha1.AuthRealm, err error)

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

func (*FakeAuthRealms) Delete

func (c *FakeAuthRealms) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeAuthRealms) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAuthRealms) Get

func (c *FakeAuthRealms) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.AuthRealm, err error)

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

func (*FakeAuthRealms) List

func (c *FakeAuthRealms) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.AuthRealmList, err error)

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

func (*FakeAuthRealms) Patch

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

Patch applies the patch and returns the patched authRealm.

func (*FakeAuthRealms) Update

func (c *FakeAuthRealms) Update(ctx context.Context, authRealm *v1alpha1.AuthRealm, opts v1.UpdateOptions) (result *v1alpha1.AuthRealm, err error)

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

func (*FakeAuthRealms) UpdateStatus

func (c *FakeAuthRealms) UpdateStatus(ctx context.Context, authRealm *v1alpha1.AuthRealm, opts v1.UpdateOptions) (*v1alpha1.AuthRealm, error)

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

func (*FakeAuthRealms) Watch

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

type FakeClusterOAuths

type FakeClusterOAuths struct {
	Fake *FakeIdentityconfigV1alpha1
	// contains filtered or unexported fields
}

FakeClusterOAuths implements ClusterOAuthInterface

func (*FakeClusterOAuths) Create

func (c *FakeClusterOAuths) Create(ctx context.Context, clusterOAuth *v1alpha1.ClusterOAuth, opts v1.CreateOptions) (result *v1alpha1.ClusterOAuth, err error)

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

func (*FakeClusterOAuths) Delete

func (c *FakeClusterOAuths) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeClusterOAuths) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterOAuths) Get

func (c *FakeClusterOAuths) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ClusterOAuth, err error)

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

func (*FakeClusterOAuths) List

func (c *FakeClusterOAuths) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ClusterOAuthList, err error)

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

func (*FakeClusterOAuths) Patch

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

Patch applies the patch and returns the patched clusterOAuth.

func (*FakeClusterOAuths) Update

func (c *FakeClusterOAuths) Update(ctx context.Context, clusterOAuth *v1alpha1.ClusterOAuth, opts v1.UpdateOptions) (result *v1alpha1.ClusterOAuth, err error)

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

func (*FakeClusterOAuths) UpdateStatus

func (c *FakeClusterOAuths) UpdateStatus(ctx context.Context, clusterOAuth *v1alpha1.ClusterOAuth, opts v1.UpdateOptions) (*v1alpha1.ClusterOAuth, error)

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

func (*FakeClusterOAuths) Watch

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

type FakeIDPConfigs

type FakeIDPConfigs struct {
	Fake *FakeIdentityconfigV1alpha1
	// contains filtered or unexported fields
}

FakeIDPConfigs implements IDPConfigInterface

func (*FakeIDPConfigs) Create

func (c *FakeIDPConfigs) Create(ctx context.Context, iDPConfig *v1alpha1.IDPConfig, opts v1.CreateOptions) (result *v1alpha1.IDPConfig, err error)

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

func (*FakeIDPConfigs) Delete

func (c *FakeIDPConfigs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeIDPConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeIDPConfigs) Get

func (c *FakeIDPConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.IDPConfig, err error)

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

func (*FakeIDPConfigs) List

func (c *FakeIDPConfigs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.IDPConfigList, err error)

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

func (*FakeIDPConfigs) Patch

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

Patch applies the patch and returns the patched iDPConfig.

func (*FakeIDPConfigs) Update

func (c *FakeIDPConfigs) Update(ctx context.Context, iDPConfig *v1alpha1.IDPConfig, opts v1.UpdateOptions) (result *v1alpha1.IDPConfig, err error)

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

func (*FakeIDPConfigs) UpdateStatus

func (c *FakeIDPConfigs) UpdateStatus(ctx context.Context, iDPConfig *v1alpha1.IDPConfig, opts v1.UpdateOptions) (*v1alpha1.IDPConfig, error)

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

func (*FakeIDPConfigs) Watch

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

type FakeIdentityconfigV1alpha1

type FakeIdentityconfigV1alpha1 struct {
	*testing.Fake
}

func (*FakeIdentityconfigV1alpha1) AuthRealms

func (*FakeIdentityconfigV1alpha1) ClusterOAuths

func (*FakeIdentityconfigV1alpha1) IDPConfigs

func (*FakeIdentityconfigV1alpha1) RESTClient

func (c *FakeIdentityconfigV1alpha1) RESTClient() rest.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

func (*FakeIdentityconfigV1alpha1) Strategies

type FakeStrategies

type FakeStrategies struct {
	Fake *FakeIdentityconfigV1alpha1
	// contains filtered or unexported fields
}

FakeStrategies implements StrategyInterface

func (*FakeStrategies) Create

func (c *FakeStrategies) Create(ctx context.Context, strategy *v1alpha1.Strategy, opts v1.CreateOptions) (result *v1alpha1.Strategy, err error)

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

func (*FakeStrategies) Delete

func (c *FakeStrategies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeStrategies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeStrategies) Get

func (c *FakeStrategies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Strategy, err error)

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

func (*FakeStrategies) List

func (c *FakeStrategies) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.StrategyList, err error)

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

func (*FakeStrategies) Patch

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

Patch applies the patch and returns the patched strategy.

func (*FakeStrategies) Update

func (c *FakeStrategies) Update(ctx context.Context, strategy *v1alpha1.Strategy, opts v1.UpdateOptions) (result *v1alpha1.Strategy, err error)

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

func (*FakeStrategies) UpdateStatus

func (c *FakeStrategies) UpdateStatus(ctx context.Context, strategy *v1alpha1.Strategy, opts v1.UpdateOptions) (*v1alpha1.Strategy, error)

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

func (*FakeStrategies) Watch

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

Jump to

Keyboard shortcuts

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