fake

package
v1.9.1-beta.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more 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 FakeAuthz

type FakeAuthz struct {
	*testing.Fake
}

func (*FakeAuthz) ConfigMaps

func (*FakeAuthz) MultiClusterRoleBindings

func (c *FakeAuthz) MultiClusterRoleBindings(namespace string) internalversion.MultiClusterRoleBindingInterface

func (*FakeAuthz) Policies

func (c *FakeAuthz) Policies(namespace string) internalversion.PolicyInterface

func (*FakeAuthz) RESTClient

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

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

func (*FakeAuthz) Roles

func (c *FakeAuthz) Roles(namespace string) internalversion.RoleInterface

type FakeConfigMaps

type FakeConfigMaps struct {
	Fake *FakeAuthz
}

FakeConfigMaps implements ConfigMapInterface

func (*FakeConfigMaps) Create

func (c *FakeConfigMaps) Create(ctx context.Context, configMap *authz.ConfigMap, opts v1.CreateOptions) (result *authz.ConfigMap, err error)

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

func (*FakeConfigMaps) Delete

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

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

func (*FakeConfigMaps) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeConfigMaps) Get

func (c *FakeConfigMaps) Get(ctx context.Context, name string, options v1.GetOptions) (result *authz.ConfigMap, err error)

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

func (*FakeConfigMaps) List

func (c *FakeConfigMaps) List(ctx context.Context, opts v1.ListOptions) (result *authz.ConfigMapList, err error)

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

func (*FakeConfigMaps) Patch

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

Patch applies the patch and returns the patched configMap.

func (*FakeConfigMaps) Update

func (c *FakeConfigMaps) Update(ctx context.Context, configMap *authz.ConfigMap, opts v1.UpdateOptions) (result *authz.ConfigMap, err error)

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

func (*FakeConfigMaps) Watch

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

type FakeMultiClusterRoleBindings

type FakeMultiClusterRoleBindings struct {
	Fake *FakeAuthz
	// contains filtered or unexported fields
}

FakeMultiClusterRoleBindings implements MultiClusterRoleBindingInterface

func (*FakeMultiClusterRoleBindings) Create

func (c *FakeMultiClusterRoleBindings) Create(ctx context.Context, multiClusterRoleBinding *authz.MultiClusterRoleBinding, opts v1.CreateOptions) (result *authz.MultiClusterRoleBinding, err error)

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

func (*FakeMultiClusterRoleBindings) Delete

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

func (*FakeMultiClusterRoleBindings) Get

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

func (*FakeMultiClusterRoleBindings) List

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

func (*FakeMultiClusterRoleBindings) Patch

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

Patch applies the patch and returns the patched multiClusterRoleBinding.

func (*FakeMultiClusterRoleBindings) Update

func (c *FakeMultiClusterRoleBindings) Update(ctx context.Context, multiClusterRoleBinding *authz.MultiClusterRoleBinding, opts v1.UpdateOptions) (result *authz.MultiClusterRoleBinding, err error)

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

func (*FakeMultiClusterRoleBindings) UpdateStatus

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

func (*FakeMultiClusterRoleBindings) Watch

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

type FakePolicies

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

FakePolicies implements PolicyInterface

func (*FakePolicies) Create

func (c *FakePolicies) Create(ctx context.Context, policy *authz.Policy, opts v1.CreateOptions) (result *authz.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(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakePolicies) Get

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

Patch applies the patch and returns the patched policy.

func (*FakePolicies) Update

func (c *FakePolicies) Update(ctx context.Context, policy *authz.Policy, opts v1.UpdateOptions) (result *authz.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(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakeRoles

type FakeRoles struct {
	Fake *FakeAuthz
	// contains filtered or unexported fields
}

FakeRoles implements RoleInterface

func (*FakeRoles) Create

func (c *FakeRoles) Create(ctx context.Context, role *authz.Role, opts v1.CreateOptions) (result *authz.Role, err error)

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

func (*FakeRoles) Delete

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

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

func (*FakeRoles) Get

func (c *FakeRoles) Get(ctx context.Context, name string, options v1.GetOptions) (result *authz.Role, err error)

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

func (*FakeRoles) List

func (c *FakeRoles) List(ctx context.Context, opts v1.ListOptions) (result *authz.RoleList, err error)

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

func (*FakeRoles) Patch

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

Patch applies the patch and returns the patched role.

func (*FakeRoles) Update

func (c *FakeRoles) Update(ctx context.Context, role *authz.Role, opts v1.UpdateOptions) (result *authz.Role, err error)

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

func (*FakeRoles) Watch

func (c *FakeRoles) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

Jump to

Keyboard shortcuts

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