diff options
author | Niall Sheridan <nsheridan@gmail.com> | 2019-07-07 21:33:44 +0100 |
---|---|---|
committer | Niall Sheridan <nsheridan@gmail.com> | 2019-07-07 21:33:44 +0100 |
commit | 8c12c6939aab9106db14ec2d11d983bc5b29fb2c (patch) | |
tree | f9dc8a7d167c6355e47a65c52d4eb7b9ea03e6c8 /vendor/github.com/nsheridan/wkfs/s3/README.md | |
parent | 0bd454cc448b812da6c693b451d86ff4cadbb6b2 (diff) |
Switch to modules
Diffstat (limited to 'vendor/github.com/nsheridan/wkfs/s3/README.md')
-rw-r--r-- | vendor/github.com/nsheridan/wkfs/s3/README.md | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/vendor/github.com/nsheridan/wkfs/s3/README.md b/vendor/github.com/nsheridan/wkfs/s3/README.md deleted file mode 100644 index 177f738..0000000 --- a/vendor/github.com/nsheridan/wkfs/s3/README.md +++ /dev/null @@ -1,41 +0,0 @@ -## S3 plugin for WKFS - - - -Package `s3` registers an AWS S3 filesystem at the well-known `/s3/` filesystem path. - -Sample usage: - -```go -package main - -import ( - "fmt" - "io" - "log" - - "github.com/nsheridan/wkfs/s3" - "go4.org/wkfs" -) - -func main() { - opts := &s3.Options{ - Region: "us-east-1" - AccessKey: "abcdef" - SecretKey: "secret" - } - s3.Register(opts) - f, err := wkfs.Create("/s3/some-bucket/hello.txt") - if err != nil { - log.Fatal(err) - } - _, err := io.WriteString(f, "hello, world") - if err != nil { - log.Fatal(err) - } -} -``` - - - -`Options` are completely optional as the AWS SDK will attempt to obtain credentials from a number of locations - see [the documentation for details](http://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html) - e.g. if you're using environment variables you can register the filesystem with `s3.Register(nil)`. |