Documentation ¶
Index ¶
- Variables
- func NewRoleBindingPatcher(upd, orig *RoleBinding) lifecycle.Persister
- func NewRolePatcher(upd, orig *Role) lifecycle.Persister
- type Role
- func (r *Role) Copy() *Role
- func (r *Role) Delete(ctx context.Context, cl client.Client, opts ...lifecycle.DeleteOption) (bool, error)
- func (r *Role) LabelAnnotateFrom(ctx context.Context, from metav1.Object)
- func (r *Role) Load(ctx context.Context, cl client.Client) (bool, error)
- func (r *Role) Owned(ctx context.Context, owner lifecycle.TypedObject) error
- func (r *Role) Persist(ctx context.Context, cl client.Client) error
- type RoleBinding
- func (rb *RoleBinding) Copy() *RoleBinding
- func (rb *RoleBinding) Delete(ctx context.Context, cl client.Client, opts ...lifecycle.DeleteOption) (bool, error)
- func (rb *RoleBinding) LabelAnnotateFrom(ctx context.Context, from metav1.Object)
- func (rb *RoleBinding) Load(ctx context.Context, cl client.Client) (bool, error)
- func (rb *RoleBinding) Owned(ctx context.Context, owner lifecycle.TypedObject) error
- func (rb *RoleBinding) Persist(ctx context.Context, cl client.Client) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
RoleBindingKind = rbacv1.SchemeGroupVersion.WithKind("RoleBinding")
)
View Source
var (
RoleKind = rbacv1.SchemeGroupVersion.WithKind("Role")
)
Functions ¶
func NewRoleBindingPatcher ¶
func NewRoleBindingPatcher(upd, orig *RoleBinding) lifecycle.Persister
func NewRolePatcher ¶
Types ¶
type RoleBinding ¶
type RoleBinding struct { Key client.ObjectKey Object *rbacv1.RoleBinding }
func NewRoleBinding ¶
func NewRoleBinding(key client.ObjectKey) *RoleBinding
func NewRoleBindingFromObject ¶
func NewRoleBindingFromObject(obj *rbacv1.RoleBinding) *RoleBinding
func (*RoleBinding) Copy ¶
func (rb *RoleBinding) Copy() *RoleBinding
func (*RoleBinding) Delete ¶
func (rb *RoleBinding) Delete(ctx context.Context, cl client.Client, opts ...lifecycle.DeleteOption) (bool, error)
func (*RoleBinding) LabelAnnotateFrom ¶
func (rb *RoleBinding) LabelAnnotateFrom(ctx context.Context, from metav1.Object)
func (*RoleBinding) Owned ¶
func (rb *RoleBinding) Owned(ctx context.Context, owner lifecycle.TypedObject) error
Click to show internal directories.
Click to hide internal directories.