portable

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package portable defines Pasture's portable cross-boundary identity types. It is deliberately dependency-free of pkg/protocol's TaskTracker facade (and therefore of github.com/dayvidpham/provenance): internal/codegen/ir compiles documents entirely in memory and must not pull in a durable-store client transitively through an unrelated identity type. See dependency_guard_test.go in internal/codegen/ir for the enforced boundary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentRef

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

AgentRef identifies a registered bootstrap agent at the portable IR boundary.

func NewAgentRef

func NewAgentRef(value string) (AgentRef, error)

NewAgentRef validates and constructs a portable bootstrap-agent reference.

func (AgentRef) IsValid

func (r AgentRef) IsValid() bool

func (AgentRef) MarshalJSON

func (r AgentRef) MarshalJSON() ([]byte, error)

func (AgentRef) String

func (r AgentRef) String() string

func (*AgentRef) UnmarshalJSON

func (r *AgentRef) UnmarshalJSON(data []byte) error

type AssignmentRef

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

AssignmentRef is a portable logical assignment identity used by generated protocol documents. It is deliberately distinct from any durable-store ID.

func NewAssignmentRef

func NewAssignmentRef(value string) (AssignmentRef, error)

NewAssignmentRef validates and constructs a portable assignment reference.

func (AssignmentRef) IsValid

func (r AssignmentRef) IsValid() bool

func (AssignmentRef) MarshalJSON

func (r AssignmentRef) MarshalJSON() ([]byte, error)

func (AssignmentRef) String

func (r AssignmentRef) String() string

func (*AssignmentRef) UnmarshalJSON

func (r *AssignmentRef) UnmarshalJSON(data []byte) error

type MutationRef

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

MutationRef identifies one logical stateful invocation across retries. It is not a semantic operation ID or a durable-store idempotency key.

func NewMutationRef

func NewMutationRef(value string) (MutationRef, error)

NewMutationRef validates and constructs a portable logical mutation reference.

func (MutationRef) IsValid

func (r MutationRef) IsValid() bool

func (MutationRef) MarshalJSON

func (r MutationRef) MarshalJSON() ([]byte, error)

func (MutationRef) String

func (r MutationRef) String() string

func (*MutationRef) UnmarshalJSON

func (r *MutationRef) UnmarshalJSON(data []byte) error

type RoleID

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

RoleID is the portable role domain used by assignment continuations. It is separate from the legacy schema RoleId enum and from backend assignment roles.

func NewRoleID

func NewRoleID(value string) (RoleID, error)

NewRoleID validates and constructs a portable role identity.

func (RoleID) IsValid

func (r RoleID) IsValid() bool

func (RoleID) MarshalJSON

func (r RoleID) MarshalJSON() ([]byte, error)

func (RoleID) String

func (r RoleID) String() string

func (*RoleID) UnmarshalJSON

func (r *RoleID) UnmarshalJSON(data []byte) error

type TaskRef

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

TaskRef is a portable logical task identity used by generated documents.

func NewTaskRef

func NewTaskRef(value string) (TaskRef, error)

NewTaskRef validates and constructs a portable task reference.

func (TaskRef) IsValid

func (r TaskRef) IsValid() bool

func (TaskRef) MarshalJSON

func (r TaskRef) MarshalJSON() ([]byte, error)

func (TaskRef) String

func (r TaskRef) String() string

func (*TaskRef) UnmarshalJSON

func (r *TaskRef) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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