Documentation ¶
Index ¶
- Constants
- Variables
- func CompleteMultipart(ctx context.Context, parts []*s3.CompletedPart, container azblob.ContainerURL, ...) (*string, int64, error)
- func GetAccessKeyCredentials(accountName, accountKey string) (azblob.Credential, error)
- func GetMSICredentials() (azblob.Credential, error)
- type Adapter
- func (a *Adapter) AbortMultiPartUpload(_ block.ObjectPointer, _ string) error
- func (a *Adapter) BlockstoreType() string
- func (a *Adapter) CompleteMultiPartUpload(obj block.ObjectPointer, _ string, ...) (*string, int64, error)
- func (a *Adapter) Copy(sourceObj, destinationObj block.ObjectPointer) error
- func (a *Adapter) CreateMultiPartUpload(obj block.ObjectPointer, _ *http.Request, _ block.CreateMultiPartUploadOpts) (string, error)
- func (a *Adapter) Download(obj block.ObjectPointer, offset, count int64) (io.ReadCloser, error)
- func (a *Adapter) Exists(obj block.ObjectPointer) (bool, error)
- func (a *Adapter) GenerateInventory(_ context.Context, _ logging.Logger, _ string, _ bool, _ []string) (block.Inventory, error)
- func (a *Adapter) Get(obj block.ObjectPointer, _ int64) (io.ReadCloser, error)
- func (a *Adapter) GetProperties(obj block.ObjectPointer) (block.Properties, error)
- func (a *Adapter) GetRange(obj block.ObjectPointer, startPosition int64, endPosition int64) (io.ReadCloser, error)
- func (a *Adapter) GetStorageNamespaceInfo() block.StorageNamespaceInfo
- func (a *Adapter) Put(obj block.ObjectPointer, sizeBytes int64, reader io.Reader, opts block.PutOpts) error
- func (a *Adapter) Remove(obj block.ObjectPointer) error
- func (a *Adapter) UploadCopyPart(sourceObj, destinationObj block.ObjectPointer, _ string, _ int64) (string, error)
- func (a *Adapter) UploadCopyPartRange(sourceObj, destinationObj block.ObjectPointer, _ string, ...) (string, error)
- func (a *Adapter) UploadPart(obj block.ObjectPointer, _ int64, reader io.Reader, _ string, _ int64) (string, error)
- func (a *Adapter) ValidateConfiguration(_ string) error
- func (a *Adapter) Walk(walkOpt block.WalkOpts, walkFn block.WalkFunc) error
- func (a *Adapter) WithContext(ctx context.Context) block.Adapter
- type BlobURLInfo
- type MultipartBlockWriter
- func (m *MultipartBlockWriter) CommitBlockList(ctx context.Context, ids []string, headers azblob.BlobHTTPHeaders, ...) (*azblob.BlockBlobCommitBlockListResponse, error)
- func (m *MultipartBlockWriter) StageBlock(ctx context.Context, s string, seeker io.ReadSeeker, ...) (*azblob.BlockBlobStageBlockResponse, error)
- type PrefixURLInfo
Constants ¶
View Source
const ( BlockstoreType = "azure" MaxBuffers = 1 AuthMethodAccessKey = "access-key" AuthMethodMSI = "msi" )
Variables ¶
View Source
var ErrEmptyBuffer = errors.New("TransferManager returned a 0 size buffer, this is a bug in the manager")
View Source
var (
ErrNotImplemented = errors.New("not implemented")
)
Functions ¶
func CompleteMultipart ¶
func CompleteMultipart(ctx context.Context, parts []*s3.CompletedPart, container azblob.ContainerURL, objName string, retryOptions azblob.RetryReaderOptions) (*string, int64, error)
func GetAccessKeyCredentials ¶ added in v0.33.0
func GetAccessKeyCredentials(accountName, accountKey string) (azblob.Credential, error)
func GetMSICredentials ¶ added in v0.33.0
func GetMSICredentials() (azblob.Credential, error)
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
func (*Adapter) AbortMultiPartUpload ¶
func (a *Adapter) AbortMultiPartUpload(_ block.ObjectPointer, _ string) error
func (*Adapter) BlockstoreType ¶
func (*Adapter) CompleteMultiPartUpload ¶
func (a *Adapter) CompleteMultiPartUpload(obj block.ObjectPointer, _ string, multipartList *block.MultipartUploadCompletion) (*string, int64, error)
func (*Adapter) CreateMultiPartUpload ¶
func (a *Adapter) CreateMultiPartUpload(obj block.ObjectPointer, _ *http.Request, _ block.CreateMultiPartUploadOpts) (string, error)
func (*Adapter) Download ¶
func (a *Adapter) Download(obj block.ObjectPointer, offset, count int64) (io.ReadCloser, error)
func (*Adapter) GenerateInventory ¶
func (*Adapter) Get ¶
func (a *Adapter) Get(obj block.ObjectPointer, _ int64) (io.ReadCloser, error)
func (*Adapter) GetProperties ¶
func (a *Adapter) GetProperties(obj block.ObjectPointer) (block.Properties, error)
func (*Adapter) GetRange ¶
func (a *Adapter) GetRange(obj block.ObjectPointer, startPosition int64, endPosition int64) (io.ReadCloser, error)
func (*Adapter) GetStorageNamespaceInfo ¶ added in v0.33.0
func (a *Adapter) GetStorageNamespaceInfo() block.StorageNamespaceInfo
func (*Adapter) UploadCopyPart ¶
func (*Adapter) UploadCopyPartRange ¶
func (*Adapter) UploadPart ¶
func (*Adapter) ValidateConfiguration ¶
type BlobURLInfo ¶ added in v0.33.0
type MultipartBlockWriter ¶
type MultipartBlockWriter struct {
// contains filtered or unexported fields
}
func NewMultipartBlockWriter ¶
func NewMultipartBlockWriter(reader *block.HashingReader, containerURL azblob.ContainerURL, objName string) *MultipartBlockWriter
func (*MultipartBlockWriter) CommitBlockList ¶
func (m *MultipartBlockWriter) CommitBlockList(ctx context.Context, ids []string, headers azblob.BlobHTTPHeaders, metadata azblob.Metadata, conditions azblob.BlobAccessConditions, tierType azblob.AccessTierType, tagsMap azblob.BlobTagsMap, options azblob.ClientProvidedKeyOptions) (*azblob.BlockBlobCommitBlockListResponse, error)
func (*MultipartBlockWriter) StageBlock ¶
func (m *MultipartBlockWriter) StageBlock(ctx context.Context, s string, seeker io.ReadSeeker, conditions azblob.LeaseAccessConditions, bytes []byte, options azblob.ClientProvidedKeyOptions) (*azblob.BlockBlobStageBlockResponse, error)
type PrefixURLInfo ¶ added in v0.33.0
Click to show internal directories.
Click to hide internal directories.