options

package
v0.0.0-...-e1432cf Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version string = "v0.0.1"

Functions

This section is empty.

Types

type AliyunOptions

type AliyunOptions struct {
	AccessKeyId     string `yaml:"access_key_id"`
	AccessKeySecret string `yaml:"access_key_secret"`
	RegionId        string `yaml:"region_id"`
	Endpoint        string `yaml:"endpoint"`
}

type CoreOptions

type CoreOptions struct {
	Log LogOptions `yaml:"log"`
}

type InputOutputOptions

type InputOutputOptions struct {
	Type   string `yaml:"type"`
	Path   string `yaml:"path"`
	Target string `yaml:"target"`
}

type LogOptions

type LogOptions struct {
	Level    string `yaml:"level"`
	Path     string `yaml:"path"`
	MaxSize  int    `yaml:"maxsize"`
	MaxAge   int    `yaml:"maxage"`
	Compress bool   `yaml:"compress"`
}

type Options

type Options struct {
	Core  CoreOptions   `yaml:"core"`
	Tasks []TaskOptions `yaml:"tasks"`
}

func NewOptions

func NewOptions() (opts Options)

type TaskOptions

type TaskOptions struct {
	Name    string             `yaml:"name"`
	Enabled bool               `yaml:"enabled"`
	Type    string             `yaml:"type"`
	Threads int                `yaml:"threads"`
	Aliyun  AliyunOptions      `yaml:"aliyun"`
	Tencent TencentOptions     `yaml:"tencent"`
	Input   InputOutputOptions `yaml:"input"`
	Output  InputOutputOptions `yaml:"output"`
}

type TencentOptions

type TencentOptions struct {
	SecretId  string `yaml:"secret_id"`
	SecretKey string `yaml:"secret_key"`
	Region    string `yaml:"region"`
	Endpoint  string `yaml:"endpoint"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳