oss

package
v0.0.0-...-3ada85e Latest Latest
Warning

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

Go to latest
Published: Aug 12, 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   `ini:"debug"`
	Mode            string `ini:"mode"`
	Addr            string `ini:"addr"`
	AccessKeyID     string `ini:"accessKeyId"`
	AccessKeySecret string `ini:"accessKeySecret"`
	CdnName         string `ini:"cdnName"`
	OssBucket       string `ini:"ossBucket"`
	FileBucket      string `ini:"fileBucket"`
	IsDeleteSrcPath bool   `ini:"isDeleteSrcPath"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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