goss

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Aliyun  = "aliyun"
	Tencent = "tencent"
	Qiniu   = "qiniu"
	Huawei  = "huawei"
	S3      = "s3"
	Minio   = "minio"
)

Variables

View Source
var (
	// ErrNoDefaultDriver no default driver configured error.
	ErrNoDefaultDriver = errors.New("no default driver set")

	// ErrDriverNotExists driver not registered error.
	ErrDriverNotExists = errors.New("driver not exists")
)

Functions

This section is empty.

Types

type Goss

type Goss struct {
	core.Kernel
}

Goss is the wrapper for core.Kernel

func New

func New(configPath string) (*Goss, error)

New creates a new instance based on the configuration file pointed to by configPath.

func NewEnv

func NewEnv() (*Goss, error)

func NewFromUserHomeConfigPath

func NewFromUserHomeConfigPath() (*Goss, error)

NewFromUserHomeConfigPath creates a new instance based on the configuration file pointed to by user home directory.

func (*Goss) RegisterAliyunDriver

func (g *Goss) RegisterAliyunDriver() error

RegisterAliyunDriver register aliyun driver.

func (*Goss) RegisterQiniuDriver

func (g *Goss) RegisterQiniuDriver() error

RegisterQiniuDriver register qiniu driver.

func (*Goss) RegisterTencentDriver

func (g *Goss) RegisterTencentDriver() error

RegisterTencentDriver register tencent driver.

Jump to

Keyboard shortcuts

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