Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeAuthorization
- func (c *FakeAuthorization) ClusterRoleBindings() internalversion.ClusterRoleBindingInterface
- func (c *FakeAuthorization) ClusterRoles() internalversion.ClusterRoleInterface
- func (c *FakeAuthorization) LocalResourceAccessReviews(namespace string) internalversion.LocalResourceAccessReviewInterface
- func (c *FakeAuthorization) LocalSubjectAccessReviews(namespace string) internalversion.LocalSubjectAccessReviewInterface
- func (c *FakeAuthorization) RESTClient() rest.Interface
- func (c *FakeAuthorization) ResourceAccessReviews() internalversion.ResourceAccessReviewInterface
- func (c *FakeAuthorization) RoleBindingRestrictions(namespace string) internalversion.RoleBindingRestrictionInterface
- func (c *FakeAuthorization) RoleBindings(namespace string) internalversion.RoleBindingInterface
- func (c *FakeAuthorization) Roles(namespace string) internalversion.RoleInterface
- func (c *FakeAuthorization) SelfSubjectRulesReviews(namespace string) internalversion.SelfSubjectRulesReviewInterface
- func (c *FakeAuthorization) SubjectAccessReviews() internalversion.SubjectAccessReviewInterface
- func (c *FakeAuthorization) SubjectRulesReviews(namespace string) internalversion.SubjectRulesReviewInterface
- type FakeClusterRoleBindings
- func (c *FakeClusterRoleBindings) Create(clusterRoleBinding *authorization.ClusterRoleBinding) (result *authorization.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.ClusterRoleBinding, err error)
- func (c *FakeClusterRoleBindings) List(opts v1.ListOptions) (result *authorization.ClusterRoleBindingList, err error)
- func (c *FakeClusterRoleBindings) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *authorization.ClusterRoleBinding, err error)
- func (c *FakeClusterRoleBindings) Update(clusterRoleBinding *authorization.ClusterRoleBinding) (result *authorization.ClusterRoleBinding, err error)
- func (c *FakeClusterRoleBindings) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeClusterRoles
- func (c *FakeClusterRoles) Create(clusterRole *authorization.ClusterRole) (result *authorization.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.ClusterRole, err error)
- func (c *FakeClusterRoles) List(opts v1.ListOptions) (result *authorization.ClusterRoleList, err error)
- func (c *FakeClusterRoles) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *authorization.ClusterRole, err error)
- func (c *FakeClusterRoles) Update(clusterRole *authorization.ClusterRole) (result *authorization.ClusterRole, err error)
- func (c *FakeClusterRoles) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeLocalResourceAccessReviews
- type FakeLocalSubjectAccessReviews
- type FakeResourceAccessReviews
- type FakeRoleBindingRestrictions
- func (c *FakeRoleBindingRestrictions) Create(roleBindingRestriction *authorization.RoleBindingRestriction) (result *authorization.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.RoleBindingRestriction, err error)
- func (c *FakeRoleBindingRestrictions) List(opts v1.ListOptions) (result *authorization.RoleBindingRestrictionList, err error)
- func (c *FakeRoleBindingRestrictions) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *authorization.RoleBindingRestriction, err error)
- func (c *FakeRoleBindingRestrictions) Update(roleBindingRestriction *authorization.RoleBindingRestriction) (result *authorization.RoleBindingRestriction, err error)
- func (c *FakeRoleBindingRestrictions) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeRoleBindings
- func (c *FakeRoleBindings) Create(roleBinding *authorization.RoleBinding) (result *authorization.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.RoleBinding, err error)
- func (c *FakeRoleBindings) List(opts v1.ListOptions) (result *authorization.RoleBindingList, err error)
- func (c *FakeRoleBindings) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *authorization.RoleBinding, err error)
- func (c *FakeRoleBindings) Update(roleBinding *authorization.RoleBinding) (result *authorization.RoleBinding, err error)
- func (c *FakeRoleBindings) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeRoles
- func (c *FakeRoles) Create(role *authorization.Role) (result *authorization.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.Role, err error)
- func (c *FakeRoles) List(opts v1.ListOptions) (result *authorization.RoleList, err error)
- func (c *FakeRoles) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *authorization.Role, err error)
- func (c *FakeRoles) Update(role *authorization.Role) (result *authorization.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 FakeAuthorization ¶
func (*FakeAuthorization) ClusterRoleBindings ¶
func (c *FakeAuthorization) ClusterRoleBindings() internalversion.ClusterRoleBindingInterface
func (*FakeAuthorization) ClusterRoles ¶
func (c *FakeAuthorization) ClusterRoles() internalversion.ClusterRoleInterface
func (*FakeAuthorization) LocalResourceAccessReviews ¶
func (c *FakeAuthorization) LocalResourceAccessReviews(namespace string) internalversion.LocalResourceAccessReviewInterface
func (*FakeAuthorization) LocalSubjectAccessReviews ¶
func (c *FakeAuthorization) LocalSubjectAccessReviews(namespace string) internalversion.LocalSubjectAccessReviewInterface
func (*FakeAuthorization) RESTClient ¶
func (c *FakeAuthorization) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeAuthorization) ResourceAccessReviews ¶
func (c *FakeAuthorization) ResourceAccessReviews() internalversion.ResourceAccessReviewInterface
func (*FakeAuthorization) RoleBindingRestrictions ¶
func (c *FakeAuthorization) RoleBindingRestrictions(namespace string) internalversion.RoleBindingRestrictionInterface
func (*FakeAuthorization) RoleBindings ¶
func (c *FakeAuthorization) RoleBindings(namespace string) internalversion.RoleBindingInterface
func (*FakeAuthorization) Roles ¶
func (c *FakeAuthorization) Roles(namespace string) internalversion.RoleInterface
func (*FakeAuthorization) SelfSubjectRulesReviews ¶
func (c *FakeAuthorization) SelfSubjectRulesReviews(namespace string) internalversion.SelfSubjectRulesReviewInterface
func (*FakeAuthorization) SubjectAccessReviews ¶
func (c *FakeAuthorization) SubjectAccessReviews() internalversion.SubjectAccessReviewInterface
func (*FakeAuthorization) SubjectRulesReviews ¶
func (c *FakeAuthorization) SubjectRulesReviews(namespace string) internalversion.SubjectRulesReviewInterface
type FakeClusterRoleBindings ¶
type FakeClusterRoleBindings struct {
Fake *FakeAuthorization
}
FakeClusterRoleBindings implements ClusterRoleBindingInterface
func (*FakeClusterRoleBindings) Create ¶
func (c *FakeClusterRoleBindings) Create(clusterRoleBinding *authorization.ClusterRoleBinding) (result *authorization.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.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.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.ClusterRoleBinding, err error)
Patch applies the patch and returns the patched clusterRoleBinding.
func (*FakeClusterRoleBindings) Update ¶
func (c *FakeClusterRoleBindings) Update(clusterRoleBinding *authorization.ClusterRoleBinding) (result *authorization.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 *FakeAuthorization
}
FakeClusterRoles implements ClusterRoleInterface
func (*FakeClusterRoles) Create ¶
func (c *FakeClusterRoles) Create(clusterRole *authorization.ClusterRole) (result *authorization.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.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.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.ClusterRole, err error)
Patch applies the patch and returns the patched clusterRole.
func (*FakeClusterRoles) Update ¶
func (c *FakeClusterRoles) Update(clusterRole *authorization.ClusterRole) (result *authorization.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 *FakeAuthorization // contains filtered or unexported fields }
FakeLocalResourceAccessReviews implements LocalResourceAccessReviewInterface
func (*FakeLocalResourceAccessReviews) Create ¶
func (c *FakeLocalResourceAccessReviews) Create(localResourceAccessReview *authorization.LocalResourceAccessReview) (result *authorization.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 *FakeAuthorization // contains filtered or unexported fields }
FakeLocalSubjectAccessReviews implements LocalSubjectAccessReviewInterface
func (*FakeLocalSubjectAccessReviews) Create ¶
func (c *FakeLocalSubjectAccessReviews) Create(localSubjectAccessReview *authorization.LocalSubjectAccessReview) (result *authorization.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 FakeResourceAccessReviews ¶
type FakeResourceAccessReviews struct {
Fake *FakeAuthorization
}
FakeResourceAccessReviews implements ResourceAccessReviewInterface
func (*FakeResourceAccessReviews) Create ¶
func (c *FakeResourceAccessReviews) Create(resourceAccessReview *authorization.ResourceAccessReview) (result *authorization.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 *FakeAuthorization // contains filtered or unexported fields }
FakeRoleBindingRestrictions implements RoleBindingRestrictionInterface
func (*FakeRoleBindingRestrictions) Create ¶
func (c *FakeRoleBindingRestrictions) Create(roleBindingRestriction *authorization.RoleBindingRestriction) (result *authorization.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.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.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.RoleBindingRestriction, err error)
Patch applies the patch and returns the patched roleBindingRestriction.
func (*FakeRoleBindingRestrictions) Update ¶
func (c *FakeRoleBindingRestrictions) Update(roleBindingRestriction *authorization.RoleBindingRestriction) (result *authorization.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 *FakeAuthorization // contains filtered or unexported fields }
FakeRoleBindings implements RoleBindingInterface
func (*FakeRoleBindings) Create ¶
func (c *FakeRoleBindings) Create(roleBinding *authorization.RoleBinding) (result *authorization.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.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.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.RoleBinding, err error)
Patch applies the patch and returns the patched roleBinding.
func (*FakeRoleBindings) Update ¶
func (c *FakeRoleBindings) Update(roleBinding *authorization.RoleBinding) (result *authorization.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 *FakeAuthorization // contains filtered or unexported fields }
FakeRoles implements RoleInterface
func (*FakeRoles) Create ¶
func (c *FakeRoles) Create(role *authorization.Role) (result *authorization.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.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.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.Role, err error)
Patch applies the patch and returns the patched role.
func (*FakeRoles) Update ¶
func (c *FakeRoles) Update(role *authorization.Role) (result *authorization.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 *FakeAuthorization // contains filtered or unexported fields }
FakeSelfSubjectRulesReviews implements SelfSubjectRulesReviewInterface
func (*FakeSelfSubjectRulesReviews) Create ¶
func (c *FakeSelfSubjectRulesReviews) Create(selfSubjectRulesReview *authorization.SelfSubjectRulesReview) (result *authorization.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 *FakeAuthorization
}
FakeSubjectAccessReviews implements SubjectAccessReviewInterface
func (*FakeSubjectAccessReviews) Create ¶
func (c *FakeSubjectAccessReviews) Create(subjectAccessReview *authorization.SubjectAccessReview) (result *authorization.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 *FakeAuthorization // contains filtered or unexported fields }
FakeSubjectRulesReviews implements SubjectRulesReviewInterface
func (*FakeSubjectRulesReviews) Create ¶
func (c *FakeSubjectRulesReviews) Create(subjectRulesReview *authorization.SubjectRulesReview) (result *authorization.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_clusterrole.go
- fake_clusterrolebinding.go
- fake_localresourceaccessreview.go
- fake_localsubjectaccessreview.go
- fake_resourceaccessreview.go
- fake_role.go
- fake_rolebinding.go
- fake_rolebindingrestriction.go
- fake_selfsubjectrulesreview.go
- fake_subjectaccessreview.go
- fake_subjectrulesreview.go