Documentation
¶
Index ¶
- Constants
- func WithAfter(after string) func(o *minio.ListObjectsOptions)
- func WithPrefix(prefix string) func(o *minio.ListObjectsOptions)
- func WithVersions() func(o *minio.ListObjectsOptions)
- type Bucket
- type CompareRes
- type Config
- type CopySvc
- type File
- type LimiterSvc
- type MemCalculator
- type MemoryCalc
- type MemoryLimit
- type MemoryLimiterSvc
- type ObjectInfo
- type ObjectVersionInfo
- type S3CopySvc
- func (r *S3CopySvc) AddMetrics(ctx context.Context, from File, to File, size int64)
- func (r *S3CopySvc) BucketObjects(ctx context.Context, user string, bucket Bucket, ...) iter.Seq2[ObjectInfo, error]
- func (r *S3CopySvc) CopyACLs(ctx context.Context, user string, from File, to File) error
- func (r *S3CopySvc) CopyObject(ctx context.Context, user string, from File, to File) error
- func (r *S3CopySvc) DeleteDestinationObject(ctx context.Context, user string, to File) error
- func (r *S3CopySvc) GetLastMigratedVersionInfo(ctx context.Context, user string, to File) (ObjectVersionInfo, error)
- func (r *S3CopySvc) GetVersionInfo(ctx context.Context, user string, to File) ([]ObjectVersionInfo, error)
- func (r *S3CopySvc) IsBucketVersioned(ctx context.Context, user string, bucket Bucket) (bool, error)
- type Service
Constants ¶
View Source
const ( CChorusSourceVersionIDMetaHeader = "x-amz-meta-chorus-source-version-id" CRGWVersionMigrationMetaHeader = "x-amz-meta-rgwx-version-id" )
View Source
const MB = 1000000
Variables ¶
This section is empty.
Functions ¶
func WithAfter ¶ added in v0.6.0
func WithAfter(after string) func(o *minio.ListObjectsOptions)
func WithPrefix ¶ added in v0.6.0
func WithPrefix(prefix string) func(o *minio.ListObjectsOptions)
func WithVersions ¶ added in v0.6.0
func WithVersions() func(o *minio.ListObjectsOptions)
Types ¶
type CompareRes ¶
type Config ¶
type Config struct {
MemoryCalc MemoryCalc `yaml:"memoryCalc"`
MemoryLimit MemoryLimit `yaml:"memoryLimit"`
LocalFileLimit ratelimit.SemaphoreConfig `yaml:"localFileLimit"`
GlobalFileLimit ratelimit.SemaphoreConfig `yaml:"globalFileLimit"`
}
type CopySvc ¶ added in v0.6.0
type CopySvc interface {
BucketObjects(ctx context.Context, user string, bucket Bucket, opts ...func(o *minio.ListObjectsOptions)) iter.Seq2[ObjectInfo, error]
IsBucketVersioned(ctx context.Context, user string, bucket Bucket) (bool, error)
GetVersionInfo(ctx context.Context, user string, to File) ([]ObjectVersionInfo, error)
DeleteDestinationObject(ctx context.Context, user string, to File) error
GetLastMigratedVersionInfo(ctx context.Context, user string, to File) (ObjectVersionInfo, error)
CopyObject(ctx context.Context, user string, from File, to File) error
}
type LimiterSvc ¶ added in v0.6.0
type MemCalculator ¶
type MemCalculator struct {
// contains filtered or unexported fields
}
func NewMemoryCalculator ¶
func NewMemoryCalculator(conf MemoryCalc) *MemCalculator
type MemoryCalc ¶
type MemoryLimit ¶
type MemoryLimiterSvc ¶ added in v0.6.0
type MemoryLimiterSvc struct {
// contains filtered or unexported fields
}
func NewMemoryLimiterSvc ¶ added in v0.6.0
func NewMemoryLimiterSvc(memCalc *MemCalculator, memLimiter ratelimit.Semaphore, fileLimiter ratelimit.Semaphore, metricsSvc metrics.S3Service) *MemoryLimiterSvc
type ObjectInfo ¶ added in v0.6.0
type ObjectVersionInfo ¶ added in v0.6.0
type S3CopySvc ¶ added in v0.6.0
type S3CopySvc struct {
// contains filtered or unexported fields
}
func NewS3CopySvc ¶ added in v0.6.0
func (*S3CopySvc) AddMetrics ¶ added in v0.6.0
func (*S3CopySvc) BucketObjects ¶ added in v0.6.0
func (*S3CopySvc) CopyObject ¶ added in v0.6.0
func (*S3CopySvc) DeleteDestinationObject ¶ added in v0.6.0
func (*S3CopySvc) GetLastMigratedVersionInfo ¶ added in v0.6.0
func (*S3CopySvc) GetVersionInfo ¶ added in v0.6.0
Click to show internal directories.
Click to hide internal directories.