Documentation ¶
Index ¶
- Constants
- type Module
- func (m *Module) Delete(ctx context.Context, className, shardName, nodeName string) error
- func (m *Module) Download(ctx context.Context, className, shardName, nodeName string) error
- func (m *Module) DownloadToPath(ctx context.Context, className, shardName, nodeName, localPath string) error
- func (m *Module) Init(ctx context.Context, params moduletools.ModuleInitParams) error
- func (m *Module) Name() string
- func (m *Module) RootHandler() http.Handler
- func (m *Module) Type() modulecapabilities.ModuleType
- func (m *Module) Upload(ctx context.Context, className, shardName, nodeName string) error
- func (m *Module) VerifyBucket(ctx context.Context) error
Constants ¶
View Source
const (
Name = "offload-s3"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct { Endpoint string Bucket string BucketExists atomic.Bool Concurrency int DataPath string // contains filtered or unexported fields }
func (*Module) Delete ¶
Delete deletes content of a shard assigned to specific node in cloud provider (S3, Azure Blob storage, Google cloud storage) Careful: if shardName and nodeName is passed empty it will delete all class frozen shards in cloud storage {cloud_provider}://{configured_bucket}/{className}/{shardName}/{nodeName}/{shard content}
func (*Module) Download ¶
Download downloads the content of a shard to desired node from cloud provider (S3, Azure Blob storage, Google cloud storage) {dataPath}/{className}/{shardName}/{content}
func (*Module) DownloadToPath ¶
func (*Module) Init ¶
func (m *Module) Init(ctx context.Context, params moduletools.ModuleInitParams, ) error
func (*Module) RootHandler ¶
func (*Module) Type ¶
func (m *Module) Type() modulecapabilities.ModuleType
Click to show internal directories.
Click to hide internal directories.