Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPermissions ¶
func CheckPermissions(permissionsEnabled bool, user *authContext.User, cluster, namespace, name string) error
CheckPermissions can be used to check if a user has the permissions to access a helm release in a specific cluster and namespace
Types ¶
type Permissions ¶
type Permissions struct { Clusters []string `json:"clusters"` Namespaces []string `json:"namespaces"` Names []string `json:"names"` }
Permissions is the structure of the custom permissions field for the Helm plugin.
Click to show internal directories.
Click to hide internal directories.