Documentation
¶
Overview ¶
Package nodeavailability holds owner-declared advisory availability. A profile never changes trust, resource admission, expiry, execution or settlement.
Index ¶
Constants ¶
View Source
const Capability = "node-availability-v1"
View Source
const MaxDocumentBytes = 8 << 10
View Source
const MetadataKey = "node_availability_v1"
Variables ¶
This section is empty.
Functions ¶
func DecodeHost ¶
func DecodeReadTarget ¶
Targets use the existing native registry resolver, never a private alias map. Browser node contexts still pass their exact selected canonical ID.
func ValidProfile ¶
Types ¶
type Declaration ¶
type Document ¶
type Document struct {
Schema int `json:"schema"`
Host string `json:"host"`
Owner string `json:"owner"`
Revision uint64 `json:"revision"`
Profile string `json:"profile"`
Reason string `json:"reason"`
UpdatedAt time.Time `json:"updated_at"`
LastUpdate Update `json:"last_update"`
}
func DecodeDocument ¶
DecodeDocument accepts only the exact canonical private metadata producer. Missing metadata is handled separately and never creates a startup write.
type Inspection ¶
type Inspection struct {
Schema int `json:"schema"`
Host string `json:"host"`
OwnerDeclared *Declaration `json:"owner_declared,omitempty"`
DeclarationState string `json:"declaration_state"`
ConnectionState string `json:"connection_state"`
Failure string `json:"failure,omitempty"`
LastSuccess *time.Time `json:"last_success_at,omitempty"`
NextAttempt *time.Time `json:"next_attempt_at,omitempty"`
Resources ResourceStates `json:"resource_freshness"`
}
Inspection is the proposed optional local-gateway projection for one exact chosen node. It describes observations, never eligibility or a resource grant.
type Report ¶
type Report struct {
Schema int `json:"schema"`
Host string `json:"host"`
OwnerDeclared Declaration `json:"owner_declared"`
ObservedAt time.Time `json:"observed_at"`
}
type ResourceStates ¶
Click to show internal directories.
Click to hide internal directories.