package
0.0.0-20250208085904-1b1a66c1158a
Repository: https://github.com/breadchris/share.git
Documentation: pkg.go.dev

# Functions

HexEscape returns s, with all runes for which shouldEscape returns true escaped to "__0xXXX__", where XXX is the hex representation of the rune value.
HexUnescape reverses HexEscape.
NewDefaultV2Config returns a aws.Config for AWS SDK v2, using the default options.
NewFileFromBytes creates a new File instance from the provided byte slice.
NewFileFromMultipart creates a new File from the provided multipart header.
NewFileFromPath creates a new File instance from the provided local file path.
NewFileFromUrl creates a new File from the provided url by downloading the resource and load it as BytesReader.
NewLocal initializes a new local filesystem instance.
NewS3 initializes an S3 filesystem instance.
OpenBucketV2 returns a *blob.Bucket backed by S3, using AWS SDK v2.
URLEscape uses url.PathEscape to escape s.
URLUnescape reverses URLEscape using url.PathUnescape.
UseV2 returns true iff the URL parameters indicate that the provider should use the AWS SDK v2.
V2ConfigFromURLParams returns an aws.Config for AWS SDK v2 initialized based on the URL parameters in q.

# Constants

Scheme is the URL scheme s3blob registers its URLOpener under on blob.DefaultMux.

# Variables

No description provided by the author

# Structs

BytesReader defines a FileReader from bytes content.
File defines a single file [io.ReadSeekCloser] resource.
MultipartReader defines a FileReader from [multipart.FileHeader].
Options sets options for constructing a *blob.Bucket backed by fileblob.
PathReader defines a FileReader from a local file path.
No description provided by the author
URLOpener opens S3 URLs like "s3://mybucket".

# Interfaces

FileReader defines an interface for a file resource reader.