zijieoss

package
v0.9.11 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ZijieOssClient

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

func (ZijieOssClient) DelObject

func (oc ZijieOssClient) DelObject(fileName string) (bool, error)

func (ZijieOssClient) GetBase64

func (c ZijieOssClient) GetBase64(fileName string) (string, error)

func (ZijieOssClient) GetBytes

func (c ZijieOssClient) GetBytes(fileName string) ([]byte, error)

func (ZijieOssClient) GetFullUrl

func (oc ZijieOssClient) GetFullUrl(fileName string) string

func (ZijieOssClient) GetFullUrlWithSign

func (oc ZijieOssClient) GetFullUrlWithSign(fileName string, expiredInSec int64) (string, error)

func (ZijieOssClient) GetNativePrefix

func (oc ZijieOssClient) GetNativePrefix() string

func (ZijieOssClient) GetNativeWithPrefixUrl added in v0.9.9

func (co ZijieOssClient) GetNativeWithPrefixUrl(fileName string) string

func (ZijieOssClient) GetSignUrl

func (oc ZijieOssClient) GetSignUrl(fileName string, expiredInSec int64) (string, error)

func (ZijieOssClient) IsObjectExist

func (oc ZijieOssClient) IsObjectExist(key string) (bool, error)

func (ZijieOssClient) NewClient

func (ZijieOssClient) NewClient(endpoint, ak, sk, bucketName, region, selfDomain string) (c goss.OssClient, err error)

func (ZijieOssClient) NewDefaultClient

func (oc ZijieOssClient) NewDefaultClient() (c goss.OssClient, err error)

func (ZijieOssClient) Upload

func (oc ZijieOssClient) Upload(key string, reader io.Reader, isPrivate bool) (fileName string, err error)

func (ZijieOssClient) UploadFile

func (c ZijieOssClient) UploadFile(fileName string, file *os.File, isPrivate bool) (string, error)

func (ZijieOssClient) UploadFileBytes

func (c ZijieOssClient) UploadFileBytes(fileName string, bs []byte, isPrivate bool) (string, error)

func (ZijieOssClient) UploadFileBytesWithFullUrl

func (c ZijieOssClient) UploadFileBytesWithFullUrl(fileName string, bs []byte, isPrivate bool) (string, error)

func (ZijieOssClient) UploadFileBytesWithNativeFullUrl

func (c ZijieOssClient) UploadFileBytesWithNativeFullUrl(fileName string, bs []byte, isPrivate bool) (string, error)

*

  • /zijieoss/前缀 *
  • @param fileName
  • @param bytes
  • @param isPrivate
  • @param forceUpload 文件名相同是否使用随机文件名进行上传

func (ZijieOssClient) UploadFileWithFullUrl

func (c ZijieOssClient) UploadFileWithFullUrl(fileName string, file *os.File, isPrivate bool) (string, error)

* @param fileName @param file @param isPrivate @return http全路径 @throws Exception

func (ZijieOssClient) UploadFileWithNativeFullUrl

func (c ZijieOssClient) UploadFileWithNativeFullUrl(fileName string, file *os.File, isPrivate bool) (string, error)

*

  • /zijieoss/前缀 *
  • @param fileName
  • @param file
  • @param isPrivate
  • @param forceUpload 文件名相同是否使用随机文件名进行上传

func (ZijieOssClient) UploadFromUrl

func (c ZijieOssClient) UploadFromUrl(urlStr string, isPrivate bool) (string, error)

func (ZijieOssClient) UploadOverwrite

func (oc ZijieOssClient) UploadOverwrite(key string, reader io.Reader, isPrivate bool) (fileName string, err error)

Jump to

Keyboard shortcuts

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