repository

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupRepo

type BackupRepo struct {
	Name        string                      `yaml:"name"`
	SrcRepo     *git.Repository             `yaml:"-"`
	RemoteURL   string                      `yaml:"remote_url"`
	Schedule    string                      `yaml:"schedule"`
	Storages    map[string]*storage.Storage `yaml:"storages"`
	LocalPath   string                      `yaml:"-"`
	Credentials `yaml:"credentials"`
}

func (*BackupRepo) BackupAndUpload

func (b *BackupRepo) BackupAndUpload(ctx context.Context) error

func (*BackupRepo) Initialize

func (b *BackupRepo) Initialize() error

type Credentials

type Credentials struct {
	GitUsername string `yaml:"username"`
	GitPassword string `yaml:"password"`
	GitKeyPath  string `yaml:"key_path"`
}

Jump to

Keyboard shortcuts

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