repository

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: MIT Imports: 4 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"`
	StorageNames []string          `yaml:"storages"`
	Storages     []storage.Storage `yaml:"-"`
	LocalPath    string            `yaml:"-"`
	Credentials  `yaml:"credentials"`
}

func (*BackupRepo) BackupAndUpload

func (b *BackupRepo) BackupAndUpload() 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