aliyun

package
v0.0.0-...-8f391c2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ACL

func ACL(acl string) oss.Option

ACL is an option to set X-Oss-Acl header

func AcceptEncoding

func AcceptEncoding(value string) oss.Option

AcceptEncoding is an option to set Accept-Encoding header

func AddParam

func AddParam(key string, value interface{}) oss.Option

AddParam Allow users to set personalized http params

func CacheControl

func CacheControl(value string) oss.Option

CacheControl is an option to set Cache-Control header

func ContentDisposition

func ContentDisposition(value string) oss.Option

ContentDisposition is an option to set Content-Disposition header

func ContentEncoding

func ContentEncoding(value string) oss.Option

ContentEncoding is an option to set Content-Encoding header

func ContentLanguage

func ContentLanguage(value string) oss.Option

ContentLanguage is an option to set Content-Language header

func ContentLength

func ContentLength(length int64) oss.Option

ContentLength is an option to set Content-Length header

func ContentMD5

func ContentMD5(value string) oss.Option

ContentMD5 is an option to set Content-MD5 header

func ContentType

func ContentType(value string) oss.Option

ContentType is an option to set Content-Type header

func CopySourceIfMatch

func CopySourceIfMatch(value string) oss.Option

CopySourceIfMatch is an option to set X-Oss-Copy-Source-If-Match header

func CopySourceIfModifiedSince

func CopySourceIfModifiedSince(t int64) oss.Option

CopySourceIfModifiedSince is an option to set X-Oss-CopySource-If-Modified-Since header

func CopySourceIfNoneMatch

func CopySourceIfNoneMatch(value string) oss.Option

CopySourceIfNoneMatch is an option to set X-Oss-Copy-Source-If-None-Match header

func CopySourceIfUnmodifiedSince

func CopySourceIfUnmodifiedSince(t int64) oss.Option

CopySourceIfUnmodifiedSince is an option to set X-Oss-Copy-Source-If-Unmodified-Since header

func Delimiter

func Delimiter(value string) oss.Option

Delimiter is an option to set delimiler parameter

func EncodingType

func EncodingType(value string) oss.Option

EncodingType is an option to set encoding-type parameter

func Expires

func Expires(t int64) oss.Option

Expires is an option to set Expires header

func IfMatch

func IfMatch(value string) oss.Option

IfMatch is an option to set If-Match header

func IfModifiedSince

func IfModifiedSince(t int64) oss.Option

IfModifiedSince is an option to set If-Modified-Since header

func IfNoneMatch

func IfNoneMatch(value string) oss.Option

IfNoneMatch is an option to set IfNoneMatch header

func IfUnmodifiedSince

func IfUnmodifiedSince(t int64) oss.Option

IfUnmodifiedSince is an option to set If-Unmodified-Since header

func KeyMarker

func KeyMarker(value string) oss.Option

KeyMarker is an option to set key-marker parameter

func Marker

func Marker(value string) oss.Option

Marker is an option to set marker parameter

func MaxKeys

func MaxKeys(value int) oss.Option

MaxKeys is an option to set maxkeys parameter

func MaxParts

func MaxParts(value int) oss.Option

MaxParts is an option to set max-parts parameter

func MaxUploads

func MaxUploads(value int) oss.Option

MaxUploads is an option to set max-uploads parameter

func Meta

func Meta(key, value string) oss.Option

Meta is an option to set Meta header

func MetadataDirective

func MetadataDirective(value string) oss.Option

MetadataDirective is an option to set X-Oss-Metadata-Directive header

func NewAliyunOss

func NewAliyunOss() l8oss.Oss

func ObjectACL

func ObjectACL(value string) oss.Option

ObjectACL is an option to set X-Oss-Object-Acl header

func Origin

func Origin(value string) oss.Option

Origin is an option to set Origin header

func PartHashCtxHeader

func PartHashCtxHeader(value string) oss.Option

func PartHashCtxParam

func PartHashCtxParam(value string) oss.Option

func PartMd5CtxHeader

func PartMd5CtxHeader(value string) oss.Option

func PartMd5CtxParam

func PartMd5CtxParam(value string) oss.Option

func PartNumberMarker

func PartNumberMarker(value int) oss.Option

PartNumberMarker is an option to set part-number-marker parameter

func Prefix

func Prefix(value string) oss.Option

Prefix is an option to set prefix parameter

func Process

func Process(value string) oss.Option

Process is an option to set x-oss-process param

func Range

func Range(start, end int64) oss.Option

Range is an option to set Range header, [start, end]

func RangeBehavior

func RangeBehavior(value string) oss.Option

RangeBehavior is an option to set Range value, such as "standard"

func RequestPayer

func RequestPayer(value string) oss.Option

RequestPayer is an option to set payer who pay for the request

func ResponseCacheControl

func ResponseCacheControl(value string) oss.Option

ResponseCacheControl is an option to set response-cache-control param

func ResponseContentDisposition

func ResponseContentDisposition(value string) oss.Option

ResponseContentDisposition is an option to set response-content-disposition param

func ResponseContentEncoding

func ResponseContentEncoding(value string) oss.Option

ResponseContentEncoding is an option to set response-content-encoding param

func ResponseContentLanguage

func ResponseContentLanguage(value string) oss.Option

ResponseContentLanguage is an option to set response-content-language param

func ResponseContentType

func ResponseContentType(value string) oss.Option

ResponseContentType is an option to set response-content-type param

func ResponseExpires

func ResponseExpires(value string) oss.Option

ResponseExpires is an option to set response-expires param

func SSECAlgorithm

func SSECAlgorithm(value string) oss.Option

SSECAlgorithm is an option to set X-Oss-Server-Side-Encryption-Customer-Algorithm header

func SSECKey

func SSECKey(value string) oss.Option

SSECKey is an option to set X-Oss-Server-Side-Encryption-Customer-Key header

func SSECKeyMd5

func SSECKeyMd5(value string) oss.Option

SSECKeyMd5 is an option to set X-Oss-Server-Side-Encryption-Customer-Key-Md5 header

func ServerSideDataEncryption

func ServerSideDataEncryption(value string) oss.Option

ServerSideDataEncryption is an option to set X-Oss-Server-Side-Data-Encryption header

func ServerSideEncryption

func ServerSideEncryption(value string) oss.Option

ServerSideEncryption is an option to set X-Oss-Server-Side-Encryption header

func ServerSideEncryptionKeyID

func ServerSideEncryptionKeyID(value string) oss.Option

ServerSideEncryptionKeyID is an option to set X-Oss-Server-Side-Encryption-Key-Id header

func SetHeader

func SetHeader(key string, value interface{}) oss.Option

SetHeader Allow users to set personalized http headers

func SetTagging

func SetTagging(value map[string]string) oss.Option

SetTagging is an option to set object tagging

func StorageClass

func StorageClass(value string) oss.Option

StorageClass bucket storage class

func TrafficLimitParam

func TrafficLimitParam(value int64) oss.Option

TrafficLimitParam is a option to set x-oss-traffic-limit

func UploadIDMarker

func UploadIDMarker(value string) oss.Option

UploadIDMarker is an option to set upload-id-marker parameter

func VersionId

func VersionId(value string) oss.Option

VersionId is an option to set versionId parameter

func VersionIdMarker

func VersionIdMarker(value string) oss.Option

VersionIdMarker is an option to set version-id-marker parameter

Types

type AliyunOSS

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

func (*AliyunOSS) AbortMultipartUpload

func (*AliyunOSS) AppendObject

func (*AliyunOSS) CopyObject

func (*AliyunOSS) CreateMultipartUpload

func (*AliyunOSS) DeleteObject

func (*AliyunOSS) DeleteObjectTagging

func (*AliyunOSS) DeleteObjects

func (*AliyunOSS) GetObject

func (*AliyunOSS) GetObjectCannedAcl

func (*AliyunOSS) GetObjectTagging

func (*AliyunOSS) HeadObject

func (*AliyunOSS) Init

func (a *AliyunOSS) Init(ctx context.Context, config *l8oss.Config) error

func (*AliyunOSS) IsObjectExist

func (*AliyunOSS) ListMultipartUploads

func (*AliyunOSS) ListObjectVersions

func (*AliyunOSS) ListObjects

func (*AliyunOSS) ListParts

func (*AliyunOSS) PutObject

func (*AliyunOSS) PutObjectCannedAcl

func (*AliyunOSS) PutObjectTagging

func (*AliyunOSS) RestoreObject

func (*AliyunOSS) SignURL

func (a *AliyunOSS) SignURL(ctx context.Context, req *l8oss.SignURLInput) (*l8oss.SignURLOutput, error)

func (*AliyunOSS) UpdateDownloadBandwidthRateLimit

func (a *AliyunOSS) UpdateDownloadBandwidthRateLimit(ctx context.Context, req *l8oss.UpdateBandwidthRateLimitInput) error

UpdateDownloadBandwidthRateLimit update all client rate

func (*AliyunOSS) UpdateUploadBandwidthRateLimit

func (a *AliyunOSS) UpdateUploadBandwidthRateLimit(ctx context.Context, req *l8oss.UpdateBandwidthRateLimitInput) error

UpdateUploadBandwidthRateLimit update all client rate

func (*AliyunOSS) UploadPart

func (*AliyunOSS) UploadPartCopy

Jump to

Keyboard shortcuts

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