vault

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewClient = newClientFromEnv

Functions

func FilterACLs

func FilterACLs(rules []rbacv1.PolicyRule) []rbacv1.PolicyRule

func HasACLs

func HasACLs(object client.Object) bool

func ToJSONPolicyString

func ToJSONPolicyString(rules []rbacv1.PolicyRule) string

Types

type PolicyManager

type PolicyManager interface {
	PolicyName(client.Object) string
	WritePolicy(context.Context, client.Object, string) error
	DeletePolicy(context.Context, client.Object) error
}

func NewPolicyManager

func NewPolicyManager() PolicyManager

type RoleManager

type RoleManager interface {
	RoleName(client.Object) string
	WriteRole(ctx context.Context, obj client.Object, params map[string]any) error
	DeleteRole(ctx context.Context, obj client.Object) error
}

func NewRoleManager

func NewRoleManager(authMount string) RoleManager

Jump to

Keyboard shortcuts

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