Documentation ¶
Overview ¶
Package s3 implements a non-hierarchical file store using Amazon s3. A file store uses a single bucket. Each file is an object with its UUID as the name. The file name is stored in the user-defined object metadata x-amz-meta-filename.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FS ¶
type FS struct {
// contains filtered or unexported fields
}
func New ¶
New “connects” to an s3 endpoint and creates a file store using the specified bucket. The bucket is created if it doesn't exist.
Example ¶
package main import ( "codeberg.org/genofire/golang-lib/web/file/s3" ) func main() { s3.New("play.min.io", true, "Q3AM3UQ867SPQQA43P2F", "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG", "file-store", "") }
Output:
Click to show internal directories.
Click to hide internal directories.