Documentation
¶
Overview ¶
Package bfsgs abstracts Google Cloud Storage bucket.
When imported, it registers a global `gs://` scheme resolver and can be used like:
import (
"github.com/bsm/bfs"
_ "github.com/bsm/bfs/bfsgs"
)
func main() {
ctx := context.Background()
u, _ := url.Parse("gs://bucket/a")
bucket, _ := bfs.Resolve(ctx, u)
f, _ := bucket.Open(ctx, "b/c.txt") // opens gs://bucket/a/b/c.txt
...
}
bfs.Resolve supports the following query parameters:
scopes - custom scopes credentials - path to custom credentials file
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.