migration

package
v0.1.32 Latest Latest
Warning

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

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

Documentation

Overview

Package migration implements authenticated migration from exact legacy local defaults to the canonical per-operator layout.

Index

Constants

View Source
const Confirmation = "migrate aegis to ~/.argis"

Variables

This section is empty.

Functions

func Digest

func Digest(p Plan) string

Types

type Artifact

type Artifact struct {
	Source, Destination, Kind string
	// contains filtered or unexported fields
}

type Identity

type Identity struct {
	Device, Inode uint64
	Mode          uint32
	UID, GID      uint32
	Links         uint64
	Size          int64
	ModTime       int64
}

type Plan

type Plan struct {
	SourceConfig      string     `json:"source_config"`
	SourceState       string     `json:"source_state"`
	SourceCheckpoints string     `json:"source_checkpoints"`
	DestinationRoot   string     `json:"destination_root"`
	DestinationConfig string     `json:"destination_config"`
	DestinationState  string     `json:"destination_state"`
	Artifacts         []Artifact `json:"artifacts"`
	Preserved         []string   `json:"preserve"`
	Confirmation      string     `json:"confirmation"`
	PrincipalUID      string     `json:"principal_uid"`
	PrincipalUser     string     `json:"principal_user"`
	// contains filtered or unexported fields
}

type Service

type Service struct {
	Home     func() (string, error)
	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

func (*Service) Plan

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

Jump to

Keyboard shortcuts

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