fake

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 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 FakeAPIKeys

type FakeAPIKeys struct {
	Fake *FakeAuth
}

FakeAPIKeys implements APIKeyInterface

func (*FakeAPIKeys) Create

func (c *FakeAPIKeys) Create(ctx context.Context, aPIKey *auth.APIKey, opts v1.CreateOptions) (result *auth.APIKey, err error)

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

func (*FakeAPIKeys) Delete

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

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

func (*FakeAPIKeys) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAPIKeys) Get

func (c *FakeAPIKeys) Get(ctx context.Context, name string, options v1.GetOptions) (result *auth.APIKey, err error)

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

func (*FakeAPIKeys) List

func (c *FakeAPIKeys) List(ctx context.Context, opts v1.ListOptions) (result *auth.APIKeyList, err error)

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

func (*FakeAPIKeys) Patch

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

Patch applies the patch and returns the patched aPIKey.

func (*FakeAPIKeys) Update

func (c *FakeAPIKeys) Update(ctx context.Context, aPIKey *auth.APIKey, opts v1.UpdateOptions) (result *auth.APIKey, err error)

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

func (*FakeAPIKeys) UpdateStatus

func (c *FakeAPIKeys) UpdateStatus(ctx context.Context, aPIKey *auth.APIKey, opts v1.UpdateOptions) (*auth.APIKey, error)

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

func (*FakeAPIKeys) Watch

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

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

type FakeAPISigningKeys

type FakeAPISigningKeys struct {
	Fake *FakeAuth
}

FakeAPISigningKeys implements APISigningKeyInterface

func (*FakeAPISigningKeys) Create

func (c *FakeAPISigningKeys) Create(ctx context.Context, aPISigningKey *auth.APISigningKey, opts v1.CreateOptions) (result *auth.APISigningKey, err error)

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

func (*FakeAPISigningKeys) Delete

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

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

func (*FakeAPISigningKeys) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAPISigningKeys) Get

func (c *FakeAPISigningKeys) Get(ctx context.Context, name string, options v1.GetOptions) (result *auth.APISigningKey, err error)

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

func (*FakeAPISigningKeys) List

func (c *FakeAPISigningKeys) List(ctx context.Context, opts v1.ListOptions) (result *auth.APISigningKeyList, err error)

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

func (*FakeAPISigningKeys) Patch

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

Patch applies the patch and returns the patched aPISigningKey.

func (*FakeAPISigningKeys) Update

func (c *FakeAPISigningKeys) Update(ctx context.Context, aPISigningKey *auth.APISigningKey, opts v1.UpdateOptions) (result *auth.APISigningKey, err error)

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

func (*FakeAPISigningKeys) Watch

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

type FakeAuth

type FakeAuth struct {
	*testing.Fake
}

func (*FakeAuth) APIKeys

func (*FakeAuth) APISigningKeys

func (c *FakeAuth) APISigningKeys() internalversion.APISigningKeyInterface

func (*FakeAuth) Categories

func (c *FakeAuth) Categories() internalversion.CategoryInterface

func (*FakeAuth) Clients

func (*FakeAuth) ConfigMaps

func (*FakeAuth) CustomPolicyBindings added in v1.4.0

func (c *FakeAuth) CustomPolicyBindings(namespace string) internalversion.CustomPolicyBindingInterface

func (*FakeAuth) Groups

func (*FakeAuth) IdentityProviders

func (c *FakeAuth) IdentityProviders() internalversion.IdentityProviderInterface

func (*FakeAuth) LocalGroups

func (c *FakeAuth) LocalGroups() internalversion.LocalGroupInterface

func (*FakeAuth) LocalIdentities

func (c *FakeAuth) LocalIdentities() internalversion.LocalIdentityInterface

func (*FakeAuth) Policies

func (*FakeAuth) ProjectPolicyBindings added in v1.3.1

func (c *FakeAuth) ProjectPolicyBindings() internalversion.ProjectPolicyBindingInterface

func (*FakeAuth) Projects added in v1.3.1

func (*FakeAuth) RESTClient

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

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

func (*FakeAuth) Roles

func (*FakeAuth) Rules

func (*FakeAuth) Users

type FakeCategories

type FakeCategories struct {
	Fake *FakeAuth
}

FakeCategories implements CategoryInterface

func (*FakeCategories) Create

func (c *FakeCategories) Create(ctx context.Context, category *auth.Category, opts v1.CreateOptions) (result *auth.Category, err error)

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

func (*FakeCategories) Delete

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

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

func (*FakeCategories) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCategories) Get

func (c *FakeCategories) Get(ctx context.Context, name string, options v1.GetOptions) (result *auth.Category, err error)

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

func (*FakeCategories) List

func (c *FakeCategories) List(ctx context.Context, opts v1.ListOptions) (result *auth.CategoryList, err error)

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

func (*FakeCategories) Patch

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

Patch applies the patch and returns the patched category.

func (*FakeCategories) Update

func (c *FakeCategories) Update(ctx context.Context, category *auth.Category, opts v1.UpdateOptions) (result *auth.Category, err error)

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

func (*FakeCategories) Watch

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

type FakeClients

type FakeClients struct {
	Fake *FakeAuth
}

FakeClients implements ClientInterface

func (*FakeClients) Create

func (c *FakeClients) Create(ctx context.Context, client *auth.Client, opts v1.CreateOptions) (result *auth.Client, err error)

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

func (*FakeClients) Delete

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

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

func (*FakeClients) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClients) Get

func (c *FakeClients) Get(ctx context.Context, name string, options v1.GetOptions) (result *auth.Client, err error)

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

func (*FakeClients) List

func (c *FakeClients) List(ctx context.Context, opts v1.ListOptions) (result *auth.ClientList, err error)

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

func (*FakeClients) Patch

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

Patch applies the patch and returns the patched client.

func (*FakeClients) Update

func (c *FakeClients) Update(ctx context.Context, client *auth.Client, opts v1.UpdateOptions) (result *auth.Client, err error)

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

func (*FakeClients) Watch

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

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

type FakeConfigMaps

type FakeConfigMaps struct {
	Fake *FakeAuth
}

FakeConfigMaps implements ConfigMapInterface

func (*FakeConfigMaps) Create

func (c *FakeConfigMaps) Create(ctx context.Context, configMap *auth.ConfigMap, opts v1.CreateOptions) (result *auth.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) Get

func (c *FakeConfigMaps) Get(ctx context.Context, name string, options v1.GetOptions) (result *auth.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 *auth.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 *auth.ConfigMap, err error)

Patch applies the patch and returns the patched configMap.

func (*FakeConfigMaps) Update

func (c *FakeConfigMaps) Update(ctx context.Context, configMap *auth.ConfigMap, opts v1.UpdateOptions) (result *auth.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 FakeCustomPolicyBindings added in v1.4.0

type FakeCustomPolicyBindings struct {
	Fake *FakeAuth
	// contains filtered or unexported fields
}

FakeCustomPolicyBindings implements CustomPolicyBindingInterface

func (*FakeCustomPolicyBindings) Create added in v1.4.0

func (c *FakeCustomPolicyBindings) Create(ctx context.Context, customPolicyBinding *auth.CustomPolicyBinding, opts v1.CreateOptions) (result *auth.CustomPolicyBinding, err error)

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

func (*FakeCustomPolicyBindings) Delete added in v1.4.0

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

func (*FakeCustomPolicyBindings) DeleteCollection added in v1.4.0

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

DeleteCollection deletes a collection of objects.

func (*FakeCustomPolicyBindings) Get added in v1.4.0

func (c *FakeCustomPolicyBindings) Get(ctx context.Context, name string, options v1.GetOptions) (result *auth.CustomPolicyBinding, err error)

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

func (*FakeCustomPolicyBindings) List added in v1.4.0

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

func (*FakeCustomPolicyBindings) Patch added in v1.4.0

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

Patch applies the patch and returns the patched customPolicyBinding.

func (*FakeCustomPolicyBindings) Update added in v1.4.0

func (c *FakeCustomPolicyBindings) Update(ctx context.Context, customPolicyBinding *auth.CustomPolicyBinding, opts v1.UpdateOptions) (result *auth.CustomPolicyBinding, err error)

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

func (*FakeCustomPolicyBindings) UpdateStatus added in v1.4.0

func (c *FakeCustomPolicyBindings) UpdateStatus(ctx context.Context, customPolicyBinding *auth.CustomPolicyBinding, opts v1.UpdateOptions) (*auth.CustomPolicyBinding, error)

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

func (*FakeCustomPolicyBindings) Watch added in v1.4.0

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

type FakeGroups

type FakeGroups struct {
	Fake *FakeAuth
}

FakeGroups implements GroupInterface

func (*FakeGroups) Create

func (c *FakeGroups) Create(ctx context.Context, group *auth.Group, opts v1.CreateOptions) (result *auth.Group, err error)

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

func (*FakeGroups) Delete

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

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

func (*FakeGroups) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGroups) Get

func (c *FakeGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *auth.Group, err error)

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

func (*FakeGroups) List

func (c *FakeGroups) List(ctx context.Context, opts v1.ListOptions) (result *auth.GroupList, err error)

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

func (*FakeGroups) Patch

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

Patch applies the patch and returns the patched group.

func (*FakeGroups) Update

func (c *FakeGroups) Update(ctx context.Context, group *auth.Group, opts v1.UpdateOptions) (result *auth.Group, err error)

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

func (*FakeGroups) UpdateStatus

func (c *FakeGroups) UpdateStatus(ctx context.Context, group *auth.Group, opts v1.UpdateOptions) (*auth.Group, error)

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

func (*FakeGroups) Watch

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

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

type FakeIdentityProviders

type FakeIdentityProviders struct {
	Fake *FakeAuth
}

FakeIdentityProviders implements IdentityProviderInterface

func (*FakeIdentityProviders) Create

func (c *FakeIdentityProviders) Create(ctx context.Context, identityProvider *auth.IdentityProvider, opts v1.CreateOptions) (result *auth.IdentityProvider, err error)

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

func (*FakeIdentityProviders) Delete

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

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

func (*FakeIdentityProviders) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeIdentityProviders) Get

func (c *FakeIdentityProviders) Get(ctx context.Context, name string, options v1.GetOptions) (result *auth.IdentityProvider, err error)

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

func (*FakeIdentityProviders) List

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

func (*FakeIdentityProviders) Patch

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

Patch applies the patch and returns the patched identityProvider.

func (*FakeIdentityProviders) Update

func (c *FakeIdentityProviders) Update(ctx context.Context, identityProvider *auth.IdentityProvider, opts v1.UpdateOptions) (result *auth.IdentityProvider, err error)

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

func (*FakeIdentityProviders) Watch

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

type FakeLocalGroups

type FakeLocalGroups struct {
	Fake *FakeAuth
}

FakeLocalGroups implements LocalGroupInterface

func (*FakeLocalGroups) Create

func (c *FakeLocalGroups) Create(ctx context.Context, localGroup *auth.LocalGroup, opts v1.CreateOptions) (result *auth.LocalGroup, err error)

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

func (*FakeLocalGroups) Delete

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

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

func (*FakeLocalGroups) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeLocalGroups) Get

func (c *FakeLocalGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *auth.LocalGroup, err error)

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

func (*FakeLocalGroups) List

func (c *FakeLocalGroups) List(ctx context.Context, opts v1.ListOptions) (result *auth.LocalGroupList, err error)

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

func (*FakeLocalGroups) Patch

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

Patch applies the patch and returns the patched localGroup.

func (*FakeLocalGroups) Update

func (c *FakeLocalGroups) Update(ctx context.Context, localGroup *auth.LocalGroup, opts v1.UpdateOptions) (result *auth.LocalGroup, err error)

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

func (*FakeLocalGroups) UpdateStatus

func (c *FakeLocalGroups) UpdateStatus(ctx context.Context, localGroup *auth.LocalGroup, opts v1.UpdateOptions) (*auth.LocalGroup, error)

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

func (*FakeLocalGroups) Watch

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

type FakeLocalIdentities

type FakeLocalIdentities struct {
	Fake *FakeAuth
}

FakeLocalIdentities implements LocalIdentityInterface

func (*FakeLocalIdentities) Create

func (c *FakeLocalIdentities) Create(ctx context.Context, localIdentity *auth.LocalIdentity, opts v1.CreateOptions) (result *auth.LocalIdentity, err error)

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

func (*FakeLocalIdentities) Delete

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

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

func (*FakeLocalIdentities) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeLocalIdentities) Get

func (c *FakeLocalIdentities) Get(ctx context.Context, name string, options v1.GetOptions) (result *auth.LocalIdentity, err error)

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

func (*FakeLocalIdentities) List

func (c *FakeLocalIdentities) List(ctx context.Context, opts v1.ListOptions) (result *auth.LocalIdentityList, err error)

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

func (*FakeLocalIdentities) Patch

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

Patch applies the patch and returns the patched localIdentity.

func (*FakeLocalIdentities) Update

func (c *FakeLocalIdentities) Update(ctx context.Context, localIdentity *auth.LocalIdentity, opts v1.UpdateOptions) (result *auth.LocalIdentity, err error)

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

func (*FakeLocalIdentities) UpdateStatus

func (c *FakeLocalIdentities) UpdateStatus(ctx context.Context, localIdentity *auth.LocalIdentity, opts v1.UpdateOptions) (*auth.LocalIdentity, error)

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

func (*FakeLocalIdentities) Watch

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

type FakePolicies

type FakePolicies struct {
	Fake *FakeAuth
}

FakePolicies implements PolicyInterface

func (*FakePolicies) Create

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

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

DeleteCollection deletes a collection of objects.

func (*FakePolicies) Get

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

Patch applies the patch and returns the patched policy.

func (*FakePolicies) Update

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

func (c *FakePolicies) UpdateStatus(ctx context.Context, policy *auth.Policy, opts v1.UpdateOptions) (*auth.Policy, error)

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

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 FakeProjectPolicyBindings added in v1.3.1

type FakeProjectPolicyBindings struct {
	Fake *FakeAuth
}

FakeProjectPolicyBindings implements ProjectPolicyBindingInterface

func (*FakeProjectPolicyBindings) Create added in v1.3.1

func (c *FakeProjectPolicyBindings) Create(ctx context.Context, projectPolicyBinding *auth.ProjectPolicyBinding, opts v1.CreateOptions) (result *auth.ProjectPolicyBinding, err error)

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

func (*FakeProjectPolicyBindings) Delete added in v1.3.1

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

func (*FakeProjectPolicyBindings) DeleteCollection added in v1.3.1

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

DeleteCollection deletes a collection of objects.

func (*FakeProjectPolicyBindings) Get added in v1.3.1

func (c *FakeProjectPolicyBindings) Get(ctx context.Context, name string, options v1.GetOptions) (result *auth.ProjectPolicyBinding, err error)

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

func (*FakeProjectPolicyBindings) List added in v1.3.1

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

func (*FakeProjectPolicyBindings) Patch added in v1.3.1

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

Patch applies the patch and returns the patched projectPolicyBinding.

func (*FakeProjectPolicyBindings) Update added in v1.3.1

func (c *FakeProjectPolicyBindings) Update(ctx context.Context, projectPolicyBinding *auth.ProjectPolicyBinding, opts v1.UpdateOptions) (result *auth.ProjectPolicyBinding, err error)

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

func (*FakeProjectPolicyBindings) UpdateStatus added in v1.3.1

func (c *FakeProjectPolicyBindings) UpdateStatus(ctx context.Context, projectPolicyBinding *auth.ProjectPolicyBinding, opts v1.UpdateOptions) (*auth.ProjectPolicyBinding, error)

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

func (*FakeProjectPolicyBindings) Watch added in v1.3.1

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

type FakeProjects added in v1.3.1

type FakeProjects struct {
	Fake *FakeAuth
}

FakeProjects implements ProjectInterface

func (*FakeProjects) Create added in v1.3.1

func (c *FakeProjects) Create(ctx context.Context, project *auth.Project, opts v1.CreateOptions) (result *auth.Project, err error)

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

func (*FakeProjects) Delete added in v1.3.1

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

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

func (*FakeProjects) DeleteCollection added in v1.3.1

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

DeleteCollection deletes a collection of objects.

func (*FakeProjects) Get added in v1.3.1

func (c *FakeProjects) Get(ctx context.Context, name string, options v1.GetOptions) (result *auth.Project, err error)

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

func (*FakeProjects) List added in v1.3.1

func (c *FakeProjects) List(ctx context.Context, opts v1.ListOptions) (result *auth.ProjectList, err error)

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

func (*FakeProjects) Patch added in v1.3.1

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

Patch applies the patch and returns the patched project.

func (*FakeProjects) Update added in v1.3.1

func (c *FakeProjects) Update(ctx context.Context, project *auth.Project, opts v1.UpdateOptions) (result *auth.Project, err error)

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

func (*FakeProjects) Watch added in v1.3.1

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

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

type FakeRoles

type FakeRoles struct {
	Fake *FakeAuth
}

FakeRoles implements RoleInterface

func (*FakeRoles) Create

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

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

DeleteCollection deletes a collection of objects.

func (*FakeRoles) Get

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

Patch applies the patch and returns the patched role.

func (*FakeRoles) Update

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

func (c *FakeRoles) UpdateStatus(ctx context.Context, role *auth.Role, opts v1.UpdateOptions) (*auth.Role, error)

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

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.

type FakeRules

type FakeRules struct {
	Fake *FakeAuth
}

FakeRules implements RuleInterface

func (*FakeRules) Create

func (c *FakeRules) Create(ctx context.Context, rule *auth.Rule, opts v1.CreateOptions) (result *auth.Rule, err error)

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

func (*FakeRules) Delete

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

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

func (*FakeRules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRules) Get

func (c *FakeRules) Get(ctx context.Context, name string, options v1.GetOptions) (result *auth.Rule, err error)

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

func (*FakeRules) List

func (c *FakeRules) List(ctx context.Context, opts v1.ListOptions) (result *auth.RuleList, err error)

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

func (*FakeRules) Patch

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

Patch applies the patch and returns the patched rule.

func (*FakeRules) Update

func (c *FakeRules) Update(ctx context.Context, rule *auth.Rule, opts v1.UpdateOptions) (result *auth.Rule, err error)

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

func (*FakeRules) Watch

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

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

type FakeUsers

type FakeUsers struct {
	Fake *FakeAuth
}

FakeUsers implements UserInterface

func (*FakeUsers) Create

func (c *FakeUsers) Create(ctx context.Context, user *auth.User, opts v1.CreateOptions) (result *auth.User, err error)

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

func (*FakeUsers) Delete

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

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

func (*FakeUsers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeUsers) Get

func (c *FakeUsers) Get(ctx context.Context, name string, options v1.GetOptions) (result *auth.User, err error)

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

func (*FakeUsers) List

func (c *FakeUsers) List(ctx context.Context, opts v1.ListOptions) (result *auth.UserList, err error)

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

func (*FakeUsers) Patch

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

Patch applies the patch and returns the patched user.

func (*FakeUsers) Update

func (c *FakeUsers) Update(ctx context.Context, user *auth.User, opts v1.UpdateOptions) (result *auth.User, err error)

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

func (*FakeUsers) Watch

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

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

Jump to

Keyboard shortcuts

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