Documentation ¶
Overview ¶
Package rolebinding manipulates the k8s api of rolebinding object
Index ¶
- type Option
- type RoleBinding
- func (r *RoleBinding) Create(rb *rbacv1.RoleBinding) error
- func (r *RoleBinding) Delete(namespace, name string) error
- func (r *RoleBinding) DeleteIfExists(namespace, name string) error
- func (r *RoleBinding) Exists(namespace, name string) error
- func (r *RoleBinding) Get(namespace, name string) (*rbacv1.RoleBinding, error)
- func (r *RoleBinding) Patch(rb *rbacv1.RoleBinding) error
- func (r *RoleBinding) Update(rb *rbacv1.RoleBinding) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*RoleBinding)
Option configures an RoleBinding
func WithCompleteParams ¶
func WithCompleteParams(addr string, client *httpclient.HTTPClient) Option
WithCompleteParams provides an Option
type RoleBinding ¶
type RoleBinding struct {
// contains filtered or unexported fields
}
RoleBinding is the object to encapsulate secrets
func (*RoleBinding) Create ¶
func (r *RoleBinding) Create(rb *rbacv1.RoleBinding) error
Create create a k8s rolebinding
func (*RoleBinding) Delete ¶
func (r *RoleBinding) Delete(namespace, name string) error
Delete delete a k8s rolebinding
func (*RoleBinding) DeleteIfExists ¶
func (r *RoleBinding) DeleteIfExists(namespace, name string) error
DeleteIfExists delete if k8s rolebinding exists
func (*RoleBinding) Exists ¶
func (r *RoleBinding) Exists(namespace, name string) error
Exists decides whether a rolebinding exists
func (*RoleBinding) Get ¶
func (r *RoleBinding) Get(namespace, name string) (*rbacv1.RoleBinding, error)
Get gets a k8s rolebindling
func (*RoleBinding) Patch ¶
func (r *RoleBinding) Patch(rb *rbacv1.RoleBinding) error
Patch patches a k8s rolebinding object
func (*RoleBinding) Update ¶
func (r *RoleBinding) Update(rb *rbacv1.RoleBinding) error
Update updates a k8s rolebinding
Click to show internal directories.
Click to hide internal directories.