initialize

package
v0.0.0-...-980bd36 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: Apache-2.0 Imports: 9 Imported by: ? 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

Overview

Package initialize contains the code needed to initialize the Kopia and the WAL repositories.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, opts Options) error

Run initializes the Klio WAL and the Kopia repository specified by the options.

Types

type KopiaOptions

type KopiaOptions struct {
	// The Kopia FS
	FS afero.Fs

	// The Kopia encryption password
	EncryptionPassword string

	// InitializeRepo is called to create the Kopia repository
	InitializeRepo func(ctx context.Context) error

	// VerifyRepo is called to verify the Kopia repository password
	VerifyRepo func(ctx context.Context) error
}

KopiaOptions contains all the options needed to initialize and verify a Kopia repository.

type Options

type Options struct {
	// The WAL FS
	WalFS afero.Fs

	// The encryption password to be used for the WALs
	WalEncryptionPassword string

	// Kopia contains all the options for the Kopia repository
	Kopia *KopiaOptions
}

Options are the options needed to initialize a new pair of repositories.

func NewTier1Options

func NewTier1Options(fs afero.Fs, cfg *config.Tier1Config) Options

NewTier1Options creates Options for Tier1 initialization.

func NewTier2Options

func NewTier2Options(cfg *config.Tier2Config, walFS, kopiaFS afero.Fs) Options

NewTier2Options creates Options for Tier2 initialization.

Jump to

Keyboard shortcuts

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