Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve some package docs #29

Merged
merged 1 commit into from
Feb 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions awssmfs/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// Package awssmfs provides an interface to AWS Secrets Manager which allows you
// to interact with the Secrets Manager API as a standard filesystem.
//
// This filesystem's behaviour complies with fstest.TestFS.
//
// Usage
//
// To use this filesystem, call New with a base URL. All reads from the
// filesystem are relative to this base URL. Only the scheme "aws+sm" is
// supported. The URL may be an opaque URI (with no leading "/" in the path), in
// which case secrets with names starting with "/" are ignored. If the URL path
// does begin with "/", secrets with names not starting with "/" are instead
// ignored.
//
// To scope the filesystem to a specific path, use that path on the URL. For
// example, for a filesystem that can only read secrets with names starting with
// "/prod/foo/", you would use a URL like:
//
// aws+sm:///prod/foo/
//
// And for a filesystem that can only read secrets with names starting with
// "prod/bar/", you would use the following opaque URI:
//
// aws+sm:prod/bar/
//
// Configuration
//
// The AWS Secrets Manager client is configured using the default credential
// chain (see https://aws.github.io/aws-sdk-go-v2/docs/configuring-sdk/#specifying-credentials
// for more information).
//
// If you require more customized configuration, you can override the default
// client with the WithSMClientFS function.
//
package awssmfs
12 changes: 12 additions & 0 deletions blobfs/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Package blobfs provides an interface to blob stores such as Google Cloud
// Storage, Azure Blob Storage, or AWS S3, allowing you to interact with the
// store as a standard filesystem.
//
// This filesystem's behaviour complies with fstest.TestFS.
//
// Usage
//
// To use this filesystem, call New with a base URL. All reads from the
// filesystem are relative to this base URL. The schemes "s3", "gs", and "azblob"
// are supported.
package blobfs