config

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigDemo

func GetConfigDemo() []byte

Types

type Path

type Path struct {
	Source string `yaml:"source"`
	Dest   string `yaml:"dest"`
}

type TransferConfig

type TransferConfig struct {
	Storage string `yaml:"storage"`
	Upload  struct {
		List   []Path   `yaml:"list"`
		Ignore []string `yaml:"ignore"`
	} `yaml:"upload"`
	Download struct {
		List   []Path   `yaml:"list"`
		Ignore []string `yaml:"ignore,omitempty"`
	} `yaml:"download"`
	Osd struct {
		SecretId  string `yaml:"secret_id"`
		SecretKey string `yaml:"secret_key"`
		Bucket    string `yaml:"bucket"`
		Region    string `yaml:"region"`
		Timeout   int    `yaml:"timeout"`
	} `yaml:"osd"`
}

TransferConfig 同步配置

Jump to

Keyboard shortcuts

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