config

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SCP   = "scp"
	Minio = "minio"
	S3    = "s3"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Type            string `yaml:"backup_type"`
	BackupDirectory string `yaml:"backup_directory"`
	Minio           struct {
		Alias      string `yaml:"alias" default:"minio"`
		URL        string `yaml:"url"`
		AccessKey  string `yaml:"access_key"`
		SecretKey  string `yaml:"secret_key"`
		Insecure   bool   `yaml:"insecure,omitempty"`
		BucketName string `yaml:"bucket_name"`
		BucketPath string `yaml:"bucket_path" default:"p.mysql"`
		Api        string `yaml:"api" default:"S3v4"`
		Path       string `yaml:"path" default:"auto"`
	} `yaml:"minio,omitempty"`
	S3 struct {
		Endpoint        string `yaml:"endpoint"`
		AccessKeyID     string `yaml:"access_key_id"`
		SecretAccessKey string `yaml:"secret_access_key"`
		Region          string `yaml:"region" default:"us-east-1"`
		BucketName      string `yaml:"bucket_name"`
		BucketPath      string `yaml:"bucket_path" default:"p.mysql"`
		Insecure        bool   `yaml:"insecure,omitempty"`
		ForcePathStyle  bool   `yaml:"force_path_style,omitempty"`
	} `yaml:"s3,omitempty"`
	SCP struct {
		Username             string `yaml:"username"`
		Hostname             string `yaml:"hostname"`
		DestinationDirectory string `yaml:"destination_directory"`
		Port                 int    `yaml:"port"`
		PrivateKey           string `yaml:"private_key"`
	} `yaml:"scp,omitempty"`
}

Jump to

Keyboard shortcuts

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