Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PreparedUpdate ¶ added in v0.9.3
type PreparedUpdate struct {
// contains filtered or unexported fields
}
PreparedUpdate seals an onboarding service's completion change for the resource activation WAL. It contains no filesystem mutation callback.
func (*PreparedUpdate) ActivationData ¶ added in v0.9.3
func (p *PreparedUpdate) ActivationData() (string, []byte, error)
ActivationData returns only the service-owned target and canonical bytes.
func (*PreparedUpdate) CheckPrevious ¶ added in v0.9.3
func (p *PreparedUpdate) CheckPrevious(raw []byte) error
CheckPrevious verifies the service snapshot against the exact disk object captured by the activation owner before staging its replacement.
func (*PreparedUpdate) Publish ¶ added in v0.9.3
func (p *PreparedUpdate) Publish()
Publish updates memory only after the shared resource WAL commits disk.
func (*PreparedUpdate) Recheck ¶ added in v0.9.3
func (p *PreparedUpdate) Recheck() error
Recheck confirms that the staged update is still current before commit.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) PrepareActivation ¶ added in v0.9.3
func (s *Service) PrepareActivation(before State, complete *bool) (*PreparedUpdate, error)
PrepareActivation captures the service state without publishing an update.
type Snapshot ¶
Snapshot couples onboarding values with the global revision at which they were observed.
type State ¶ added in v0.9.2
type State struct {
Complete bool
}
State is the onboarding-owned persistent state.