Documentation
¶
Index ¶
- type AzBlobstore
- func (client *AzBlobstore) Copy(srcBlob string, dstBlob string) error
- func (client *AzBlobstore) Delete(dest string) error
- func (client *AzBlobstore) DeleteRecursive(prefix string) error
- func (client *AzBlobstore) EnsureStorageExists() error
- func (client *AzBlobstore) Exists(dest string) (bool, error)
- func (client *AzBlobstore) Get(source string, dest string) error
- func (client *AzBlobstore) List(prefix string) ([]string, error)
- func (client *AzBlobstore) Properties(dest string) error
- func (client *AzBlobstore) Put(sourceFilePath string, dest string) error
- func (client *AzBlobstore) Sign(dest string, action string, expiration time.Duration) (string, error)
- type BlobProperties
- type DefaultStorageClient
- func (dsc DefaultStorageClient) Copy(srcBlob string, destBlob string) error
- func (dsc DefaultStorageClient) Delete(dest string) error
- func (dsc DefaultStorageClient) DeleteRecursive(prefix string) error
- func (dsc DefaultStorageClient) Download(source string, dest *os.File) error
- func (dsc DefaultStorageClient) EnsureContainerExists() error
- func (dsc DefaultStorageClient) Exists(dest string) (bool, error)
- func (dsc DefaultStorageClient) List(prefix string) ([]string, error)
- func (dsc DefaultStorageClient) Properties(dest string) error
- func (dsc DefaultStorageClient) SignedUrl(requestType string, dest string, expiration time.Duration) (string, error)
- func (dsc DefaultStorageClient) Upload(source io.ReadSeekCloser, dest string) ([]byte, error)
- func (dsc DefaultStorageClient) UploadStream(source io.ReadSeekCloser, dest string) error
- type StorageClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzBlobstore ¶
type AzBlobstore struct {
// contains filtered or unexported fields
}
func New ¶
func New(storageClient StorageClient) (AzBlobstore, error)
func (*AzBlobstore) Delete ¶
func (client *AzBlobstore) Delete(dest string) error
func (*AzBlobstore) DeleteRecursive ¶
func (client *AzBlobstore) DeleteRecursive(prefix string) error
func (*AzBlobstore) EnsureStorageExists ¶
func (client *AzBlobstore) EnsureStorageExists() error
func (*AzBlobstore) Properties ¶
func (client *AzBlobstore) Properties(dest string) error
type BlobProperties ¶
type DefaultStorageClient ¶
type DefaultStorageClient struct {
// contains filtered or unexported fields
}
func (DefaultStorageClient) Copy ¶
func (dsc DefaultStorageClient) Copy( srcBlob string, destBlob string, ) error
func (DefaultStorageClient) Delete ¶
func (dsc DefaultStorageClient) Delete( dest string, ) error
func (DefaultStorageClient) DeleteRecursive ¶
func (dsc DefaultStorageClient) DeleteRecursive( prefix string, ) error
func (DefaultStorageClient) Download ¶
func (dsc DefaultStorageClient) Download( source string, dest *os.File, ) error
func (DefaultStorageClient) EnsureContainerExists ¶
func (dsc DefaultStorageClient) EnsureContainerExists() error
func (DefaultStorageClient) Exists ¶
func (dsc DefaultStorageClient) Exists( dest string, ) (bool, error)
func (DefaultStorageClient) List ¶
func (dsc DefaultStorageClient) List( prefix string, ) ([]string, error)
func (DefaultStorageClient) Properties ¶
func (dsc DefaultStorageClient) Properties( dest string, ) error
func (DefaultStorageClient) Upload ¶
func (dsc DefaultStorageClient) Upload( source io.ReadSeekCloser, dest string, ) ([]byte, error)
func (DefaultStorageClient) UploadStream ¶
func (dsc DefaultStorageClient) UploadStream( source io.ReadSeekCloser, dest string, ) error
type StorageClient ¶
type StorageClient interface {
Upload(
source io.ReadSeekCloser,
dest string,
) ([]byte, error)
UploadStream(
source io.ReadSeekCloser,
dest string,
) error
Download(
source string,
dest *os.File,
) error
Copy(
srcBlob string,
destBlob string,
) error
Delete(
dest string,
) error
DeleteRecursive(
dest string,
) error
Exists(
dest string,
) (bool, error)
SignedUrl(
requestType string,
dest string,
expiration time.Duration,
) (string, error)
List(
prefix string,
) ([]string, error)
Properties(
dest string,
) error
EnsureContainerExists() error
}
func NewStorageClient ¶
func NewStorageClient(storageConfig config.AZStorageConfig) (StorageClient, error)
Click to show internal directories.
Click to hide internal directories.