oss

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

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