Documentation ¶
Index ¶
- func NewKodo() (s3.Interface, error)
- type Kodo
- func (k Kodo) AbortMultipartUpload(ctx context.Context, uploadID string, name string) error
- func (k Kodo) AccessURL(ctx context.Context, name string, expire time.Duration, ...) (string, error)
- func (k Kodo) AuthSign(ctx context.Context, uploadID string, name string, expire time.Duration, ...) (*s3.AuthSignResult, error)
- func (k Kodo) CompleteMultipartUpload(ctx context.Context, uploadID string, name string, parts []s3.Part) (*s3.CompleteMultipartUploadResult, error)
- func (k Kodo) CopyObject(ctx context.Context, src string, dst string) (*s3.CopyObjectInfo, error)
- func (k Kodo) DeleteObject(ctx context.Context, name string) error
- func (k Kodo) Engine() string
- func (k Kodo) InitiateMultipartUpload(ctx context.Context, name string) (*s3.InitiateMultipartUploadResult, error)
- func (k Kodo) IsNotFound(err error) bool
- func (k Kodo) ListUploadedParts(ctx context.Context, uploadID string, name string, partNumberMarker int, ...) (*s3.ListUploadedPartsResult, error)
- func (k Kodo) PartLimit() *s3.PartLimit
- func (k Kodo) PartSize(ctx context.Context, size int64) (int64, error)
- func (k Kodo) PresignedPutObject(ctx context.Context, name string, expire time.Duration) (string, error)
- func (k *Kodo) SetObjectContentType(ctx context.Context, name string, contentType string) error
- func (k Kodo) StatObject(ctx context.Context, name string) (*s3.ObjectInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Kodo ¶
type Kodo struct { AccessKey string SecretKey string Region string Token string Endpoint string BucketURL string Auth *auth.Credentials Client *awss3.Client PresignClient *awss3.PresignClient }
func (Kodo) AbortMultipartUpload ¶
func (Kodo) CompleteMultipartUpload ¶
func (Kodo) CopyObject ¶
func (Kodo) InitiateMultipartUpload ¶
func (Kodo) IsNotFound ¶
func (Kodo) ListUploadedParts ¶
func (Kodo) PresignedPutObject ¶
func (*Kodo) SetObjectContentType ¶
func (Kodo) StatObject ¶
Click to show internal directories.
Click to hide internal directories.