Skip to content

Commit

Permalink
Merge pull request #29 from hairyhenderson/improve-package-docs
Browse files Browse the repository at this point in the history
Improve some package docs
  • Loading branch information
hairyhenderson committed Feb 5, 2022
2 parents 1cd4ee8 + a86766f commit eb2f810
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
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

0 comments on commit eb2f810

Please sign in to comment.