oss

package
v0.0.0-...-cd24349 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultInvokerCfg = InvokerCfg{
	Debug:           false,
	Mode:            "file",
	Addr:            "",
	AccessKeyID:     "",
	AccessKeySecret: "",
	CdnName:         "",
	OssBucket:       "",
	FileBucket:      "",
	IsDeleteSrcPath: false,
}

Functions

func DefaultBuild

func DefaultBuild() module.Invoker

default invoker build

Types

type Client

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

func Invoker

func Invoker(name string) *Client

invoker

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)

type InvokerCfg

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

example * [beemod.oss.myoss]

debug = true
mode  = "file"

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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