Documentation
¶
Index ¶
- func DefaultConfigPath() (string, error)
- type AddHeadersMiddleware
- type AddParamsMiddleware
- type BucketCleanupConfig
- type Config
- type Controller
- func (c *Controller) BucketCORSDelete(bucket string) error
- func (c *Controller) BucketCORSGet(bucket string) error
- func (c *Controller) BucketCORSPut(corsPath, bucket string) error
- func (c *Controller) BucketCleanup(cfg BucketCleanupConfig) error
- func (c *Controller) BucketCreate(bucket string, objectLock bool) error
- func (c *Controller) BucketDelete(bucket string, flagForce bool) error
- func (c *Controller) BucketHead(bucket string) error
- func (c *Controller) BucketLifecycleDelete(bucket string) error
- func (c *Controller) BucketLifecycleGet(bucket string) error
- func (c *Controller) BucketLifecyclePut(lifecyclePath, bucket string) error
- func (c *Controller) BucketList(prefix string) error
- func (c *Controller) BucketMultipartUploadAbort(bucket, key, uploadID string) error
- func (c *Controller) BucketMultipartUploadAbortAll(bucket string, dryRun bool, concurrency int) error
- func (c *Controller) BucketMultipartUploadCreate(bucket, key string) error
- func (c *Controller) BucketMultipartUploadsList(bucket, prefix, originalPrefix string, recursive, asJson bool) error
- func (c *Controller) BucketObjectLockGet(bucket string) error
- func (c *Controller) BucketObjectLockPut(lockConfigPath, bucket string) error
- func (c *Controller) BucketPartsList(bucket, key, uploadID string, asJson bool) error
- func (c *Controller) BucketPolicyDelete(bucket string) error
- func (c *Controller) BucketPolicyGet(bucket string) error
- func (c *Controller) BucketPolicyPut(policyPath, bucket string) error
- func (c *Controller) BucketSize(bucket, prefix string) error
- func (c *Controller) BucketTagging(bucket string) error
- func (c *Controller) BucketVersioningGet(bucket string) error
- func (c *Controller) BucketVersioningPut(versioningConfigPath, bucket string) error
- func (c *Controller) ObjectACLGet(bucket, key, version string) error
- func (c *Controller) ObjectCopy(cfg ObjectCopyConfig) error
- func (c *Controller) ObjectDelete(prefix string, cfg ObjectDeleteConfig) error
- func (c *Controller) ObjectGet(dest, prefix, originalPrefix string, cfg ObjectGetConfig) error
- func (c *Controller) ObjectHead(bucket, key string, cfg ObjectHeadConfig) error
- func (c *Controller) ObjectList(bucket, prefix, originalPrefix string, recursive, asJson bool) error
- func (c *Controller) ObjectPresignGet(objectKey string, cfg ObjectGetConfig, expiration time.Duration) error
- func (c *Controller) ObjectPresignPut(expiration time.Duration, key string, cfg ObjectPutConfig) error
- func (c *Controller) ObjectPut(filePath, dest string, cfg ObjectPutConfig) error
- func (c *Controller) ObjectPutRand(dest string, size, count uint64, cfg ObjectPutConfig) error
- func (c *Controller) ObjectVersions(bucket, prefix, originalPrefix string, recursive, asJson bool) error
- type ControllerConfig
- type ObjectCopyConfig
- type ObjectDeleteConfig
- type ObjectGetConfig
- type ObjectHeadConfig
- type ObjectPutConfig
- type Profile
- type TransportWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultConfigPath ¶ added in v0.2.0
Types ¶
type AddHeadersMiddleware ¶
func (*AddHeadersMiddleware) HandleSerialize ¶
func (m *AddHeadersMiddleware) HandleSerialize( ctx context.Context, in smithymiddleware.SerializeInput, next smithymiddleware.SerializeHandler, ) ( smithymiddleware.SerializeOutput, smithymiddleware.Metadata, error, )
func (*AddHeadersMiddleware) ID ¶
func (m *AddHeadersMiddleware) ID() string
type AddParamsMiddleware ¶
func (*AddParamsMiddleware) HandleSerialize ¶
func (m *AddParamsMiddleware) HandleSerialize( ctx context.Context, in smithymiddleware.SerializeInput, next smithymiddleware.SerializeHandler, ) ( smithymiddleware.SerializeOutput, smithymiddleware.Metadata, error, )
func (*AddParamsMiddleware) ID ¶
func (m *AddParamsMiddleware) ID() string
type BucketCleanupConfig ¶
type Config ¶
func LoadConfig ¶
type Controller ¶
type Controller struct {
OutWriter io.Writer
ErrWriter io.Writer
// contains filtered or unexported fields
}
func New ¶
func New(ctx context.Context, cfg ControllerConfig) (*Controller, error)
func (*Controller) BucketCORSDelete ¶
func (c *Controller) BucketCORSDelete(bucket string) error
func (*Controller) BucketCORSGet ¶
func (c *Controller) BucketCORSGet(bucket string) error
func (*Controller) BucketCORSPut ¶
func (c *Controller) BucketCORSPut(corsPath, bucket string) error
func (*Controller) BucketCleanup ¶
func (c *Controller) BucketCleanup(cfg BucketCleanupConfig) error
func (*Controller) BucketCreate ¶
func (c *Controller) BucketCreate(bucket string, objectLock bool) error
func (*Controller) BucketDelete ¶
func (c *Controller) BucketDelete(bucket string, flagForce bool) error
func (*Controller) BucketHead ¶
func (c *Controller) BucketHead(bucket string) error
func (*Controller) BucketLifecycleDelete ¶
func (c *Controller) BucketLifecycleDelete(bucket string) error
func (*Controller) BucketLifecycleGet ¶
func (c *Controller) BucketLifecycleGet(bucket string) error
func (*Controller) BucketLifecyclePut ¶
func (c *Controller) BucketLifecyclePut(lifecyclePath, bucket string) error
func (*Controller) BucketList ¶
func (c *Controller) BucketList(prefix string) error
TODO: prefix doesn't seem to work
func (*Controller) BucketMultipartUploadAbort ¶
func (c *Controller) BucketMultipartUploadAbort(bucket, key, uploadID string) error
func (*Controller) BucketMultipartUploadAbortAll ¶
func (c *Controller) BucketMultipartUploadAbortAll(bucket string, dryRun bool, concurrency int) error
func (*Controller) BucketMultipartUploadCreate ¶
func (c *Controller) BucketMultipartUploadCreate(bucket, key string) error
func (*Controller) BucketMultipartUploadsList ¶
func (c *Controller) BucketMultipartUploadsList(bucket, prefix, originalPrefix string, recursive, asJson bool) error
func (*Controller) BucketObjectLockGet ¶
func (c *Controller) BucketObjectLockGet(bucket string) error
func (*Controller) BucketObjectLockPut ¶
func (c *Controller) BucketObjectLockPut(lockConfigPath, bucket string) error
func (*Controller) BucketPartsList ¶
func (c *Controller) BucketPartsList(bucket, key, uploadID string, asJson bool) error
func (*Controller) BucketPolicyDelete ¶
func (c *Controller) BucketPolicyDelete(bucket string) error
func (*Controller) BucketPolicyGet ¶
func (c *Controller) BucketPolicyGet(bucket string) error
func (*Controller) BucketPolicyPut ¶
func (c *Controller) BucketPolicyPut(policyPath, bucket string) error
func (*Controller) BucketSize ¶
func (c *Controller) BucketSize(bucket, prefix string) error
func (*Controller) BucketTagging ¶
func (c *Controller) BucketTagging(bucket string) error
func (*Controller) BucketVersioningGet ¶
func (c *Controller) BucketVersioningGet(bucket string) error
func (*Controller) BucketVersioningPut ¶
func (c *Controller) BucketVersioningPut(versioningConfigPath, bucket string) error
func (*Controller) ObjectACLGet ¶
func (c *Controller) ObjectACLGet(bucket, key, version string) error
func (*Controller) ObjectCopy ¶
func (c *Controller) ObjectCopy(cfg ObjectCopyConfig) error
func (*Controller) ObjectDelete ¶
func (c *Controller) ObjectDelete(prefix string, cfg ObjectDeleteConfig) error
TODO: - allow deleting all versions of a specific object or of a specific prefix?
func (*Controller) ObjectGet ¶
func (c *Controller) ObjectGet(dest, prefix, originalPrefix string, cfg ObjectGetConfig) error
func (*Controller) ObjectHead ¶
func (c *Controller) ObjectHead(bucket, key string, cfg ObjectHeadConfig) error
func (*Controller) ObjectList ¶
func (c *Controller) ObjectList(bucket, prefix, originalPrefix string, recursive, asJson bool) error
func (*Controller) ObjectPresignGet ¶
func (c *Controller) ObjectPresignGet(objectKey string, cfg ObjectGetConfig, expiration time.Duration) error
func (*Controller) ObjectPresignPut ¶
func (c *Controller) ObjectPresignPut(expiration time.Duration, key string, cfg ObjectPutConfig) error
func (*Controller) ObjectPut ¶
func (c *Controller) ObjectPut(filePath, dest string, cfg ObjectPutConfig) error
func (*Controller) ObjectPutRand ¶
func (c *Controller) ObjectPutRand(dest string, size, count uint64, cfg ObjectPutConfig) error
func (*Controller) ObjectVersions ¶
func (c *Controller) ObjectVersions(bucket, prefix, originalPrefix string, recursive, asJson bool) error
type ControllerConfig ¶
type ObjectCopyConfig ¶
type ObjectDeleteConfig ¶
type ObjectGetConfig ¶
type ObjectHeadConfig ¶
type ObjectPutConfig ¶
type Profile ¶
type Profile struct {
Endpoint string `toml:"endpoint"`
Region string `toml:"region"`
AccessKey string `toml:"access_key"`
SecretKey string `toml:"secret_key"`
PathStyle bool `toml:"path_style"`
Insecure bool `toml:"insecure"`
ReadOnly bool `toml:"read_only"`
SNI string `toml:"sni"`
Network string `toml:"network"`
Bandwidth string `toml:"bandwidth"`
}
type TransportWrapper ¶
type TransportWrapper struct {
Base http.RoundTripper
ReadOnly bool
Limiter *rate.Limiter
}
Source Files
¶
- bucket_cleanup.go
- bucket_cors.go
- bucket_create.go
- bucket_delete.go
- bucket_head.go
- bucket_lifecycle.go
- bucket_list.go
- bucket_multipart_parts.go
- bucket_multipart_uploads.go
- bucket_object_lock_configuration.go
- bucket_policy.go
- bucket_size.go
- bucket_tags.go
- bucket_versioning.go
- config.go
- controller.go
- object_acl_get.go
- object_copy.go
- object_delete.go
- object_get.go
- object_head.go
- object_list.go
- object_presign.go
- object_put.go
- object_put_rand.go
- object_versions.go
Click to show internal directories.
Click to hide internal directories.