Documentation ¶
Index ¶
- Constants
- Variables
- func GetTypedNamespacedName(resourceType string, objectMeta *v12.ObjectMeta) string
- type RbacManager
- func (r *RbacManager) ApplyGroupMapping(mapping *v1beta1.GroupMapping)
- func (r *RbacManager) ApplyRoleMapping(mapping *v1beta1.RoleMapping) error
- func (r *RbacManager) ClearGroupMapping(objectMeta *v12.ObjectMeta)
- func (r *RbacManager) ClearRoleMapping(objectMeta *v12.ObjectMeta)
- func (r *RbacManager) Commit(force bool) error
- func (r *RbacManager) IsDirty() bool
Constants ¶
View Source
const ( GROUP_FORMAT = "g, %s, role:%s" PERMISSION_FORMAT = "p, role:%s, %s, %s, %s, allow" DEFAULT_CONFIGMAP_NAME = "argocd-rbac-cm" DEFAULT_CONFIGMAP_NAMESPACE = "argocd" DEFAULT_POLICY_KEY = "policy.default" DEFAULT_RBAC_KEY = "policy.csv" GROUP_TYPE = "groups" ROLE_TYPE = "roles" )
Variables ¶
Functions ¶
func GetTypedNamespacedName ¶
func GetTypedNamespacedName(resourceType string, objectMeta *v12.ObjectMeta) string
Types ¶
type RbacManager ¶
type RbacManager struct {
// contains filtered or unexported fields
}
func NewRbacManager ¶
func (*RbacManager) ApplyGroupMapping ¶
func (r *RbacManager) ApplyGroupMapping(mapping *v1beta1.GroupMapping)
func (*RbacManager) ApplyRoleMapping ¶
func (r *RbacManager) ApplyRoleMapping(mapping *v1beta1.RoleMapping) error
func (*RbacManager) ClearGroupMapping ¶
func (r *RbacManager) ClearGroupMapping(objectMeta *v12.ObjectMeta)
func (*RbacManager) ClearRoleMapping ¶
func (r *RbacManager) ClearRoleMapping(objectMeta *v12.ObjectMeta)
func (*RbacManager) Commit ¶
func (r *RbacManager) Commit(force bool) error
func (*RbacManager) IsDirty ¶
func (r *RbacManager) IsDirty() bool
Click to show internal directories.
Click to hide internal directories.