initialize

package
v0.1.36 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReasonPartial  = "configuration_initialization_partial"
	ReasonDeclined = "configuration_initialization_declined"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Plan

type Plan struct {
	ConfigPath string
	StatePath  string
	Principal  config.Principal
	Document   []byte
	Partials   []string
}

type Service

type Service struct {
	Current  func() (*user.User, error)
	LookupID func(string) (*user.User, error)
}

func New

func New() *Service

func (*Service) Apply

func (s *Service) Apply(ctx context.Context, plan Plan) error

Apply reauthenticates immediately before the consequential write, recovers only recognized secure interrupted temporaries, and publishes with no-replace hard-link semantics after syncing complete mode-0600 bytes.

func (*Service) Plan

func (s *Service) Plan(configPath, statePath string) (Plan, error)

Plan authenticates the operator from host-native account APIs and derives the complete deterministic first configuration without writing anything.

Jump to

Keyboard shortcuts

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