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?prefix=custom%2Fprefix") bucket, _ := bfs.Resolve(ctx, u) f, _ := bucket.Open(ctx, "file/within/prefix.txt") ... }
bfs.Resolve supports the following query parameters:
prefix - path prefix/namespace within the bucket 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.