Documentation ¶
Index ¶
Constants ¶
View Source
const (
ClusterAdminRoleID = "cluster-admin"
)
Variables ¶
View Source
var ( ClusterAdminRole = types.Role{ ID: "cluster-admin", Name: "Cluster Admin", Description: "Read/write access to all resources", Allow: []types.Policy{PolicyAllowAll}, } SupportRole = types.Role{ ID: "support", Name: "Support", Description: "Role for support personnel", Allow: []types.Policy{ PolicyReadonly, {Action: "**", Resource: "preflight.*"}, {Action: "**", Resource: "**.preflight.*"}, {Action: "**", Resource: "supportbundle.*"}, {Action: "**", Resource: "**.supportbundle.*"}, }, Deny: []types.Policy{ {Action: "**", Resource: "app.*.downstream.filetree."}, }, } PolicyAllowAll = types.Policy{ Name: "Allow All", Action: "**", Resource: "**", } PolicyReadonly = types.Policy{ Name: "Read Only", Action: "read", Resource: "**", } )
Functions ¶
func CheckAccess ¶
func DefaultRoles ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.