goss

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: MIT Imports: 10 Imported by: 1

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 NewFromUserHomeConfigPath added in v1.0.1

func NewFromUserHomeConfigPath() (*Goss, error)

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

func (*Goss) RegisterAliyunDriver added in v1.0.1

func (g *Goss) RegisterAliyunDriver() error

RegisterAliyunDriver register aliyun driver.

func (*Goss) RegisterQiniuDriver added in v1.0.1

func (g *Goss) RegisterQiniuDriver() error

RegisterQiniuDriver register qiniu driver.

func (*Goss) RegisterTencentDriver added in v1.0.1

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