fake

package
v0.0.0-...-200b26a Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 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 FakeAppidV1

type FakeAppidV1 struct {
	*testing.Fake
}

func (*FakeAppidV1) JwtConfigs

func (c *FakeAppidV1) JwtConfigs(namespace string) v1.JwtConfigInterface

func (*FakeAppidV1) OidcConfigs

func (c *FakeAppidV1) OidcConfigs(namespace string) v1.OidcConfigInterface

func (*FakeAppidV1) Policies

func (c *FakeAppidV1) Policies(namespace string) v1.PolicyInterface

func (*FakeAppidV1) RESTClient

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

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

type FakeJwtConfigs

type FakeJwtConfigs struct {
	Fake *FakeAppidV1
	// contains filtered or unexported fields
}

FakeJwtConfigs implements JwtConfigInterface

func (*FakeJwtConfigs) Create

func (c *FakeJwtConfigs) Create(jwtConfig *policiesv1.JwtConfig) (result *policiesv1.JwtConfig, err error)

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

func (*FakeJwtConfigs) Delete

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

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

func (*FakeJwtConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeJwtConfigs) Get

func (c *FakeJwtConfigs) Get(name string, options v1.GetOptions) (result *policiesv1.JwtConfig, err error)

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

func (*FakeJwtConfigs) List

func (c *FakeJwtConfigs) List(opts v1.ListOptions) (result *policiesv1.JwtConfigList, err error)

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

func (*FakeJwtConfigs) Patch

func (c *FakeJwtConfigs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *policiesv1.JwtConfig, err error)

Patch applies the patch and returns the patched jwtConfig.

func (*FakeJwtConfigs) Update

func (c *FakeJwtConfigs) Update(jwtConfig *policiesv1.JwtConfig) (result *policiesv1.JwtConfig, err error)

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

func (*FakeJwtConfigs) Watch

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

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

type FakeOidcConfigs

type FakeOidcConfigs struct {
	Fake *FakeAppidV1
	// contains filtered or unexported fields
}

FakeOidcConfigs implements OidcConfigInterface

func (*FakeOidcConfigs) Create

func (c *FakeOidcConfigs) Create(oidcConfig *policiesv1.OidcConfig) (result *policiesv1.OidcConfig, err error)

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

func (*FakeOidcConfigs) Delete

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

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

func (*FakeOidcConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeOidcConfigs) Get

func (c *FakeOidcConfigs) Get(name string, options v1.GetOptions) (result *policiesv1.OidcConfig, err error)

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

func (*FakeOidcConfigs) List

func (c *FakeOidcConfigs) List(opts v1.ListOptions) (result *policiesv1.OidcConfigList, err error)

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

func (*FakeOidcConfigs) Patch

func (c *FakeOidcConfigs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *policiesv1.OidcConfig, err error)

Patch applies the patch and returns the patched oidcConfig.

func (*FakeOidcConfigs) Update

func (c *FakeOidcConfigs) Update(oidcConfig *policiesv1.OidcConfig) (result *policiesv1.OidcConfig, err error)

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

func (*FakeOidcConfigs) Watch

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

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

type FakePolicies

type FakePolicies struct {
	Fake *FakeAppidV1
	// contains filtered or unexported fields
}

FakePolicies implements PolicyInterface

func (*FakePolicies) Create

func (c *FakePolicies) Create(policy *policiesv1.Policy) (result *policiesv1.Policy, err error)

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

func (*FakePolicies) Delete

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

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

func (*FakePolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePolicies) Get

func (c *FakePolicies) Get(name string, options v1.GetOptions) (result *policiesv1.Policy, err error)

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

func (*FakePolicies) List

func (c *FakePolicies) List(opts v1.ListOptions) (result *policiesv1.PolicyList, err error)

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

func (*FakePolicies) Patch

func (c *FakePolicies) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *policiesv1.Policy, err error)

Patch applies the patch and returns the patched policy.

func (*FakePolicies) Update

func (c *FakePolicies) Update(policy *policiesv1.Policy) (result *policiesv1.Policy, err error)

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

func (*FakePolicies) Watch

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

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

Jump to

Keyboard shortcuts

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