Documentation
¶
Index ¶
- func NewAwsS3Client(c *s3cli_config.S3Cli) (*s3.Client, error)
- func NewAwsS3ClientWithApiOptions(c *s3cli_config.S3Cli, apiOptions []func(stack *middleware.Stack) error) (*s3.Client, error)
- type BlobProperties
- type S3CompatibleClient
- func (c *S3CompatibleClient) Copy(srcBlob string, dstBlob string) error
- func (c *S3CompatibleClient) Delete(dest string) error
- func (c *S3CompatibleClient) DeleteRecursive(prefix string) error
- func (c *S3CompatibleClient) EnsureStorageExists() error
- func (c *S3CompatibleClient) Exists(dest string) (bool, error)
- func (c *S3CompatibleClient) Get(src string, dest string) error
- func (c *S3CompatibleClient) List(prefix string) ([]string, error)
- func (c *S3CompatibleClient) Properties(dest string) error
- func (c *S3CompatibleClient) Put(src string, dest string) error
- func (c *S3CompatibleClient) Sign(objectID string, action string, expiration time.Duration) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAwsS3Client ¶
func NewAwsS3Client(c *s3cli_config.S3Cli) (*s3.Client, error)
func NewAwsS3ClientWithApiOptions ¶
func NewAwsS3ClientWithApiOptions( c *s3cli_config.S3Cli, apiOptions []func(stack *middleware.Stack) error, ) (*s3.Client, error)
Types ¶
type BlobProperties ¶
type S3CompatibleClient ¶
type S3CompatibleClient struct {
// contains filtered or unexported fields
}
func New ¶
func New(s3Client *s3.Client, s3cliConfig *config.S3Cli) *S3CompatibleClient
New returns an S3CompatibleClient
func (*S3CompatibleClient) Copy ¶
func (c *S3CompatibleClient) Copy(srcBlob string, dstBlob string) error
func (*S3CompatibleClient) Delete ¶
func (c *S3CompatibleClient) Delete(dest string) error
func (*S3CompatibleClient) DeleteRecursive ¶
func (c *S3CompatibleClient) DeleteRecursive(prefix string) error
func (*S3CompatibleClient) EnsureStorageExists ¶
func (c *S3CompatibleClient) EnsureStorageExists() error
func (*S3CompatibleClient) List ¶
func (c *S3CompatibleClient) List(prefix string) ([]string, error)
func (*S3CompatibleClient) Properties ¶
func (c *S3CompatibleClient) Properties(dest string) error
Click to show internal directories.
Click to hide internal directories.