Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeAuthorizationV1
- func (c *FakeAuthorizationV1) ClusterPolicies() v1.ClusterPolicyInterface
- func (c *FakeAuthorizationV1) ClusterPolicyBindings() v1.ClusterPolicyBindingInterface
- func (c *FakeAuthorizationV1) ClusterRoleBindings() v1.ClusterRoleBindingInterface
- func (c *FakeAuthorizationV1) ClusterRoles() v1.ClusterRoleInterface
- func (c *FakeAuthorizationV1) LocalResourceAccessReviews(namespace string) v1.LocalResourceAccessReviewInterface
- func (c *FakeAuthorizationV1) LocalSubjectAccessReviews(namespace string) v1.LocalSubjectAccessReviewInterface
- func (c *FakeAuthorizationV1) Policies(namespace string) v1.PolicyInterface
- func (c *FakeAuthorizationV1) PolicyBindings(namespace string) v1.PolicyBindingInterface
- func (c *FakeAuthorizationV1) RESTClient() rest.Interface
- func (c *FakeAuthorizationV1) ResourceAccessReviews() v1.ResourceAccessReviewInterface
- func (c *FakeAuthorizationV1) RoleBindingRestrictions(namespace string) v1.RoleBindingRestrictionInterface
- func (c *FakeAuthorizationV1) RoleBindings(namespace string) v1.RoleBindingInterface
- func (c *FakeAuthorizationV1) Roles(namespace string) v1.RoleInterface
- func (c *FakeAuthorizationV1) SelfSubjectRulesReviews(namespace string) v1.SelfSubjectRulesReviewInterface
- func (c *FakeAuthorizationV1) SubjectAccessReviews() v1.SubjectAccessReviewInterface
- func (c *FakeAuthorizationV1) SubjectRulesReviews(namespace string) v1.SubjectRulesReviewInterface
- type FakeClusterPolicies
- func (c *FakeClusterPolicies) Create(clusterPolicy *authorization_v1.ClusterPolicy) (result *authorization_v1.ClusterPolicy, err error)
- func (c *FakeClusterPolicies) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeClusterPolicies) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeClusterPolicies) Get(name string, options v1.GetOptions) (result *authorization_v1.ClusterPolicy, err error)
- func (c *FakeClusterPolicies) List(opts v1.ListOptions) (result *authorization_v1.ClusterPolicyList, err error)
- func (c *FakeClusterPolicies) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *authorization_v1.ClusterPolicy, err error)
- func (c *FakeClusterPolicies) Update(clusterPolicy *authorization_v1.ClusterPolicy) (result *authorization_v1.ClusterPolicy, err error)
- func (c *FakeClusterPolicies) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeClusterPolicyBindings
- func (c *FakeClusterPolicyBindings) Create(clusterPolicyBinding *authorization_v1.ClusterPolicyBinding) (result *authorization_v1.ClusterPolicyBinding, err error)
- func (c *FakeClusterPolicyBindings) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeClusterPolicyBindings) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeClusterPolicyBindings) Get(name string, options v1.GetOptions) (result *authorization_v1.ClusterPolicyBinding, err error)
- func (c *FakeClusterPolicyBindings) List(opts v1.ListOptions) (result *authorization_v1.ClusterPolicyBindingList, err error)
- func (c *FakeClusterPolicyBindings) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *authorization_v1.ClusterPolicyBinding, err error)
- func (c *FakeClusterPolicyBindings) Update(clusterPolicyBinding *authorization_v1.ClusterPolicyBinding) (result *authorization_v1.ClusterPolicyBinding, err error)
- func (c *FakeClusterPolicyBindings) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeClusterRoleBindings
- func (c *FakeClusterRoleBindings) Create(clusterRoleBinding *authorization_v1.ClusterRoleBinding) (result *authorization_v1.ClusterRoleBinding, err error)
- func (c *FakeClusterRoleBindings) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeClusterRoleBindings) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeClusterRoleBindings) Get(name string, options v1.GetOptions) (result *authorization_v1.ClusterRoleBinding, err error)
- func (c *FakeClusterRoleBindings) List(opts v1.ListOptions) (result *authorization_v1.ClusterRoleBindingList, err error)
- func (c *FakeClusterRoleBindings) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *authorization_v1.ClusterRoleBinding, err error)
- func (c *FakeClusterRoleBindings) Update(clusterRoleBinding *authorization_v1.ClusterRoleBinding) (result *authorization_v1.ClusterRoleBinding, err error)
- func (c *FakeClusterRoleBindings) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeClusterRoles
- func (c *FakeClusterRoles) Create(clusterRole *authorization_v1.ClusterRole) (result *authorization_v1.ClusterRole, err error)
- func (c *FakeClusterRoles) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeClusterRoles) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeClusterRoles) Get(name string, options v1.GetOptions) (result *authorization_v1.ClusterRole, err error)
- func (c *FakeClusterRoles) List(opts v1.ListOptions) (result *authorization_v1.ClusterRoleList, err error)
- func (c *FakeClusterRoles) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *authorization_v1.ClusterRole, err error)
- func (c *FakeClusterRoles) Update(clusterRole *authorization_v1.ClusterRole) (result *authorization_v1.ClusterRole, err error)
- func (c *FakeClusterRoles) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeLocalResourceAccessReviews
- type FakeLocalSubjectAccessReviews
- type FakePolicies
- func (c *FakePolicies) Create(policy *authorization_v1.Policy) (result *authorization_v1.Policy, err error)
- func (c *FakePolicies) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakePolicies) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakePolicies) Get(name string, options v1.GetOptions) (result *authorization_v1.Policy, err error)
- func (c *FakePolicies) List(opts v1.ListOptions) (result *authorization_v1.PolicyList, err error)
- func (c *FakePolicies) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *authorization_v1.Policy, err error)
- func (c *FakePolicies) Update(policy *authorization_v1.Policy) (result *authorization_v1.Policy, err error)
- func (c *FakePolicies) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakePolicyBindings
- func (c *FakePolicyBindings) Create(policyBinding *authorization_v1.PolicyBinding) (result *authorization_v1.PolicyBinding, err error)
- func (c *FakePolicyBindings) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakePolicyBindings) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakePolicyBindings) Get(name string, options v1.GetOptions) (result *authorization_v1.PolicyBinding, err error)
- func (c *FakePolicyBindings) List(opts v1.ListOptions) (result *authorization_v1.PolicyBindingList, err error)
- func (c *FakePolicyBindings) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *authorization_v1.PolicyBinding, err error)
- func (c *FakePolicyBindings) Update(policyBinding *authorization_v1.PolicyBinding) (result *authorization_v1.PolicyBinding, err error)
- func (c *FakePolicyBindings) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeResourceAccessReviews
- type FakeRoleBindingRestrictions
- func (c *FakeRoleBindingRestrictions) Create(roleBindingRestriction *authorization_v1.RoleBindingRestriction) (result *authorization_v1.RoleBindingRestriction, err error)
- func (c *FakeRoleBindingRestrictions) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeRoleBindingRestrictions) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeRoleBindingRestrictions) Get(name string, options v1.GetOptions) (result *authorization_v1.RoleBindingRestriction, err error)
- func (c *FakeRoleBindingRestrictions) List(opts v1.ListOptions) (result *authorization_v1.RoleBindingRestrictionList, err error)
- func (c *FakeRoleBindingRestrictions) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *authorization_v1.RoleBindingRestriction, err error)
- func (c *FakeRoleBindingRestrictions) Update(roleBindingRestriction *authorization_v1.RoleBindingRestriction) (result *authorization_v1.RoleBindingRestriction, err error)
- func (c *FakeRoleBindingRestrictions) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeRoleBindings
- func (c *FakeRoleBindings) Create(roleBinding *authorization_v1.RoleBinding) (result *authorization_v1.RoleBinding, err error)
- func (c *FakeRoleBindings) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeRoleBindings) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeRoleBindings) Get(name string, options v1.GetOptions) (result *authorization_v1.RoleBinding, err error)
- func (c *FakeRoleBindings) List(opts v1.ListOptions) (result *authorization_v1.RoleBindingList, err error)
- func (c *FakeRoleBindings) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *authorization_v1.RoleBinding, err error)
- func (c *FakeRoleBindings) Update(roleBinding *authorization_v1.RoleBinding) (result *authorization_v1.RoleBinding, err error)
- func (c *FakeRoleBindings) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeRoles
- func (c *FakeRoles) Create(role *authorization_v1.Role) (result *authorization_v1.Role, err error)
- func (c *FakeRoles) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeRoles) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeRoles) Get(name string, options v1.GetOptions) (result *authorization_v1.Role, err error)
- func (c *FakeRoles) List(opts v1.ListOptions) (result *authorization_v1.RoleList, err error)
- func (c *FakeRoles) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *authorization_v1.Role, err error)
- func (c *FakeRoles) Update(role *authorization_v1.Role) (result *authorization_v1.Role, err error)
- func (c *FakeRoles) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeSelfSubjectRulesReviews
- type FakeSubjectAccessReviews
- type FakeSubjectRulesReviews
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeAuthorizationV1 ¶
func (*FakeAuthorizationV1) ClusterPolicies ¶
func (c *FakeAuthorizationV1) ClusterPolicies() v1.ClusterPolicyInterface
func (*FakeAuthorizationV1) ClusterPolicyBindings ¶
func (c *FakeAuthorizationV1) ClusterPolicyBindings() v1.ClusterPolicyBindingInterface
func (*FakeAuthorizationV1) ClusterRoleBindings ¶
func (c *FakeAuthorizationV1) ClusterRoleBindings() v1.ClusterRoleBindingInterface
func (*FakeAuthorizationV1) ClusterRoles ¶
func (c *FakeAuthorizationV1) ClusterRoles() v1.ClusterRoleInterface
func (*FakeAuthorizationV1) LocalResourceAccessReviews ¶
func (c *FakeAuthorizationV1) LocalResourceAccessReviews(namespace string) v1.LocalResourceAccessReviewInterface
func (*FakeAuthorizationV1) LocalSubjectAccessReviews ¶
func (c *FakeAuthorizationV1) LocalSubjectAccessReviews(namespace string) v1.LocalSubjectAccessReviewInterface
func (*FakeAuthorizationV1) Policies ¶
func (c *FakeAuthorizationV1) Policies(namespace string) v1.PolicyInterface
func (*FakeAuthorizationV1) PolicyBindings ¶
func (c *FakeAuthorizationV1) PolicyBindings(namespace string) v1.PolicyBindingInterface
func (*FakeAuthorizationV1) RESTClient ¶
func (c *FakeAuthorizationV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeAuthorizationV1) ResourceAccessReviews ¶
func (c *FakeAuthorizationV1) ResourceAccessReviews() v1.ResourceAccessReviewInterface
func (*FakeAuthorizationV1) RoleBindingRestrictions ¶
func (c *FakeAuthorizationV1) RoleBindingRestrictions(namespace string) v1.RoleBindingRestrictionInterface
func (*FakeAuthorizationV1) RoleBindings ¶
func (c *FakeAuthorizationV1) RoleBindings(namespace string) v1.RoleBindingInterface
func (*FakeAuthorizationV1) Roles ¶
func (c *FakeAuthorizationV1) Roles(namespace string) v1.RoleInterface
func (*FakeAuthorizationV1) SelfSubjectRulesReviews ¶
func (c *FakeAuthorizationV1) SelfSubjectRulesReviews(namespace string) v1.SelfSubjectRulesReviewInterface
func (*FakeAuthorizationV1) SubjectAccessReviews ¶
func (c *FakeAuthorizationV1) SubjectAccessReviews() v1.SubjectAccessReviewInterface
func (*FakeAuthorizationV1) SubjectRulesReviews ¶
func (c *FakeAuthorizationV1) SubjectRulesReviews(namespace string) v1.SubjectRulesReviewInterface
type FakeClusterPolicies ¶
type FakeClusterPolicies struct {
Fake *FakeAuthorizationV1
}
FakeClusterPolicies implements ClusterPolicyInterface
func (*FakeClusterPolicies) Create ¶
func (c *FakeClusterPolicies) Create(clusterPolicy *authorization_v1.ClusterPolicy) (result *authorization_v1.ClusterPolicy, err error)
Create takes the representation of a clusterPolicy and creates it. Returns the server's representation of the clusterPolicy, and an error, if there is any.
func (*FakeClusterPolicies) Delete ¶
func (c *FakeClusterPolicies) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the clusterPolicy and deletes it. Returns an error if one occurs.
func (*FakeClusterPolicies) DeleteCollection ¶
func (c *FakeClusterPolicies) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeClusterPolicies) Get ¶
func (c *FakeClusterPolicies) Get(name string, options v1.GetOptions) (result *authorization_v1.ClusterPolicy, err error)
Get takes name of the clusterPolicy, and returns the corresponding clusterPolicy object, and an error if there is any.
func (*FakeClusterPolicies) List ¶
func (c *FakeClusterPolicies) List(opts v1.ListOptions) (result *authorization_v1.ClusterPolicyList, err error)
List takes label and field selectors, and returns the list of ClusterPolicies that match those selectors.
func (*FakeClusterPolicies) Patch ¶
func (c *FakeClusterPolicies) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *authorization_v1.ClusterPolicy, err error)
Patch applies the patch and returns the patched clusterPolicy.
func (*FakeClusterPolicies) Update ¶
func (c *FakeClusterPolicies) Update(clusterPolicy *authorization_v1.ClusterPolicy) (result *authorization_v1.ClusterPolicy, err error)
Update takes the representation of a clusterPolicy and updates it. Returns the server's representation of the clusterPolicy, and an error, if there is any.
func (*FakeClusterPolicies) Watch ¶
func (c *FakeClusterPolicies) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested clusterPolicies.
type FakeClusterPolicyBindings ¶
type FakeClusterPolicyBindings struct {
Fake *FakeAuthorizationV1
}
FakeClusterPolicyBindings implements ClusterPolicyBindingInterface
func (*FakeClusterPolicyBindings) Create ¶
func (c *FakeClusterPolicyBindings) Create(clusterPolicyBinding *authorization_v1.ClusterPolicyBinding) (result *authorization_v1.ClusterPolicyBinding, err error)
Create takes the representation of a clusterPolicyBinding and creates it. Returns the server's representation of the clusterPolicyBinding, and an error, if there is any.
func (*FakeClusterPolicyBindings) Delete ¶
func (c *FakeClusterPolicyBindings) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the clusterPolicyBinding and deletes it. Returns an error if one occurs.
func (*FakeClusterPolicyBindings) DeleteCollection ¶
func (c *FakeClusterPolicyBindings) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeClusterPolicyBindings) Get ¶
func (c *FakeClusterPolicyBindings) Get(name string, options v1.GetOptions) (result *authorization_v1.ClusterPolicyBinding, err error)
Get takes name of the clusterPolicyBinding, and returns the corresponding clusterPolicyBinding object, and an error if there is any.
func (*FakeClusterPolicyBindings) List ¶
func (c *FakeClusterPolicyBindings) List(opts v1.ListOptions) (result *authorization_v1.ClusterPolicyBindingList, err error)
List takes label and field selectors, and returns the list of ClusterPolicyBindings that match those selectors.
func (*FakeClusterPolicyBindings) Patch ¶
func (c *FakeClusterPolicyBindings) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *authorization_v1.ClusterPolicyBinding, err error)
Patch applies the patch and returns the patched clusterPolicyBinding.
func (*FakeClusterPolicyBindings) Update ¶
func (c *FakeClusterPolicyBindings) Update(clusterPolicyBinding *authorization_v1.ClusterPolicyBinding) (result *authorization_v1.ClusterPolicyBinding, err error)
Update takes the representation of a clusterPolicyBinding and updates it. Returns the server's representation of the clusterPolicyBinding, and an error, if there is any.
func (*FakeClusterPolicyBindings) Watch ¶
func (c *FakeClusterPolicyBindings) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested clusterPolicyBindings.
type FakeClusterRoleBindings ¶
type FakeClusterRoleBindings struct {
Fake *FakeAuthorizationV1
}
FakeClusterRoleBindings implements ClusterRoleBindingInterface
func (*FakeClusterRoleBindings) Create ¶
func (c *FakeClusterRoleBindings) Create(clusterRoleBinding *authorization_v1.ClusterRoleBinding) (result *authorization_v1.ClusterRoleBinding, err error)
Create takes the representation of a clusterRoleBinding and creates it. Returns the server's representation of the clusterRoleBinding, and an error, if there is any.
func (*FakeClusterRoleBindings) Delete ¶
func (c *FakeClusterRoleBindings) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the clusterRoleBinding and deletes it. Returns an error if one occurs.
func (*FakeClusterRoleBindings) DeleteCollection ¶
func (c *FakeClusterRoleBindings) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeClusterRoleBindings) Get ¶
func (c *FakeClusterRoleBindings) Get(name string, options v1.GetOptions) (result *authorization_v1.ClusterRoleBinding, err error)
Get takes name of the clusterRoleBinding, and returns the corresponding clusterRoleBinding object, and an error if there is any.
func (*FakeClusterRoleBindings) List ¶
func (c *FakeClusterRoleBindings) List(opts v1.ListOptions) (result *authorization_v1.ClusterRoleBindingList, err error)
List takes label and field selectors, and returns the list of ClusterRoleBindings that match those selectors.
func (*FakeClusterRoleBindings) Patch ¶
func (c *FakeClusterRoleBindings) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *authorization_v1.ClusterRoleBinding, err error)
Patch applies the patch and returns the patched clusterRoleBinding.
func (*FakeClusterRoleBindings) Update ¶
func (c *FakeClusterRoleBindings) Update(clusterRoleBinding *authorization_v1.ClusterRoleBinding) (result *authorization_v1.ClusterRoleBinding, err error)
Update takes the representation of a clusterRoleBinding and updates it. Returns the server's representation of the clusterRoleBinding, and an error, if there is any.
func (*FakeClusterRoleBindings) Watch ¶
func (c *FakeClusterRoleBindings) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested clusterRoleBindings.
type FakeClusterRoles ¶
type FakeClusterRoles struct {
Fake *FakeAuthorizationV1
}
FakeClusterRoles implements ClusterRoleInterface
func (*FakeClusterRoles) Create ¶
func (c *FakeClusterRoles) Create(clusterRole *authorization_v1.ClusterRole) (result *authorization_v1.ClusterRole, err error)
Create takes the representation of a clusterRole and creates it. Returns the server's representation of the clusterRole, and an error, if there is any.
func (*FakeClusterRoles) Delete ¶
func (c *FakeClusterRoles) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the clusterRole and deletes it. Returns an error if one occurs.
func (*FakeClusterRoles) DeleteCollection ¶
func (c *FakeClusterRoles) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeClusterRoles) Get ¶
func (c *FakeClusterRoles) Get(name string, options v1.GetOptions) (result *authorization_v1.ClusterRole, err error)
Get takes name of the clusterRole, and returns the corresponding clusterRole object, and an error if there is any.
func (*FakeClusterRoles) List ¶
func (c *FakeClusterRoles) List(opts v1.ListOptions) (result *authorization_v1.ClusterRoleList, err error)
List takes label and field selectors, and returns the list of ClusterRoles that match those selectors.
func (*FakeClusterRoles) Patch ¶
func (c *FakeClusterRoles) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *authorization_v1.ClusterRole, err error)
Patch applies the patch and returns the patched clusterRole.
func (*FakeClusterRoles) Update ¶
func (c *FakeClusterRoles) Update(clusterRole *authorization_v1.ClusterRole) (result *authorization_v1.ClusterRole, err error)
Update takes the representation of a clusterRole and updates it. Returns the server's representation of the clusterRole, and an error, if there is any.
func (*FakeClusterRoles) Watch ¶
func (c *FakeClusterRoles) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested clusterRoles.
type FakeLocalResourceAccessReviews ¶
type FakeLocalResourceAccessReviews struct { Fake *FakeAuthorizationV1 // contains filtered or unexported fields }
FakeLocalResourceAccessReviews implements LocalResourceAccessReviewInterface
func (*FakeLocalResourceAccessReviews) Create ¶
func (c *FakeLocalResourceAccessReviews) Create(localResourceAccessReview *v1.LocalResourceAccessReview) (result *v1.ResourceAccessReviewResponse, err error)
Create takes the representation of a localResourceAccessReview and creates it. Returns the server's representation of the resourceAccessReviewResponse, and an error, if there is any.
type FakeLocalSubjectAccessReviews ¶
type FakeLocalSubjectAccessReviews struct { Fake *FakeAuthorizationV1 // contains filtered or unexported fields }
FakeLocalSubjectAccessReviews implements LocalSubjectAccessReviewInterface
func (*FakeLocalSubjectAccessReviews) Create ¶
func (c *FakeLocalSubjectAccessReviews) Create(localSubjectAccessReview *v1.LocalSubjectAccessReview) (result *v1.SubjectAccessReviewResponse, err error)
Create takes the representation of a localSubjectAccessReview and creates it. Returns the server's representation of the subjectAccessReviewResponse, and an error, if there is any.
type FakePolicies ¶
type FakePolicies struct { Fake *FakeAuthorizationV1 // contains filtered or unexported fields }
FakePolicies implements PolicyInterface
func (*FakePolicies) Create ¶
func (c *FakePolicies) Create(policy *authorization_v1.Policy) (result *authorization_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(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 *authorization_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(opts v1.ListOptions) (result *authorization_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(name string, pt types.PatchType, data []byte, subresources ...string) (result *authorization_v1.Policy, err error)
Patch applies the patch and returns the patched policy.
func (*FakePolicies) Update ¶
func (c *FakePolicies) Update(policy *authorization_v1.Policy) (result *authorization_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 ¶
func (c *FakePolicies) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested policies.
type FakePolicyBindings ¶
type FakePolicyBindings struct { Fake *FakeAuthorizationV1 // contains filtered or unexported fields }
FakePolicyBindings implements PolicyBindingInterface
func (*FakePolicyBindings) Create ¶
func (c *FakePolicyBindings) Create(policyBinding *authorization_v1.PolicyBinding) (result *authorization_v1.PolicyBinding, err error)
Create takes the representation of a policyBinding and creates it. Returns the server's representation of the policyBinding, and an error, if there is any.
func (*FakePolicyBindings) Delete ¶
func (c *FakePolicyBindings) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the policyBinding and deletes it. Returns an error if one occurs.
func (*FakePolicyBindings) DeleteCollection ¶
func (c *FakePolicyBindings) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakePolicyBindings) Get ¶
func (c *FakePolicyBindings) Get(name string, options v1.GetOptions) (result *authorization_v1.PolicyBinding, err error)
Get takes name of the policyBinding, and returns the corresponding policyBinding object, and an error if there is any.
func (*FakePolicyBindings) List ¶
func (c *FakePolicyBindings) List(opts v1.ListOptions) (result *authorization_v1.PolicyBindingList, err error)
List takes label and field selectors, and returns the list of PolicyBindings that match those selectors.
func (*FakePolicyBindings) Patch ¶
func (c *FakePolicyBindings) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *authorization_v1.PolicyBinding, err error)
Patch applies the patch and returns the patched policyBinding.
func (*FakePolicyBindings) Update ¶
func (c *FakePolicyBindings) Update(policyBinding *authorization_v1.PolicyBinding) (result *authorization_v1.PolicyBinding, err error)
Update takes the representation of a policyBinding and updates it. Returns the server's representation of the policyBinding, and an error, if there is any.
func (*FakePolicyBindings) Watch ¶
func (c *FakePolicyBindings) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested policyBindings.
type FakeResourceAccessReviews ¶
type FakeResourceAccessReviews struct {
Fake *FakeAuthorizationV1
}
FakeResourceAccessReviews implements ResourceAccessReviewInterface
func (*FakeResourceAccessReviews) Create ¶
func (c *FakeResourceAccessReviews) Create(resourceAccessReview *v1.ResourceAccessReview) (result *v1.ResourceAccessReviewResponse, err error)
Create takes the representation of a resourceAccessReview and creates it. Returns the server's representation of the resourceAccessReviewResponse, and an error, if there is any.
type FakeRoleBindingRestrictions ¶
type FakeRoleBindingRestrictions struct { Fake *FakeAuthorizationV1 // contains filtered or unexported fields }
FakeRoleBindingRestrictions implements RoleBindingRestrictionInterface
func (*FakeRoleBindingRestrictions) Create ¶
func (c *FakeRoleBindingRestrictions) Create(roleBindingRestriction *authorization_v1.RoleBindingRestriction) (result *authorization_v1.RoleBindingRestriction, err error)
Create takes the representation of a roleBindingRestriction and creates it. Returns the server's representation of the roleBindingRestriction, and an error, if there is any.
func (*FakeRoleBindingRestrictions) Delete ¶
func (c *FakeRoleBindingRestrictions) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the roleBindingRestriction and deletes it. Returns an error if one occurs.
func (*FakeRoleBindingRestrictions) DeleteCollection ¶
func (c *FakeRoleBindingRestrictions) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeRoleBindingRestrictions) Get ¶
func (c *FakeRoleBindingRestrictions) Get(name string, options v1.GetOptions) (result *authorization_v1.RoleBindingRestriction, err error)
Get takes name of the roleBindingRestriction, and returns the corresponding roleBindingRestriction object, and an error if there is any.
func (*FakeRoleBindingRestrictions) List ¶
func (c *FakeRoleBindingRestrictions) List(opts v1.ListOptions) (result *authorization_v1.RoleBindingRestrictionList, err error)
List takes label and field selectors, and returns the list of RoleBindingRestrictions that match those selectors.
func (*FakeRoleBindingRestrictions) Patch ¶
func (c *FakeRoleBindingRestrictions) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *authorization_v1.RoleBindingRestriction, err error)
Patch applies the patch and returns the patched roleBindingRestriction.
func (*FakeRoleBindingRestrictions) Update ¶
func (c *FakeRoleBindingRestrictions) Update(roleBindingRestriction *authorization_v1.RoleBindingRestriction) (result *authorization_v1.RoleBindingRestriction, err error)
Update takes the representation of a roleBindingRestriction and updates it. Returns the server's representation of the roleBindingRestriction, and an error, if there is any.
func (*FakeRoleBindingRestrictions) Watch ¶
func (c *FakeRoleBindingRestrictions) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested roleBindingRestrictions.
type FakeRoleBindings ¶
type FakeRoleBindings struct { Fake *FakeAuthorizationV1 // contains filtered or unexported fields }
FakeRoleBindings implements RoleBindingInterface
func (*FakeRoleBindings) Create ¶
func (c *FakeRoleBindings) Create(roleBinding *authorization_v1.RoleBinding) (result *authorization_v1.RoleBinding, err error)
Create takes the representation of a roleBinding and creates it. Returns the server's representation of the roleBinding, and an error, if there is any.
func (*FakeRoleBindings) Delete ¶
func (c *FakeRoleBindings) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the roleBinding and deletes it. Returns an error if one occurs.
func (*FakeRoleBindings) DeleteCollection ¶
func (c *FakeRoleBindings) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeRoleBindings) Get ¶
func (c *FakeRoleBindings) Get(name string, options v1.GetOptions) (result *authorization_v1.RoleBinding, err error)
Get takes name of the roleBinding, and returns the corresponding roleBinding object, and an error if there is any.
func (*FakeRoleBindings) List ¶
func (c *FakeRoleBindings) List(opts v1.ListOptions) (result *authorization_v1.RoleBindingList, err error)
List takes label and field selectors, and returns the list of RoleBindings that match those selectors.
func (*FakeRoleBindings) Patch ¶
func (c *FakeRoleBindings) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *authorization_v1.RoleBinding, err error)
Patch applies the patch and returns the patched roleBinding.
func (*FakeRoleBindings) Update ¶
func (c *FakeRoleBindings) Update(roleBinding *authorization_v1.RoleBinding) (result *authorization_v1.RoleBinding, err error)
Update takes the representation of a roleBinding and updates it. Returns the server's representation of the roleBinding, and an error, if there is any.
func (*FakeRoleBindings) Watch ¶
func (c *FakeRoleBindings) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested roleBindings.
type FakeRoles ¶
type FakeRoles struct { Fake *FakeAuthorizationV1 // contains filtered or unexported fields }
FakeRoles implements RoleInterface
func (*FakeRoles) Create ¶
func (c *FakeRoles) Create(role *authorization_v1.Role) (result *authorization_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(name string, options *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(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeRoles) Get ¶
func (c *FakeRoles) Get(name string, options v1.GetOptions) (result *authorization_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(opts v1.ListOptions) (result *authorization_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(name string, pt types.PatchType, data []byte, subresources ...string) (result *authorization_v1.Role, err error)
Patch applies the patch and returns the patched role.
func (*FakeRoles) Update ¶
func (c *FakeRoles) Update(role *authorization_v1.Role) (result *authorization_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.
type FakeSelfSubjectRulesReviews ¶
type FakeSelfSubjectRulesReviews struct { Fake *FakeAuthorizationV1 // contains filtered or unexported fields }
FakeSelfSubjectRulesReviews implements SelfSubjectRulesReviewInterface
func (*FakeSelfSubjectRulesReviews) Create ¶
func (c *FakeSelfSubjectRulesReviews) Create(selfSubjectRulesReview *v1.SelfSubjectRulesReview) (result *v1.SelfSubjectRulesReview, err error)
Create takes the representation of a selfSubjectRulesReview and creates it. Returns the server's representation of the selfSubjectRulesReview, and an error, if there is any.
type FakeSubjectAccessReviews ¶
type FakeSubjectAccessReviews struct {
Fake *FakeAuthorizationV1
}
FakeSubjectAccessReviews implements SubjectAccessReviewInterface
func (*FakeSubjectAccessReviews) Create ¶
func (c *FakeSubjectAccessReviews) Create(subjectAccessReview *v1.SubjectAccessReview) (result *v1.SubjectAccessReviewResponse, err error)
Create takes the representation of a subjectAccessReview and creates it. Returns the server's representation of the subjectAccessReviewResponse, and an error, if there is any.
type FakeSubjectRulesReviews ¶
type FakeSubjectRulesReviews struct { Fake *FakeAuthorizationV1 // contains filtered or unexported fields }
FakeSubjectRulesReviews implements SubjectRulesReviewInterface
func (*FakeSubjectRulesReviews) Create ¶
func (c *FakeSubjectRulesReviews) Create(subjectRulesReview *v1.SubjectRulesReview) (result *v1.SubjectRulesReview, err error)
Create takes the representation of a subjectRulesReview and creates it. Returns the server's representation of the subjectRulesReview, and an error, if there is any.
Source Files ¶
- doc.go
- fake_authorization_client.go
- fake_clusterpolicy.go
- fake_clusterpolicybinding.go
- fake_clusterrole.go
- fake_clusterrolebinding.go
- fake_localresourceaccessreview.go
- fake_localsubjectaccessreview.go
- fake_policy.go
- fake_policybinding.go
- fake_resourceaccessreview.go
- fake_role.go
- fake_rolebinding.go
- fake_rolebindingrestriction.go
- fake_selfsubjectrulesreview.go
- fake_subjectaccessreview.go
- fake_subjectrulesreview.go