authz

package
v1.0.0-main Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2025 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sAuthZ

type K8sAuthZ struct {
	K8sClient k8sclient.K8SClient
	Namespace string
}

func (K8sAuthZ) CheckPermission

func (k8sAuth K8sAuthZ) CheckPermission(ctx context.Context, k8sToken string, resource string, op string) (bool, error)

type MembershipChecker added in v0.10.0

type MembershipChecker interface {
	IsMemberOf(ctx context.Context, identity common.Identity, orgID uuid.UUID) (bool, error)
}

type OrgMembershipAuthZ added in v0.10.0

type OrgMembershipAuthZ struct {
	// contains filtered or unexported fields
}

func NewOrgMembershipAuthZ added in v0.10.0

func NewOrgMembershipAuthZ(checker MembershipChecker) *OrgMembershipAuthZ

func (*OrgMembershipAuthZ) CheckPermission added in v0.10.0

func (o *OrgMembershipAuthZ) CheckPermission(ctx context.Context, resource string, op string) (bool, error)

Jump to

Keyboard shortcuts

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