Help us shape the future of Go! Take the 2026 Go Developer Survey

users

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAdminUser

func IsAdminUser(req admission.Request, administrators api.UserListSpec) bool

func IsCapsuleUser

func IsCapsuleUser(
	ctx context.Context,
	c client.Client,
	cfg configuration.Configuration,
	user string,
	groups []string,
) bool

func ResolveServiceAccountActor

func ResolveServiceAccountActor(
	ctx context.Context,
	c client.Client,
	ns *corev1.Namespace,
	username string,
	cfg configuration.Configuration,
) (tnt *capsulev1beta2.Tenant, err error)

This function resolves the tenant based on the serviceaccount given via username if a serviceaccount is in a tenant namespace they will return the tenant.

Types

type UserGroupList

type UserGroupList interface {
	Find(needle string) (found bool)
}

func NewUserGroupList

func NewUserGroupList(groups []string) UserGroupList

Jump to

Keyboard shortcuts

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