Documentation
¶
Index ¶
- type AzureBlob
- type GCS
- type MasterStoreClient
- type MasterStoreServer
- func (s *MasterStoreServer) DownloadBlob(request *protocol.DownloadBlobRequest, ...) error
- func (s *MasterStoreServer) ListBlobs(ctx context.Context, request *protocol.ListBlobsRequest) (*protocol.ListBlobsResponse, error)
- func (s *MasterStoreServer) RemoveBlob(ctx context.Context, request *protocol.RemoveBlobRequest) (*protocol.RemoveBlobResponse, error)
- func (s *MasterStoreServer) UploadBlob(...) error
- type POSIX
- type S3
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureBlob ¶ added in v0.5.3
type AzureBlob struct {
// contains filtered or unexported fields
}
func NewAzureBlob ¶ added in v0.5.3
func (*AzureBlob) Create ¶ added in v0.5.3
func (a *AzureBlob) Create(name string) (io.WriteCloser, chan struct{}, error)
type MasterStoreClient ¶
type MasterStoreClient struct {
// contains filtered or unexported fields
}
func NewMasterStoreClient ¶
func NewMasterStoreClient(clientConn *grpc.ClientConn) *MasterStoreClient
func (*MasterStoreClient) Create ¶
func (c *MasterStoreClient) Create(name string) (io.WriteCloser, chan struct{}, error)
func (*MasterStoreClient) List ¶
func (c *MasterStoreClient) List() ([]string, error)
func (*MasterStoreClient) Open ¶
func (c *MasterStoreClient) Open(name string) (io.ReadCloser, error)
func (*MasterStoreClient) Remove ¶
func (c *MasterStoreClient) Remove(name string) error
type MasterStoreServer ¶
type MasterStoreServer struct {
protocol.UnimplementedBlobStoreServer
// contains filtered or unexported fields
}
func NewMasterStoreServer ¶
func NewMasterStoreServer(dir string) *MasterStoreServer
func (*MasterStoreServer) DownloadBlob ¶
func (s *MasterStoreServer) DownloadBlob(request *protocol.DownloadBlobRequest, stream grpc.ServerStreamingServer[protocol.DownloadBlobResponse]) error
func (*MasterStoreServer) ListBlobs ¶
func (s *MasterStoreServer) ListBlobs(ctx context.Context, request *protocol.ListBlobsRequest) (*protocol.ListBlobsResponse, error)
func (*MasterStoreServer) RemoveBlob ¶
func (s *MasterStoreServer) RemoveBlob(ctx context.Context, request *protocol.RemoveBlobRequest) (*protocol.RemoveBlobResponse, error)
func (*MasterStoreServer) UploadBlob ¶
func (s *MasterStoreServer) UploadBlob(stream grpc.ClientStreamingServer[protocol.UploadBlobRequest, protocol.UploadBlobResponse]) error
type POSIX ¶
type POSIX struct {
// contains filtered or unexported fields
}
func (*POSIX) Create ¶
func (p *POSIX) Create(name string) (io.WriteCloser, chan struct{}, error)
Create a new file for writing. It returns an io.WriteCloser that can be used to write data to the file. It also returns a done channel that is closed when the writing is complete.
type S3 ¶
func (*S3) Create ¶
func (s *S3) Create(name string) (io.WriteCloser, chan struct{}, error)
Create a new file in S3 for writing. This function returns an io.WriteCloser that can be used to write data to the file. It also returns a done channel that is closed when the writing is complete.
func (*S3) List ¶
List files in the S3 bucket with the specified prefix. This function returns a slice of file names.
type Store ¶
type Store interface {
Open(name string) (io.ReadCloser, error)
Create(name string) (io.WriteCloser, chan struct{}, error)
List() ([]string, error)
Remove(name string) error
}
func NewStore ¶ added in v0.5.3
func NewStore(cfg config.BlobConfig, masterConn *grpc.ClientConn) (Store, error)
Click to show internal directories.
Click to hide internal directories.