invocation

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: AGPL-3.0 Imports: 4 Imported by: 1 module, 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

Overview

Package invocation owns host-issued provenance, request admission and ownership. Route IDs and SDK diagnostic metadata are never authenticated principals.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HostContext

func HostContext(ctx context.Context) context.Context

HostContext is native lifecycle/service provenance, never a frontend binding.

Types

type AuthorizeFunc

type AuthorizeFunc func(Principal, string, Target) error

func (AuthorizeFunc) Authorize

func (f AuthorizeFunc) Authorize(p Principal, op string, target Target) error

type Authorizer

type Authorizer interface {
	Authorize(Principal, string, Target) error
}

type Boundary

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

func NewBoundary

func NewBoundary(authorizer Authorizer) *Boundary

func (*Boundary) Admit

func (b *Boundary) Admit(ctx context.Context, operation string, target Target) (context.Context, error)

type Origin

type Origin string
const (
	Host      Origin = "host"
	TrustedUI Origin = "trusted-ui"
)

type Principal

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

Principal can only be issued by native host code. Initial generation reserves an ownership slot; it does not implement revocation or policy change detection.

func (Principal) Generation

func (p Principal) Generation() string

func (Principal) Origin

func (p Principal) Origin() Origin

func (Principal) Owner

func (p Principal) Owner() string

type Request

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

func FromContext

func FromContext(ctx context.Context) (Request, bool)

func (Request) ID

func (r Request) ID() string

func (Request) Operation

func (r Request) Operation() string

func (Request) OwnedBy

func (r Request) OwnedBy(ctx context.Context) bool

func (Request) Principal

func (r Request) Principal() Principal

func (Request) Target

func (r Request) Target() Target

type Scope

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

func NewScope

func NewScope(origin Origin) *Scope

func (*Scope) Context

func (s *Scope) Context(ctx context.Context) context.Context

func (*Scope) Principal

func (s *Scope) Principal() Principal

type Target

type Target struct {
	Provider     string
	Connection   string
	ResourceType string
	Object       string
	Action       string
	Scope        map[string]string
}

Target is access-route input, not canonical resource identity or a grant.

Jump to

Keyboard shortcuts

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