authz

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

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