onboarding

package
v0.9.3-dev.3 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: GPL-3.0 Imports: 9 Imported by: 0 modules, 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	StatePath            string
	InitialSetupRequired bool
	SaveState            func(string, State) (config.CommitResult, error)
	OnPersistenceWarning func(error)
}

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 Open

func Open(options Options) (*Service, error)

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.

func (*Service) State added in v0.9.2

func (s *Service) State() State

State returns a snapshot of the onboarding-owned state.

func (*Service) Update

func (s *Service) Update(complete *bool) (State, error)

Update persists and publishes a completion-state update.

type Snapshot

type Snapshot struct {
	Status   Status
	Revision uint64
}

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.

func Load added in v0.9.3

func Load(path string) (State, error)

Load reads existing onboarding state without creating or repairing it.

type Status

type Status struct {
	Complete        bool
	MixedAddr       string
	ControllerAddr  string
	WebAddr         string
	RestartRequired bool
}

type Update

type Update struct {
	Complete       *bool
	MixedAddr      *string
	ControllerAddr *string
	WebAddr        *string
}

Jump to

Keyboard shortcuts

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