Documentation ¶
Index ¶
- func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFuncdeprecated
- type ClusterRoleBindingAdapter
- func (in *ClusterRoleBindingAdapter) DeepCopy() *ClusterRoleBindingAdapter
- func (in *ClusterRoleBindingAdapter) DeepCopyInto(out *ClusterRoleBindingAdapter)
- func (in ClusterRoleBindingAdapter) DeepCopyRoleBinding() RoleBinding
- func (o ClusterRoleBindingAdapter) GetAnnotations() map[string]string
- func (o ClusterRoleBindingAdapter) GetLabels() map[string]string
- func (o ClusterRoleBindingAdapter) GetName() string
- func (o ClusterRoleBindingAdapter) GetNamespace() string
- func (o ClusterRoleBindingAdapter) GetRoleRef() rbac.RoleRef
- func (o ClusterRoleBindingAdapter) GetSubjects() []rbac.Subject
- func (o ClusterRoleBindingAdapter) GetUID() types.UID
- func (o ClusterRoleBindingAdapter) SetAnnotations(in map[string]string)
- func (o ClusterRoleBindingAdapter) SetLabels(in map[string]string)
- func (o ClusterRoleBindingAdapter) SetSubjects(in []rbac.Subject)
- type ClusterRoleBindingClientAdapter
- func (c ClusterRoleBindingClientAdapter) Create(in RoleBinding) (RoleBinding, error)
- func (c ClusterRoleBindingClientAdapter) Delete(namespace, name string, uid types.UID) error
- func (c ClusterRoleBindingClientAdapter) Get(namespace, name string) (RoleBinding, error)
- func (c ClusterRoleBindingClientAdapter) Update(in RoleBinding) (RoleBinding, error)
- type ClusterRoleModifier
- type ClusterRoleRuleOwner
- func (in *ClusterRoleRuleOwner) DeepCopy() *ClusterRoleRuleOwner
- func (in *ClusterRoleRuleOwner) DeepCopyInto(out *ClusterRoleRuleOwner)
- func (in ClusterRoleRuleOwner) DeepCopyRuleOwner() RuleOwner
- func (o ClusterRoleRuleOwner) GetAnnotations() map[string]string
- func (o ClusterRoleRuleOwner) GetLabels() map[string]string
- func (o ClusterRoleRuleOwner) GetName() string
- func (o ClusterRoleRuleOwner) GetNamespace() string
- func (o ClusterRoleRuleOwner) GetRules() []rbac.PolicyRule
- func (o ClusterRoleRuleOwner) SetAnnotations(in map[string]string)
- func (o ClusterRoleRuleOwner) SetLabels(in map[string]string)
- func (o ClusterRoleRuleOwner) SetRules(in []rbac.PolicyRule)
- type ReconcileClusterRoleBindingResult
- type ReconcileClusterRoleResult
- type ReconcileOperation
- type ReconcileRoleBindingOptions
- type ReconcileRoleOptions
- type RoleBinding
- type RoleBindingAdapter
- func (in *RoleBindingAdapter) DeepCopy() *RoleBindingAdapter
- func (in *RoleBindingAdapter) DeepCopyInto(out *RoleBindingAdapter)
- func (in RoleBindingAdapter) DeepCopyRoleBinding() RoleBinding
- func (o RoleBindingAdapter) GetAnnotations() map[string]string
- func (o RoleBindingAdapter) GetLabels() map[string]string
- func (o RoleBindingAdapter) GetName() string
- func (o RoleBindingAdapter) GetNamespace() string
- func (o RoleBindingAdapter) GetRoleRef() rbac.RoleRef
- func (o RoleBindingAdapter) GetSubjects() []rbac.Subject
- func (o RoleBindingAdapter) GetUID() types.UID
- func (o RoleBindingAdapter) SetAnnotations(in map[string]string)
- func (o RoleBindingAdapter) SetLabels(in map[string]string)
- func (o RoleBindingAdapter) SetSubjects(in []rbac.Subject)
- type RoleBindingClientAdapter
- func (c RoleBindingClientAdapter) Create(in RoleBinding) (RoleBinding, error)
- func (c RoleBindingClientAdapter) Delete(namespace, name string, uid types.UID) error
- func (c RoleBindingClientAdapter) Get(namespace, name string) (RoleBinding, error)
- func (c RoleBindingClientAdapter) Update(in RoleBinding) (RoleBinding, error)
- type RoleBindingModifier
- type RoleModifier
- type RoleRuleOwner
- func (in *RoleRuleOwner) DeepCopy() *RoleRuleOwner
- func (in *RoleRuleOwner) DeepCopyInto(out *RoleRuleOwner)
- func (in RoleRuleOwner) DeepCopyRuleOwner() RuleOwner
- func (o RoleRuleOwner) GetAnnotations() map[string]string
- func (o RoleRuleOwner) GetLabels() map[string]string
- func (o RoleRuleOwner) GetName() string
- func (o RoleRuleOwner) GetNamespace() string
- func (o RoleRuleOwner) GetRules() []rbac.PolicyRule
- func (o RoleRuleOwner) SetAnnotations(in map[string]string)
- func (o RoleRuleOwner) SetLabels(in map[string]string)
- func (o RoleRuleOwner) SetRules(in []rbac.PolicyRule)
- type RuleOwner
- type RuleOwnerModifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGeneratedDeepCopyFuncs
deprecated
func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc
GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them.
Deprecated: deepcopy registration will go away when static deepcopy is fully implemented.
Types ¶
type ClusterRoleBindingAdapter ¶
type ClusterRoleBindingAdapter struct {
ClusterRoleBinding *rbac.ClusterRoleBinding
}
+k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/kubernetes/pkg/registry/rbac/reconciliation.RoleBinding +k8s:deepcopy-gen:nonpointer-interfaces=true
func (*ClusterRoleBindingAdapter) DeepCopy ¶
func (in *ClusterRoleBindingAdapter) DeepCopy() *ClusterRoleBindingAdapter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRoleBindingAdapter.
func (*ClusterRoleBindingAdapter) DeepCopyInto ¶
func (in *ClusterRoleBindingAdapter) DeepCopyInto(out *ClusterRoleBindingAdapter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ClusterRoleBindingAdapter) DeepCopyRoleBinding ¶
func (in ClusterRoleBindingAdapter) DeepCopyRoleBinding() RoleBinding
DeepCopyRoleBinding is an autogenerated deepcopy function, copying the receiver, creating a new RoleBinding.
func (ClusterRoleBindingAdapter) GetAnnotations ¶
func (o ClusterRoleBindingAdapter) GetAnnotations() map[string]string
func (ClusterRoleBindingAdapter) GetLabels ¶
func (o ClusterRoleBindingAdapter) GetLabels() map[string]string
func (ClusterRoleBindingAdapter) GetName ¶
func (o ClusterRoleBindingAdapter) GetName() string
func (ClusterRoleBindingAdapter) GetNamespace ¶
func (o ClusterRoleBindingAdapter) GetNamespace() string
func (ClusterRoleBindingAdapter) GetRoleRef ¶
func (o ClusterRoleBindingAdapter) GetRoleRef() rbac.RoleRef
func (ClusterRoleBindingAdapter) GetSubjects ¶
func (o ClusterRoleBindingAdapter) GetSubjects() []rbac.Subject
func (ClusterRoleBindingAdapter) GetUID ¶
func (o ClusterRoleBindingAdapter) GetUID() types.UID
func (ClusterRoleBindingAdapter) SetAnnotations ¶
func (o ClusterRoleBindingAdapter) SetAnnotations(in map[string]string)
func (ClusterRoleBindingAdapter) SetLabels ¶
func (o ClusterRoleBindingAdapter) SetLabels(in map[string]string)
func (ClusterRoleBindingAdapter) SetSubjects ¶
func (o ClusterRoleBindingAdapter) SetSubjects(in []rbac.Subject)
type ClusterRoleBindingClientAdapter ¶
type ClusterRoleBindingClientAdapter struct {
Client internalversion.ClusterRoleBindingInterface
}
func (ClusterRoleBindingClientAdapter) Create ¶
func (c ClusterRoleBindingClientAdapter) Create(in RoleBinding) (RoleBinding, error)
func (ClusterRoleBindingClientAdapter) Delete ¶
func (c ClusterRoleBindingClientAdapter) Delete(namespace, name string, uid types.UID) error
func (ClusterRoleBindingClientAdapter) Get ¶
func (c ClusterRoleBindingClientAdapter) Get(namespace, name string) (RoleBinding, error)
func (ClusterRoleBindingClientAdapter) Update ¶
func (c ClusterRoleBindingClientAdapter) Update(in RoleBinding) (RoleBinding, error)
type ClusterRoleModifier ¶
type ClusterRoleModifier struct {
Client internalversion.ClusterRoleInterface
}
func (ClusterRoleModifier) Create ¶
func (c ClusterRoleModifier) Create(in RuleOwner) (RuleOwner, error)
type ClusterRoleRuleOwner ¶
type ClusterRoleRuleOwner struct {
ClusterRole *rbac.ClusterRole
}
+k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/kubernetes/pkg/registry/rbac/reconciliation.RuleOwner +k8s:deepcopy-gen:nonpointer-interfaces=true
func (*ClusterRoleRuleOwner) DeepCopy ¶
func (in *ClusterRoleRuleOwner) DeepCopy() *ClusterRoleRuleOwner
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRoleRuleOwner.
func (*ClusterRoleRuleOwner) DeepCopyInto ¶
func (in *ClusterRoleRuleOwner) DeepCopyInto(out *ClusterRoleRuleOwner)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ClusterRoleRuleOwner) DeepCopyRuleOwner ¶
func (in ClusterRoleRuleOwner) DeepCopyRuleOwner() RuleOwner
DeepCopyRuleOwner is an autogenerated deepcopy function, copying the receiver, creating a new RuleOwner.
func (ClusterRoleRuleOwner) GetAnnotations ¶
func (o ClusterRoleRuleOwner) GetAnnotations() map[string]string
func (ClusterRoleRuleOwner) GetLabels ¶
func (o ClusterRoleRuleOwner) GetLabels() map[string]string
func (ClusterRoleRuleOwner) GetName ¶
func (o ClusterRoleRuleOwner) GetName() string
func (ClusterRoleRuleOwner) GetNamespace ¶
func (o ClusterRoleRuleOwner) GetNamespace() string
func (ClusterRoleRuleOwner) GetRules ¶
func (o ClusterRoleRuleOwner) GetRules() []rbac.PolicyRule
func (ClusterRoleRuleOwner) SetAnnotations ¶
func (o ClusterRoleRuleOwner) SetAnnotations(in map[string]string)
func (ClusterRoleRuleOwner) SetLabels ¶
func (o ClusterRoleRuleOwner) SetLabels(in map[string]string)
func (ClusterRoleRuleOwner) SetRules ¶
func (o ClusterRoleRuleOwner) SetRules(in []rbac.PolicyRule)
type ReconcileClusterRoleBindingResult ¶
type ReconcileClusterRoleBindingResult struct { // RoleBinding is the reconciled rolebinding from the reconciliation operation. // If the reconcile was performed as a dry-run, or the existing rolebinding was protected, the reconciled rolebinding is not persisted. RoleBinding RoleBinding // MissingSubjects contains expected subjects that were missing from the currently persisted rolebinding MissingSubjects []rbac.Subject // ExtraSubjects contains extra subjects the currently persisted rolebinding had ExtraSubjects []rbac.Subject // Operation is the API operation required to reconcile. // If no reconciliation was needed, it is set to ReconcileNone. // If options.Confirm == false, the reconcile was in dry-run mode, so the operation was not performed. // If result.Protected == true, the rolebinding opted out of reconciliation, so the operation was not performed. // Otherwise, the operation was performed. Operation ReconcileOperation // Protected indicates an existing role prevented reconciliation Protected bool }
ReconcileClusterRoleBindingResult holds the result of a reconciliation operation.
type ReconcileClusterRoleResult ¶
type ReconcileClusterRoleResult struct { // Role is the reconciled role from the reconciliation operation. // If the reconcile was performed as a dry-run, or the existing role was protected, the reconciled role is not persisted. Role RuleOwner // MissingRules contains expected rules that were missing from the currently persisted role MissingRules []rbac.PolicyRule // ExtraRules contains extra permissions the currently persisted role had ExtraRules []rbac.PolicyRule // Operation is the API operation required to reconcile. // If no reconciliation was needed, it is set to ReconcileNone. // If options.Confirm == false, the reconcile was in dry-run mode, so the operation was not performed. // If result.Protected == true, the role opted out of reconciliation, so the operation was not performed. // Otherwise, the operation was performed. Operation ReconcileOperation // Protected indicates an existing role prevented reconciliation Protected bool }
type ReconcileOperation ¶
type ReconcileOperation string
var ( ReconcileCreate ReconcileOperation = "create" ReconcileUpdate ReconcileOperation = "update" ReconcileRecreate ReconcileOperation = "recreate" ReconcileNone ReconcileOperation = "none" )
type ReconcileRoleBindingOptions ¶
type ReconcileRoleBindingOptions struct { // RoleBinding is the expected rolebinding that will be reconciled RoleBinding RoleBinding // Confirm indicates writes should be performed. When false, results are returned as a dry-run. Confirm bool // RemoveExtraSubjects indicates reconciliation should remove extra subjects from an existing role binding RemoveExtraSubjects bool // Client is used to look up existing rolebindings, and create/update the rolebinding when Confirm=true Client RoleBindingModifier }
ReconcileRoleBindingOptions holds options for running a role binding reconciliation
func (*ReconcileRoleBindingOptions) Run ¶
func (o *ReconcileRoleBindingOptions) Run() (*ReconcileClusterRoleBindingResult, error)
type ReconcileRoleOptions ¶
type ReconcileRoleOptions struct { // Role is the expected role that will be reconciled Role RuleOwner // Confirm indicates writes should be performed. When false, results are returned as a dry-run. Confirm bool // RemoveExtraPermissions indicates reconciliation should remove extra permissions from an existing role RemoveExtraPermissions bool // Client is used to look up existing roles, and create/update the role when Confirm=true Client RuleOwnerModifier }
func (*ReconcileRoleOptions) Run ¶
func (o *ReconcileRoleOptions) Run() (*ReconcileClusterRoleResult, error)
type RoleBinding ¶
type RoleBinding interface { GetNamespace() string GetName() string GetUID() types.UID GetLabels() map[string]string SetLabels(map[string]string) GetAnnotations() map[string]string SetAnnotations(map[string]string) GetRoleRef() rbac.RoleRef GetSubjects() []rbac.Subject SetSubjects([]rbac.Subject) DeepCopyRoleBinding() RoleBinding }
type RoleBindingAdapter ¶
type RoleBindingAdapter struct {
RoleBinding *rbac.RoleBinding
}
+k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/kubernetes/pkg/registry/rbac/reconciliation.RoleBinding +k8s:deepcopy-gen:nonpointer-interfaces=true
func (*RoleBindingAdapter) DeepCopy ¶
func (in *RoleBindingAdapter) DeepCopy() *RoleBindingAdapter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleBindingAdapter.
func (*RoleBindingAdapter) DeepCopyInto ¶
func (in *RoleBindingAdapter) DeepCopyInto(out *RoleBindingAdapter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (RoleBindingAdapter) DeepCopyRoleBinding ¶
func (in RoleBindingAdapter) DeepCopyRoleBinding() RoleBinding
DeepCopyRoleBinding is an autogenerated deepcopy function, copying the receiver, creating a new RoleBinding.
func (RoleBindingAdapter) GetAnnotations ¶
func (o RoleBindingAdapter) GetAnnotations() map[string]string
func (RoleBindingAdapter) GetLabels ¶
func (o RoleBindingAdapter) GetLabels() map[string]string
func (RoleBindingAdapter) GetName ¶
func (o RoleBindingAdapter) GetName() string
func (RoleBindingAdapter) GetNamespace ¶
func (o RoleBindingAdapter) GetNamespace() string
func (RoleBindingAdapter) GetRoleRef ¶
func (o RoleBindingAdapter) GetRoleRef() rbac.RoleRef
func (RoleBindingAdapter) GetSubjects ¶
func (o RoleBindingAdapter) GetSubjects() []rbac.Subject
func (RoleBindingAdapter) GetUID ¶
func (o RoleBindingAdapter) GetUID() types.UID
func (RoleBindingAdapter) SetAnnotations ¶
func (o RoleBindingAdapter) SetAnnotations(in map[string]string)
func (RoleBindingAdapter) SetLabels ¶
func (o RoleBindingAdapter) SetLabels(in map[string]string)
func (RoleBindingAdapter) SetSubjects ¶
func (o RoleBindingAdapter) SetSubjects(in []rbac.Subject)
type RoleBindingClientAdapter ¶
type RoleBindingClientAdapter struct { Client internalversion.RoleBindingsGetter NamespaceClient core.NamespaceInterface }
func (RoleBindingClientAdapter) Create ¶
func (c RoleBindingClientAdapter) Create(in RoleBinding) (RoleBinding, error)
func (RoleBindingClientAdapter) Delete ¶
func (c RoleBindingClientAdapter) Delete(namespace, name string, uid types.UID) error
func (RoleBindingClientAdapter) Get ¶
func (c RoleBindingClientAdapter) Get(namespace, name string) (RoleBinding, error)
func (RoleBindingClientAdapter) Update ¶
func (c RoleBindingClientAdapter) Update(in RoleBinding) (RoleBinding, error)
type RoleBindingModifier ¶
type RoleBindingModifier interface { Get(namespace, name string) (RoleBinding, error) Delete(namespace, name string, uid types.UID) error Create(RoleBinding) (RoleBinding, error) Update(RoleBinding) (RoleBinding, error) }
type RoleModifier ¶
type RoleModifier struct { Client internalversion.RolesGetter NamespaceClient core.NamespaceInterface }
type RoleRuleOwner ¶
+k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/kubernetes/pkg/registry/rbac/reconciliation.RuleOwner +k8s:deepcopy-gen:nonpointer-interfaces=true
func (*RoleRuleOwner) DeepCopy ¶
func (in *RoleRuleOwner) DeepCopy() *RoleRuleOwner
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleRuleOwner.
func (*RoleRuleOwner) DeepCopyInto ¶
func (in *RoleRuleOwner) DeepCopyInto(out *RoleRuleOwner)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (RoleRuleOwner) DeepCopyRuleOwner ¶
func (in RoleRuleOwner) DeepCopyRuleOwner() RuleOwner
DeepCopyRuleOwner is an autogenerated deepcopy function, copying the receiver, creating a new RuleOwner.
func (RoleRuleOwner) GetAnnotations ¶
func (o RoleRuleOwner) GetAnnotations() map[string]string
func (RoleRuleOwner) GetLabels ¶
func (o RoleRuleOwner) GetLabels() map[string]string
func (RoleRuleOwner) GetName ¶
func (o RoleRuleOwner) GetName() string
func (RoleRuleOwner) GetNamespace ¶
func (o RoleRuleOwner) GetNamespace() string
func (RoleRuleOwner) GetRules ¶
func (o RoleRuleOwner) GetRules() []rbac.PolicyRule
func (RoleRuleOwner) SetAnnotations ¶
func (o RoleRuleOwner) SetAnnotations(in map[string]string)
func (RoleRuleOwner) SetLabels ¶
func (o RoleRuleOwner) SetLabels(in map[string]string)
func (RoleRuleOwner) SetRules ¶
func (o RoleRuleOwner) SetRules(in []rbac.PolicyRule)