open-nomad/vendor/cloud.google.com/go/storage
Seth Hoenig 435c0d9fc8 deps: Switch to Go modules for dependency management
This PR switches the Nomad repository from using govendor to Go modules
for managing dependencies. Aspects of the Nomad workflow remain pretty
much the same. The usual Makefile targets should continue to work as
they always did. The API submodule simply defers to the parent Nomad
version on the repository, keeping the semantics of API versioning that
currently exists.
2020-06-02 14:30:36 -05:00
..
.repo-metadata.json deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
acl.go govendor fetch github.com/hashicorp/go-getter@f5101da, protobuf 1.2 2019-08-26 17:54:21 -04:00
bucket.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
CHANGES.md deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
copy.go govendor fetch github.com/hashicorp/go-getter@f5101da, protobuf 1.2 2019-08-26 17:54:21 -04:00
doc.go govendor fetch github.com/hashicorp/go-getter@f5101da, protobuf 1.2 2019-08-26 17:54:21 -04:00
go.mod deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
go.sum deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
go110.go govendor fetch github.com/hashicorp/go-getter@f5101da, protobuf 1.2 2019-08-26 17:54:21 -04:00
go_mod_tidy_hack.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
hmac.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
iam.go govendor fetch github.com/hashicorp/go-getter@f5101da, protobuf 1.2 2019-08-26 17:54:21 -04:00
invoke.go govendor fetch github.com/hashicorp/go-getter@f5101da, protobuf 1.2 2019-08-26 17:54:21 -04:00
LICENSE deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
not_go110.go govendor fetch github.com/hashicorp/go-getter@f5101da, protobuf 1.2 2019-08-26 17:54:21 -04:00
notifications.go govendor fetch github.com/hashicorp/go-getter@f5101da, protobuf 1.2 2019-08-26 17:54:21 -04:00
reader.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
README.md govendor fetch github.com/hashicorp/go-getter@f5101da, protobuf 1.2 2019-08-26 17:54:21 -04:00
storage.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
storage.replay govendor fetch github.com/hashicorp/go-getter@f5101da, protobuf 1.2 2019-08-26 17:54:21 -04:00
writer.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00

Cloud Storage GoDoc

Example Usage

First create a storage.Client to use throughout your application:

client, err := storage.NewClient(ctx)
if err != nil {
	log.Fatal(err)
}
// Read the object1 from bucket.
rc, err := client.Bucket("bucket").Object("object1").NewReader(ctx)
if err != nil {
	log.Fatal(err)
}
defer rc.Close()
body, err := ioutil.ReadAll(rc)
if err != nil {
	log.Fatal(err)
}