Documentation
¶
Overview ¶
Package scope defines policy-neutral resource attribution.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceScope ¶
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 (ResourceScope) IsGlobal ¶
func (s ResourceScope) IsGlobal() bool
IsGlobal reports whether this is the legacy global scope.
Click to show internal directories.
Click to hide internal directories.