Versions in this module Expand all Collapse all v3 v3.0.0 Oct 26, 2023 Changes in this version + const DefaultConnectTimeout + const DefaultIdleConnectionTimeout + const DefaultMaxConnections + const DefaultReadWriteTimeout + const HeaderOssACL + const HeaderOssAllowSameActionOverLap + const HeaderOssCRC64 + const HeaderOssCallback + const HeaderOssCallbackVar + const HeaderOssContentSha256 + const HeaderOssCopySource + const HeaderOssCopySourceIfMatch + const HeaderOssCopySourceIfModifiedSince + const HeaderOssCopySourceIfNoneMatch + const HeaderOssCopySourceIfUnmodifiedSince + const HeaderOssCopySourceRange + const HeaderOssDate + const HeaderOssEC + const HeaderOssERR + const HeaderOssForbidOverWrite + const HeaderOssMetaPrefix + const HeaderOssMetadataDirective + const HeaderOssNextAppendPosition + const HeaderOssObjectACL + const HeaderOssPrefix + const HeaderOssRangeBehavior + const HeaderOssRequestID + const HeaderOssRequester + const HeaderOssSSECAlgorithm + const HeaderOssSSECKey + const HeaderOssSSECKeyMd5 + const HeaderOssSecurityToken + const HeaderOssServerSideDataEncryption + const HeaderOssServerSideEncryption + const HeaderOssServerSideEncryptionKeyID + const HeaderOssStorageClass + const HeaderOssSymlinkTarget + const HeaderOssTagging + const HeaderOssTaggingDirective + const HeaderOssTrafficLimit + const SdkName + func Bool(v bool) *bool + func Duration(v time.Duration) *time.Duration + func Int(v int) *int + func Int64(v int64) *int64 + func String(v string) *string + func StringMap(vs map[string]string) map[string]*string + func StringSlice(vs []string) []*string + func Time(v time.Time) *time.Time + func Version() string + type ACLType string + const ACLDefault + const ACLPrivate + const ACLPublicRead + const ACLPublicReadWrite + type AlgorithmType string + const AESAlgorithm + const KMSAlgorithm + const SM4Algorithm + type AuthVersionType string + const AuthV1 + const AuthV2 + const AuthV4 + type BucketProperties struct + CreationDate time.Time + ExtranetEndpoint string + IntranetEndpoint string + Location string + Name string + Region string + StorageClass string + type CanceledError struct + Err error + func (*CanceledError) CanceledError() bool + func (e *CanceledError) Error() string + func (e *CanceledError) Unwrap() error + type Client struct + func New(cfg *Config, optFns ...func(*Options)) *Client + func (c *Client) GetObject(ctx context.Context, request *GetObjectRequest, optFns ...func(*Options)) (result *GetObjectResult, err error) + func (c *Client) InvokeOperation(ctx context.Context, input *OperationInput, optFns ...func(*Options)) (output *OperationOutput, err error) + func (c *Client) ListBuckets(ctx context.Context, request *ListBucketsRequest, optFns ...func(*Options)) (result *ListBucketsResult, err error) + func (c *Client) ListObjects(ctx context.Context, request *ListObjectsRequest, optFns ...func(*Options)) (result *ListObjectsResult, err error) + func (c *Client) MarshalInput(request interface{}, input *OperationInput) error + type ClientError struct + Code string + Err error + Message string + func (e *ClientError) Error() string + func (e *ClientError) Unwrap() error + type CommonPrefix struct + Prefix string + type Config struct + CredentialsProvider credentials.CredentialsProvider + Endpoint string + HTTPClient *http.Client + Region string + RetryMaxAttempts int + Retryer retry.Retryer + UsePathStyle bool + func LoadDefaultConfig() *Config + func NewConfig() *Config + func (c *Config) WithCredentialsProvider(provider credentials.CredentialsProvider) *Config + func (c *Config) WithEndpoint(endpoint string) *Config + func (c *Config) WithHTTPClient(client *http.Client) *Config + func (c *Config) WithRegion(region string) *Config + func (c *Config) WithRetryMaxAttempts(value int) *Config + func (c *Config) WithRetryer(retryer retry.Retryer) *Config + func (c *Config) WithUsePathStyle(enable bool) *Config + func (c Config) Copy() Config + type DataRedundancyType string + const RedundancyLRS + const RedundancyZRS + type DeserializationError struct + Err error + Snapshot []byte + func (e *DeserializationError) Error() string + func (e *DeserializationError) Unwrap() error + type GetObjectRequest struct + Bucket string + Key string + type GetObjectResult struct + Body io.ReadCloser + type InvalidParamError interface + Field func() string + SetContext func(string) + type ListBucketsRequest struct + Marker string + MaxKeys int32 + Prefix string + ResourceGroupId string + type ListBucketsResult struct + Buckets []BucketProperties + IsTruncated bool + Marker string + MaxKeys int + NextMarker string + Owner Owner + Prefix string + XMLName xml.Name + type ListObjectsRequest struct + Bucket string + Delimiter string + EncodingType string + Marker string + MaxKeys int32 + Prefix string + type ListObjectsResult struct + CommonPrefixes []CommonPrefix + Contents []ObjectProperties + Delimiter string + EncodingType string + IsTruncated bool + Marker string + MaxKeys int + Name string + NextMarker string + Prefix string + XMLName xml.Name + type MetadataDirectiveType string + const MetaCopy + const MetaReplace + type ObjectProperties struct + ETag string + Key string + LastModified time.Time + Owner Owner + RestoreInfo string + Size int64 + StorageClass string + Type string + type OperationError struct + Err error + OperationName string + func (e *OperationError) Error() string + func (e *OperationError) Operation() string + func (e *OperationError) Unwrap() error + type OperationInput struct + Body io.Reader + Bucket string + Headers map[string]string + Key string + Metadata OperationMetadata + Method string + OperationName string + Parameters map[string]string + type OperationMetadata struct + func (m *OperationMetadata) Set(key, value interface{}) + func (m OperationMetadata) Clone() OperationMetadata + func (m OperationMetadata) Get(key interface{}) interface{} + func (m OperationMetadata) Has(key interface{}) bool + type OperationOutput struct + Body io.ReadCloser + Headers http.Header + Input *OperationInput + Metadata OperationMetadata + Status string + StatusCode int + type Options struct + CredentialsProvider credentials.CredentialsProvider + Endpoint *url.URL + HttpClient *http.Client + Region string + ResponseHandlers []func(*http.Response) error + RetryMaxAttempts int + Retryer retry.Retryer + Signer signer.Signer + func (c Options) Copy() Options + type Owner struct + DisplayName string + ID string + type ParamRequiredError struct + func NewErrParamInvalid(field string) *ParamRequiredError + func NewErrParamRequired(field string) *ParamRequiredError + func (e *ParamRequiredError) SetContext(ctx string) + func (e ParamRequiredError) Error() string + func (e ParamRequiredError) Field() string + type PayerType string + const BucketOwner + const Requester + type RequestCommon struct + Headers map[string]string + Parameters map[string]string + type RestoreMode string + const RestoreBulk + const RestoreExpedited + const RestoreStandard + type ResultCommon struct + Headers http.Header + Metadata OperationMetadata + Status string + StatusCode int + type SerializationError struct + Err error + func (e *SerializationError) Error() string + func (e *SerializationError) Unwrap() error + type ServiceError struct + Code string + EC string + Message string + RequestID string + RequestTarget string + Snapshot []byte + StatusCode int + Timestamp time.Time + XMLName xml.Name + func (e *ServiceError) Error() string + func (e *ServiceError) HttpStatusCode() int + type StorageClassType string + const StorageArchive + const StorageColdArchive + const StorageDeepColdArchive + const StorageIA + const StorageStandard + type TaggingDirectiveType string + const TaggingCopy + const TaggingReplace + type UrlRequestStyle int + const CNameStyle + const PathStyle + const VirtualHostedStyle + func (f UrlRequestStyle) String() string + type VersioningStatus string + const VersionEnabled + const VersionSuspended v3.0.0-dev Oct 26, 2023 Other modules containing this package github.com/aliyun/aliyun-oss-go-sdk