Documentation
¶
Index ¶
- type AzureStorage
- func (storage *AzureStorage) Batch(ctx context.Context) (ds.Batch, error)
- func (storage *AzureStorage) Close() error
- func (storage *AzureStorage) Delete(ctx context.Context, k ds.Key) error
- func (storage *AzureStorage) Get(ctx context.Context, k ds.Key) ([]byte, error)
- func (storage *AzureStorage) GetBlockURL(key string) (*azblob.BlockBlobURL, error)
- func (storage *AzureStorage) GetSize(ctx context.Context, k ds.Key) (size int, err error)
- func (storage *AzureStorage) Has(ctx context.Context, k ds.Key) (exists bool, err error)
- func (storage *AzureStorage) Put(ctx context.Context, k ds.Key, value []byte) error
- func (storage *AzureStorage) Query(ctx context.Context, q dsq.Query) (dsq.Results, error)
- func (storage *AzureStorage) Sync(ctx context.Context, prefix ds.Key) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureStorage ¶
type AzureStorage struct {
Config
}
AzureStorage is a storage representation
func NewAzureDatastore ¶
func NewAzureDatastore(conf Config) (*AzureStorage, error)
NewAzureDatastore creates an AzureDatastore
func (*AzureStorage) GetBlockURL ¶
func (storage *AzureStorage) GetBlockURL(key string) (*azblob.BlockBlobURL, error)
GetBlockURL returns the block url of a given key
Click to show internal directories.
Click to hide internal directories.