alioss

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OssConfig

type OssConfig struct {
	Endpoint            string `validate:"required"`
	AccessKeyId         string `validate:"required"`
	AccessKeySecret     string `validate:"required"`
	BucketName          string `validate:"required"`
	PrivateServerDomain string `validate:"required"`
}

OSS config

type OssHelper

type OssHelper struct {
	// contains filtered or unexported fields
}

func NewOssHelper

func NewOssHelper(c OssConfig, options ...oss.ClientOption) (*OssHelper, error)

func (OssHelper) Upload

func (h OssHelper) Upload(objectKey string, b []byte, options ...oss.Option) (url string, err error)

Jump to

Keyboard shortcuts

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