Documentation ¶
Index ¶
- Constants
- Variables
- func DoBatchTransfer(ctx context.Context, o *BatchTransferOptions) error
- func GenerateLeaseID(leaseID *string) (*string, error)
- func GetClientOptions[T any](o *T) *T
- func IsIPEndpointStyle(host string) bool
- func NewBytesWriter(b []byte) bytesWriter
- func ValidateSeekableStreamAt0AndGetCount(body io.ReadSeeker) (int64, error)
- type BatchTransferOptions
- type ParsedConnectionString
- type SectionWriter
Constants ¶
View Source
const ( HeaderAuthorization = "Authorization" HeaderXmsDate = "x-ms-date" HeaderContentLength = "Content-Length" HeaderContentEncoding = "Content-Encoding" HeaderContentLanguage = "Content-Language" HeaderContentType = "Content-Type" HeaderContentMD5 = "Content-MD5" HeaderIfModifiedSince = "If-Modified-Since" HeaderIfMatch = "If-Match" HeaderIfNoneMatch = "If-None-Match" HeaderIfUnmodifiedSince = "If-Unmodified-Since" HeaderRange = "Range" )
View Source
const ( // DefaultFilePermissionString is a constant for all intents and purposes. // Inherit inherits permissions from the parent folder (default when creating files/folders) DefaultFilePermissionString = "inherit" DefaultFilePermissionFormat = "Sddl" // DefaultCurrentTimeString sets creation/last write times to now DefaultCurrentTimeString = "now" // DefaultPreserveString preserves old permissions on the file/folder (default when updating properties) DefaultPreserveString = "preserve" // FileAttributesNone is defaults for file attributes when creating file. // This attribute is valid only when used alone. FileAttributesNone = "None" // FileAttributesDirectory is defaults for file attributes when creating directory. // The attribute that identifies a directory FileAttributesDirectory = "Directory" )
View Source
const StorageAnalyticsVersion = "1.0"
View Source
const (
TokenScope = "https://storage.azure.com/.default"
)
Variables ¶
View Source
var CRC64Table = crc64.MakeTable(crc64Polynomial)
Functions ¶
func DoBatchTransfer ¶
func DoBatchTransfer(ctx context.Context, o *BatchTransferOptions) error
DoBatchTransfer helps to execute operations in a batch manner. Can be used by users to customize batch works (for other scenarios that the SDK does not provide)
func GenerateLeaseID ¶
func GetClientOptions ¶
func GetClientOptions[T any](o *T) *T
func IsIPEndpointStyle ¶
IsIPEndpointStyle checks if URL's host is IP, in this case the storage account endpoint will be composed as: http(s)://IP(:port)/storageaccount/share(||container||etc)/... As url's Host property, host could be both host or host:port
func NewBytesWriter ¶
func NewBytesWriter(b []byte) bytesWriter
func ValidateSeekableStreamAt0AndGetCount ¶
func ValidateSeekableStreamAt0AndGetCount(body io.ReadSeeker) (int64, error)
Types ¶
type BatchTransferOptions ¶
type BatchTransferOptions struct { TransferSize int64 ChunkSize int64 Concurrency uint16 Operation func(ctx context.Context, offset int64, chunkSize int64) error OperationName string }
BatchTransferOptions identifies options used by doBatchTransfer.
type ParsedConnectionString ¶
func ParseConnectionString ¶
func ParseConnectionString(connectionString string) (ParsedConnectionString, error)
type SectionWriter ¶
func NewSectionWriter ¶
func NewSectionWriter(c io.WriterAt, off int64, count int64) *SectionWriter
Click to show internal directories.
Click to hide internal directories.