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 ¶
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.