config

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppConfig = "config.toml"
	AppLog    = "app.log"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Settings []Setting
}

type Credential

type Credential struct {
	Endpoint        string `required:"true"`
	AccessKeyID     string `required:"true"`
	AccessKeySecret string `required:"true"`
	Bucket          string `required:"true"`
	Prefix          string `required:"true"`
}

type Setting

type Setting struct {
	Name  string `required:"true"`
	Local string `required:"true"`
	Credential
	IgnoreHiddenFiles bool
	Delete            bool
}
var EmptySetting Setting

func (Setting) BucketKey added in v1.0.2

func (s Setting) BucketKey() string

func (Setting) DisplayName added in v1.0.2

func (s Setting) DisplayName() string

func (Setting) Key added in v1.0.2

func (s Setting) Key() string

func (Setting) Mountpoint added in v1.0.4

func (s Setting) Mountpoint() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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