Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeAuthz
- func (c *FakeAuthz) ConfigMaps() internalversion.ConfigMapInterface
- func (c *FakeAuthz) MultiClusterRoleBindings(namespace string) internalversion.MultiClusterRoleBindingInterface
- func (c *FakeAuthz) Policies(namespace string) internalversion.PolicyInterface
- func (c *FakeAuthz) RESTClient() rest.Interface
- func (c *FakeAuthz) Roles(namespace string) internalversion.RoleInterface
- type FakeConfigMaps
- func (c *FakeConfigMaps) Create(ctx context.Context, configMap *authz.ConfigMap, opts v1.CreateOptions) (result *authz.ConfigMap, err error)
- func (c *FakeConfigMaps) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeConfigMaps) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeConfigMaps) Get(ctx context.Context, name string, options v1.GetOptions) (result *authz.ConfigMap, err error)
- func (c *FakeConfigMaps) List(ctx context.Context, opts v1.ListOptions) (result *authz.ConfigMapList, err error)
- func (c *FakeConfigMaps) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *authz.ConfigMap, err error)
- func (c *FakeConfigMaps) Update(ctx context.Context, configMap *authz.ConfigMap, opts v1.UpdateOptions) (result *authz.ConfigMap, err error)
- func (c *FakeConfigMaps) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeMultiClusterRoleBindings
- func (c *FakeMultiClusterRoleBindings) Create(ctx context.Context, multiClusterRoleBinding *authz.MultiClusterRoleBinding, ...) (result *authz.MultiClusterRoleBinding, err error)
- func (c *FakeMultiClusterRoleBindings) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeMultiClusterRoleBindings) Get(ctx context.Context, name string, options v1.GetOptions) (result *authz.MultiClusterRoleBinding, err error)
- func (c *FakeMultiClusterRoleBindings) List(ctx context.Context, opts v1.ListOptions) (result *authz.MultiClusterRoleBindingList, err error)
- func (c *FakeMultiClusterRoleBindings) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *authz.MultiClusterRoleBinding, err error)
- func (c *FakeMultiClusterRoleBindings) Update(ctx context.Context, multiClusterRoleBinding *authz.MultiClusterRoleBinding, ...) (result *authz.MultiClusterRoleBinding, err error)
- func (c *FakeMultiClusterRoleBindings) UpdateStatus(ctx context.Context, multiClusterRoleBinding *authz.MultiClusterRoleBinding, ...) (*authz.MultiClusterRoleBinding, error)
- func (c *FakeMultiClusterRoleBindings) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakePolicies
- func (c *FakePolicies) Create(ctx context.Context, policy *authz.Policy, opts v1.CreateOptions) (result *authz.Policy, err error)
- func (c *FakePolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakePolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *authz.Policy, err error)
- func (c *FakePolicies) List(ctx context.Context, opts v1.ListOptions) (result *authz.PolicyList, err error)
- func (c *FakePolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *authz.Policy, err error)
- func (c *FakePolicies) Update(ctx context.Context, policy *authz.Policy, opts v1.UpdateOptions) (result *authz.Policy, err error)
- func (c *FakePolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeRoles
- func (c *FakeRoles) Create(ctx context.Context, role *authz.Role, opts v1.CreateOptions) (result *authz.Role, err error)
- func (c *FakeRoles) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeRoles) Get(ctx context.Context, name string, options v1.GetOptions) (result *authz.Role, err error)
- func (c *FakeRoles) List(ctx context.Context, opts v1.ListOptions) (result *authz.RoleList, err error)
- func (c *FakeRoles) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *authz.Role, err error)
- func (c *FakeRoles) Update(ctx context.Context, role *authz.Role, opts v1.UpdateOptions) (result *authz.Role, err error)
- func (c *FakeRoles) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeAuthz ¶
func (*FakeAuthz) ConfigMaps ¶
func (c *FakeAuthz) ConfigMaps() internalversion.ConfigMapInterface
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 ¶
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 ¶
func (c *FakeConfigMaps) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
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 ¶
func (c *FakeMultiClusterRoleBindings) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the multiClusterRoleBinding and deletes it. Returns an error if one occurs.
func (*FakeMultiClusterRoleBindings) Get ¶
func (c *FakeMultiClusterRoleBindings) Get(ctx context.Context, name string, options v1.GetOptions) (result *authz.MultiClusterRoleBinding, err error)
Get takes name of the multiClusterRoleBinding, and returns the corresponding multiClusterRoleBinding object, and an error if there is any.
func (*FakeMultiClusterRoleBindings) List ¶
func (c *FakeMultiClusterRoleBindings) List(ctx context.Context, opts v1.ListOptions) (result *authz.MultiClusterRoleBindingList, err error)
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 ¶
func (c *FakeMultiClusterRoleBindings) UpdateStatus(ctx context.Context, multiClusterRoleBinding *authz.MultiClusterRoleBinding, opts v1.UpdateOptions) (*authz.MultiClusterRoleBinding, error)
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 ¶
func (c *FakeMultiClusterRoleBindings) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
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 ¶
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.