fake

package
v0.0.0-...-0daa5d9 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: MIT Imports: 12 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 FakeIamV1

type FakeIamV1 struct {
	*testing.Fake
}

func (*FakeIamV1) JwtIssuers

func (c *FakeIamV1) JwtIssuers(namespace string) v1.JwtIssuerInterface

func (*FakeIamV1) Policies

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

func (*FakeIamV1) RESTClient

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

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

func (*FakeIamV1) Roles

func (c *FakeIamV1) Roles(namespace string) v1.RoleInterface

type FakeJwtIssuers

type FakeJwtIssuers struct {
	Fake *FakeIamV1
	// contains filtered or unexported fields
}

FakeJwtIssuers implements JwtIssuerInterface

func (*FakeJwtIssuers) Apply

func (c *FakeJwtIssuers) Apply(ctx context.Context, jwtIssuer *iamv1.JwtIssuerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.JwtIssuer, err error)

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

func (*FakeJwtIssuers) Create

func (c *FakeJwtIssuers) Create(ctx context.Context, jwtIssuer *v1.JwtIssuer, opts metav1.CreateOptions) (result *v1.JwtIssuer, err error)

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

func (*FakeJwtIssuers) Delete

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

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

func (*FakeJwtIssuers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeJwtIssuers) Get

func (c *FakeJwtIssuers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.JwtIssuer, err error)

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

func (*FakeJwtIssuers) List

func (c *FakeJwtIssuers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.JwtIssuerList, err error)

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

func (*FakeJwtIssuers) Patch

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

Patch applies the patch and returns the patched jwtIssuer.

func (*FakeJwtIssuers) Update

func (c *FakeJwtIssuers) Update(ctx context.Context, jwtIssuer *v1.JwtIssuer, opts metav1.UpdateOptions) (result *v1.JwtIssuer, err error)

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

func (*FakeJwtIssuers) Watch

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

type FakePolicies

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

FakePolicies implements PolicyInterface

func (*FakePolicies) Apply

func (c *FakePolicies) Apply(ctx context.Context, policy *iamv1.PolicyApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Policy, err error)

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

func (*FakePolicies) Create

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

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

func (*FakePolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePolicies) Get

func (c *FakePolicies) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.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 metav1.ListOptions) (result *v1.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 metav1.PatchOptions, subresources ...string) (result *v1.Policy, err error)

Patch applies the patch and returns the patched policy.

func (*FakePolicies) Update

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

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

type FakeRoles

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

FakeRoles implements RoleInterface

func (*FakeRoles) Apply

func (c *FakeRoles) Apply(ctx context.Context, role *iamv1.RoleApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Role, err error)

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

func (*FakeRoles) Create

func (c *FakeRoles) Create(ctx context.Context, role *v1.Role, opts metav1.CreateOptions) (result *v1.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 metav1.DeleteOptions) error

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

func (*FakeRoles) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRoles) Get

func (c *FakeRoles) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.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 metav1.ListOptions) (result *v1.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 metav1.PatchOptions, subresources ...string) (result *v1.Role, err error)

Patch applies the patch and returns the patched role.

func (*FakeRoles) Update

func (c *FakeRoles) Update(ctx context.Context, role *v1.Role, opts metav1.UpdateOptions) (result *v1.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

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