permissions

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2022 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL