repository

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 6 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"`
	WebhookConfig *webhooks.WebhookConfig     `yaml:"webhook"`
	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