oss

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2020 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register() common.Caller

Types

type CallerCfg

type CallerCfg struct {
	Debug           bool
	Mode            string
	Addr            string
	AccessKeyID     string
	AccessKeySecret string
	CdnName         string
	OssBucket       string
	FileBucket      string
	IsDeleteSrcPath bool
}

type Cfg

type Cfg struct {
	Muses struct {
		Oss map[string]CallerCfg `toml:"oss"`
	} `toml:"muses"`
}

type Client

type Client struct {
	standard.Oss
	// contains filtered or unexported fields
}

func Caller

func Caller(name string) *Client

func (*Client) GenerateKey

func (c *Client) GenerateKey(prefix string) string

func (*Client) ShowImg

func (c *Client) ShowImg(img string, style ...string) (url string)

func (*Client) ShowImgArr

func (c *Client) ShowImgArr(imgs []string, style ...string) (urlArr []string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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