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 ¶
NewAgentRef validates and constructs a portable bootstrap-agent reference.
func (AgentRef) MarshalJSON ¶
func (*AgentRef) UnmarshalJSON ¶
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 (RoleID) MarshalJSON ¶
func (*RoleID) UnmarshalJSON ¶
type TaskRef ¶
type TaskRef struct {
// contains filtered or unexported fields
}
TaskRef is a portable logical task identity used by generated documents.
func NewTaskRef ¶
NewTaskRef validates and constructs a portable task reference.