Versions in this module Expand all Collapse all v0 v0.1.2 Feb 1, 2026 v0.1.1 Nov 18, 2025 Changes in this version type TencentCOS + Endpoint string v0.1.0 Sep 3, 2025 Changes in this version + const OSS_TYPE_ALIYUN_OSS + const OSS_TYPE_AZURE_BLOB + const OSS_TYPE_GCS + const OSS_TYPE_HUAWEI_OBS + const OSS_TYPE_LOCAL + const OSS_TYPE_S3 + const OSS_TYPE_TENCENT_COS + const OSS_TYPE_VOLCENGINE_TOS + var ErrArgumentInvalid = NewCloudKitError("argument invalid", "") + var ErrProviderInit = NewCloudKitError("provider init error", "") + var ErrProviderNotFound = NewCloudKitError("provider not found", "") + type AliyunOSS struct + AccessKey string + AuthVersion string + Bucket string + CloudBoxId string + Endpoint string + Path string + Region string + SecretKey string + func (a *AliyunOSS) Validate() error + type AzureBlob struct + ConnectionString string + ContainerName string + func (a *AzureBlob) Validate() error + type CloudKitError struct + Detail string + Err error + Reason string + func NewCloudKitError(reason string, detail string) *CloudKitError + func (c *CloudKitError) Error() string + func (c *CloudKitError) WithDetail(detail string) *CloudKitError + func (c *CloudKitError) WithError(err error) *CloudKitError + type GoogleCloudStorage struct + Bucket string + CredentialsB64 string + func (g *GoogleCloudStorage) Validate() error + type HuaweiOBS struct + AccessKey string + Bucket string + PathStyle bool + SecretKey string + Server string + func (h *HuaweiOBS) Validate() error + type Local struct + Path string + func (l *Local) Validate() error + type OSS interface + Delete func(key string) error + Exists func(key string) (bool, error) + List func(prefix string) ([]OSSPath, error) + Load func(key string) ([]byte, error) + Save func(key string, data []byte) error + State func(key string) (OSSState, error) + Type func() string + type OSSArgs struct + AliyunOSS *AliyunOSS + AzureBlob *AzureBlob + GoogleCloudStorage *GoogleCloudStorage + HuaweiOBS *HuaweiOBS + Local *Local + S3 *S3 + TencentCOS *TencentCOS + VolcengineTOS *VolcengineTOS + type OSSPath struct + IsDir bool + Path string + type OSSState struct + LastModified time.Time + Size int64 + type S3 struct + AccessKey string + Bucket string + Endpoint string + Region string + SecretKey string + SignatureVersion string + UseAws bool + UseIamRole bool + UsePathStyle bool + func (s *S3) Validate() error + type TencentCOS struct + Bucket string + Region string + SecretID string + SecretKey string + func (t *TencentCOS) Validate() error + type VolcengineTOS struct + AccessKey string + Bucket string + Endpoint string + Region string + SecretKey string + func (t *VolcengineTOS) Validate() error