mock

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTransaction

func NewTransaction() transaction.Interface

Types

type Transactioner

type Transactioner struct {
	InitErr       error
	StartErr      error
	CommitErr     error
	RollbackErr   error
	Trans         *transaction.Transaction
	UpgradeHelper UpgradeHelper
	SrcDigest     string
	// contains filtered or unexported fields
}

func (Transactioner) Commit

func (t Transactioner) Commit(_ *transaction.Transaction, _ func() error) error

func (Transactioner) GetActiveSnapshotIDs

func (t Transactioner) GetActiveSnapshotIDs() ([]int, error)

func (Transactioner) Init

func (*Transactioner) Rollback

func (t *Transactioner) Rollback(_ *transaction.Transaction, _ error) error

func (Transactioner) RollbackCalled

func (t Transactioner) RollbackCalled() bool

func (Transactioner) Start

type UpgradeHelper

type UpgradeHelper struct {
	SyncError  error
	MergeError error
	FstabError error
	LockError  error
	// contains filtered or unexported fields
}

func (UpgradeHelper) GenerateKernelCmdline

func (u UpgradeHelper) GenerateKernelCmdline(_ *transaction.Transaction) string

func (UpgradeHelper) Lock

func (UpgradeHelper) Merge

func (UpgradeHelper) SyncImageContent

func (u UpgradeHelper) SyncImageContent(imgSrc *deployment.ImageSource, _ *transaction.Transaction, _ ...unpack.Opt) error

func (UpgradeHelper) UpdateFstab

func (u UpgradeHelper) UpdateFstab(_ *transaction.Transaction) error

Jump to

Keyboard shortcuts

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