scope

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package scope defines policy-neutral resource attribution.

Index

Constants

View Source
const Version = "1.0"

Version identifies the resource scope wire contract.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceScope

type ResourceScope struct {
	OwnerSubjectID identity.SubjectID `json:"owner_subject_id,omitempty"`
}

ResourceScope attributes a resource to an opaque subject. Callers must authorize the scope at their trust boundary before passing it to storage.

func ForSubject

func ForSubject(id identity.SubjectID) ResourceScope

ForSubject returns a scope for an opaque subject.

func Global

func Global() ResourceScope

Global returns the legacy Community scope.

func (ResourceScope) IsGlobal

func (s ResourceScope) IsGlobal() bool

IsGlobal reports whether this is the legacy global scope.

Jump to

Keyboard shortcuts

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