config

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ALIOSSConfig

type ALIOSSConfig struct {
	EndpointAddr string `toml:"endpoint_addr"`
	AccessKey    string `toml:"access_key"`
	SecretKey    string `toml:"secret_key"`
	Bucket       string `toml:"bucket"`
}

ALIOSSConfig 代表阿里云OSS配置

type CloudsConfig

type CloudsConfig struct {
	Platform          string               `toml:"platform"`
	UserS3FsEndpoint  string               `toml:"user_s3fs_endpoint"`
	UserS3FsBucket    string               `toml:"user_s3fs_bucket"`
	UserS3FsAccessKey string               `toml:"user_s3fs_access_key"`
	UserS3FsSecretKey string               `toml:"user_s3fs_secret_key"`
	UserFsMountPoint  string               `toml:"user_fs_mount_point"`
	UserFsSrcAddr     string               `toml:"user_fs_src_addr"`
	UserFSMountPoint  string               `toml:"user_fs_mount_point"`
	DstPath           string               `toml:"dst_path"`
	SrcDataPath       string               `toml:"src_data_path"`
	ALIOSSConfig      ALIOSSConfig         `toml:"ali-oss"`
	WanJiePublicFS    WanJiePublicFSConfig `toml:"wanjie-public-fs"`
	WanJieS3          WanJieS3Config       `toml:"wanjie-s3"`
}

CloudsConfig 代表云端配置

func (*CloudsConfig) String

func (c *CloudsConfig) String() string

type Config

type Config struct {
	Clouds CloudsConfig `toml:"clouds"`
}

Config 配置

func GetCfg

func GetCfg() *Config

func Init

func Init(p string) (*Config, error)

type WanJiePublicFSConfig

type WanJiePublicFSConfig struct {
	PublicFSSrcAddr    string `toml:"public_fs_src_addr"`
	PublicFSMountPoint string `toml:"public_fs_mount_point"`
}

WanJiePublicFSConfig 代表万界公共文件系统配置

type WanJieS3Config added in v0.0.4

type WanJieS3Config struct {
	EndpointAddr string `toml:"endpoint_addr"`
	Region       string `toml:"region"`
	AccessKey    string `toml:"access_key"`
	SecretKey    string `toml:"secret_key"`
	Bucket       string `toml:"bucket"`
}

WanJieS3Config 代表万界s3配置

Jump to

Keyboard shortcuts

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