Commit Graph

24 Commits

Author SHA1 Message Date
Paul Lindner 3dfd895def vendor: update to dep v0.4.0 which allows for auto pruning, more legal files and no tests
Change-Id: I434887599e29664cb45440df3648207ae978c932
2018-02-06 06:56:32 -08:00
Paul Lindner cb571228af vendor: update google go related packages to consistent revisions
Uses revisions as close to current usage as possible.

Addresses issues with repos that have different per-directory
revisions.

- cloud.google.com/go
  rev: b70ccc799b9d019708c3eb9395acef6e3f6b7bc8
- github.com/golang/protobuf
  rev: 1e59b77b52bf8e4b449a57e6f79f21226d571845
- google.golang.org/api
  rev: 48e49d1645e228d1c50c3d54fb476b2224477303
- google.golang.org/appengine
  rev: 150dc57a1b433e64154302bdc40b6bb8aefa313a
  version: v1.0.0
- google.golang.org/genproto
  rev: 08f135d1a31b6ba454287638a3ce23a55adace6f

Addresses #889

Change-Id: I41610d2f409d7a558a59e3018094a124efc100c5
2018-01-08 10:00:54 -08:00
Paul Lindner 683d81f2df vendor: prune vendor directories that will be removed by dep
- bazil.org/fuse
- github.com/cznic/mathutil/mersenne
- github.com/golang/glog
- myitcv.io/gogenerate/_scripts
- google.golang.org/grpc/Documentation
- myitcv.io/react/testutils
- github.com/cznic/fileutil/{falloc,hdb,storage}

Addresses #889

Change-Id: Icde028ba4d433a7311132c1c86837e6cb4217fc3
2018-01-08 01:13:03 +00:00
Paul Lindner bf4b74b5d6 vendor: remove more testdata from vendored packages
This is another step towards getting vendor managed by dep.

Addresses: #889

Change-Id: Ibdc3102eee25d6e873f4f418d17f0b4e46b38d9f
2018-01-01 01:48:48 -08:00
mpl af10e5a8dd pkg/deploy/gce: also create Google Cloud Project for user
This change allows the launcher to create a Google Cloud Project on
behalf of the user, as well as enabling the required APIs.

Radio buttons have been added to the form, such that the user can choose
between creating a new project, or reusing one of their existing
projects. Some javascript (jquery) code has been added to modify the
rest of the form fields depending on which button is selected, and if
the project id field is empty or not.

On project creation, if the user didn't pick one, we generate a project
ID that is a (0,1e10) random number prefixed with "camlistore-launcher-",
and we then use google.golang.org/api/cloudresourcemanager to create
the project.

On project creation success, we redirect back to the form, but with the
project id  input field pre-filled with the newly created project
(passed as url query parameter during redirection). The user can then
set the other fields, and submit again for instance creation.

Note that the user still has to enable billing for the selected project
BEFORE instance creation, even when we create the project for them.

Right before instance creation, we now also take care of enabling the
required APIs (Compute Engine, Cloud Storage, Stackdriver Logging)
through the use of google.golang.org/api/servicemanagement. Note that
suprisingly, even though the docs
(https://cloud.google.com/service-management/getting-started) specify
that we should enable the Service Management API on the project in order
to use it, we apparently don't need to do so. So far.

vendor: add
google.golang.org/api/cloudresourcemanager/v1
google.golang.org/api/servicemanagement/v1
google.golang.org/api/gensupport/
at rev 48e49d1645e228d1c50c3d54fb476b2224477303

Fixes #819

Change-Id: Id58b453e432e4d7c29d3ede04917ab4d244f142e
2017-04-21 18:09:10 +02:00
mpl 1e69b9f784 vendor: update cloud.google.com/go/logging to V2 API
In addition to API changes, the V2 logging API uses
google.golang.org/grpc, which does not rely directly on net/http. This
is a problem for us because, among other things, when needed (on
CoreOS), we insert the system Root CAs in the TLSConfig of the
default http client through httputil.InstallCerts, which has no effect
on google.golang.org/grpc calls. Therefore, we switch to
github.com/bradfitz/grpc-go instead, which does rely on net/http.

And since GRPC requires HTTP/2, we also now need to manually configure
the default transport (since we're already modifying it) to be HTTP/2
enabled.

Related dependencies updated/added:

updated:

cloud.google.com/go/logging
a64eb5d53f434cc548fd6b2898b5a3e8a0c31b78

github.com/golang/protobuf
8ee79997227bf9b34611aee7946ae64735e6fd93

added:

github.com/bradfitz/grpc-go
188a132adcfba339f1f2d5da52498451341f9ee8
as a replacement for google.golang.org/grpc

github.com/googleapis/gax-go
da06d194a00e19ce00d9011a13931c3f6f6887c7

google.golang.org/genproto/googleapis/logging
08f135d1a31b6ba454287638a3ce23a55adace6f

google.golang.org/genproto/googleapis/datastore
08f135d1a31b6ba454287638a3ce23a55adace6f

google.golang.org/api/support/bundler
e4c04685e5d7db47ff294aa9e514b3a638c431c9

google.golang.org/genproto/googleapis/rpc/status
08f135d1a31b6ba454287638a3ce23a55adace6f

Fixes #873

Change-Id: I3ba14c94122dd9f1b88ef61c2dc26430690d28a9
2017-02-06 19:59:24 +01:00
mpl b0b6a0a89e vendor: update go4.org/wkfs/gcs
Requires updating vendor/cloud.google.com/go/storage because of the
BucketHandle.List removal, which in turns triggers a bunch of other
updates or additions.

cloud.google.com/go/internal/optional
cloud.google.com/go/storage
at rev 641b1469e744485a8e6235bffc3b7bf366758a85

github.com/googleapis/gax-go
at rev da06d194a00e19ce00d9011a13931c3f6f6887c7

google.golang.org/api/*
at rev f7e067168bd43883b2156f16b6c2fd91beec76e2

Fixes #884

Change-Id: I7e27a24fa2ffbb747e66bde0d10dabaad1ac60d6
2017-01-05 16:58:18 +01:00
mpl 6297d0d570 website: update google cloud dependencies
This change follows the changes at
ab06dbd80d

google.golang.org/genproto/googleapis/datastore updated to
44808ed2d86e258615bb701d395cbbfe6686a3e6

As a consequence:
google.golang.org/genproto/protobuf added at
44808ed2d86e258615bb701d395cbbfe6686a3e6
google.golang.org/genproto/googleapis/api/{label, metric, monitoredres,
serviceconfig} added/updated to 44808ed2d86e258615bb701d395cbbfe6686a3e6
github.com/golang/protobuf/ptypes{any, struct, timestamp, wrappers}
added/updated to 1f49d83d9aa00e6ce4fc8258c71cc7786aec968a

Test locally, and in "pseudo-production", i.e. with -cloudlaunch but with
a different projectID (hence with some of the hard-coded stuff changed).

Change-Id: Iad0caa78b19619bf153bf05870e6cb3a2ab669dd
2016-09-30 18:08:44 +02:00
mpl 27b2442475 vendor: add google.golang.org/api/internal
at rev 63cb68f1e3834e44683ca062ddf06cb9a889380a

Forgot to add it to the commit at
ab06dbd80d

Fixes #854

Change-Id: Ic8a9a3d0fd279b2bcf20c1dd77bee56512ae3f39
2016-09-09 12:34:45 +02:00
mpl ab06dbd80d vendor: rename google.golang.org/cloud to cloud.google.com/go
rm google.golang.org/cloud
add cloud.google.com/go at a47b182e769f5e75f5fc927ff6ee2678f7f552cf
update google.golang.org/api to 63cb68f1e3834e44683ca062ddf06cb9a889380a
update google.golang.org/grpc to
0e6ec3a4501ee9ee2d023abe92e436fd04ed4081
update go4.org to f5283521d7365fb2875408726e9cbf349f173767

fix in cmd/ pkg/ server/

TODO(mpl): fix misc/docker tools as well. next CL.

Fixes #832

Change-Id: I842b968a0afea8a5822913bd614d67cdbe50ee63
2016-09-08 15:14:12 +02:00
Will Norris 5dd8671051 vendor: update cloud,grpc,protobuf libraries
update additional supporting libraries needed with
219f966a95

github.com/golang/protobuf @ 7cc19b78d562895b13596ddce7aafb59dd789318
google.golang.org/grpc @ b062a3c003c22bfef58fa99d689e6a892b408f9d
google.golang.org/cloud @ 36e3752134d445180a77cd40c922c48850b6fe9c
 - same as before, just added missing 'internal' package

Tests:
 - go run make.go succeeds
 - camweb builds and runs
 - go test ./pkg/... has a couple of failures, but nothing that wasn't
 already failing before this change

Fixes #743

Change-Id: I0a81f471f79255fcb4e0d615630eecce1c5cd966
2016-04-29 19:42:33 -07:00
mpl 219f966a95 vendor: update google.golang.org/cloud
to rev 36e3752134d445180a77cd40c922c48850b6fe9c

So we get ErrObjectNotExist on ObjectHandle.Delete

And update google.golang.org/api to rev
9737cc9e103c00d06a8f3993361dec083df3d252
for consistency.

Change-Id: I58c706d1d71a98ad01f4fef8929eac52338c1bbe
2016-04-27 11:04:47 -07:00
mpl 606cfcb635 vendor: update cloud/storage
To 392f2aeac3d98ee75147c8cd8f92e4f65104b0bb

Mainly so we can use the new Reader.

Change-Id: I61d88ba2bae4e8732d3426b5ae66b7ff2d89e89b
2016-01-15 00:03:27 +01:00
Brad Fitzpatrick 8c2c601317 vendor: add google.golang.org/cloud/datastore at 6fdcab49
Change-Id: Ide2a5b66fd5a80c850fd89691a51bded826835a6
2015-12-28 20:39:55 -08:00
mpl d9a3bbc73a pkg/vendor: update google.golang.org/cloud/storage
rev 2375e186ca77be721a7c9c7b13a659738a8511d2

This is so we can use storage.Client in pkg/wkfs/gcs (and later in
other places) instead of pkg/googlestorage

Change-Id: I1d0eafbffd40e0326c41214692754f6671ec1d5d
2015-12-03 00:55:53 +01:00
mpl 1e2a306e8d vendor: add go4.org/cloud, update google.golang.org/api, and golang.org/x/net/context
Import go4.org/cloud/cloudlaunch and go4.org/cloud/gceutil, which were
previously in pkg/cloudlaunch, at rev
2c497a8c195996d6c48402c150da4919c1d99f33

Because the version on go4.org was updated to use the latest
google.golang.org/api/* , we also update our
vendor/google.golang.org/api/* to rev
030d584ade5f79aa2ed0ce067e8f7da50c9a10d5

This in turns requires to add vendor/golang.org/x/net/context/ctxhttp
(and update vendor/golang.org/x/net/context/) to rev
4f2fc6c1e69d41baf187332ee08fbd2b296f21ed

Also adding vendor/google.golang.org/api/gensupport for the same reason.

Change-Id: I9d6c3059626f7ecc0fbf2df0415043a464d27caa
2015-11-25 19:29:46 +01:00
Brad Fitzpatrick 0d3b78edef vendor: update google cloud logging
Rev: cae1d9bade07b
Only test changes.
2015-11-08 15:52:25 +01:00
mpl 2e34259de8 vendor: update http2
Replaced github.com/bradfitz/http2 with the latest golang.org/x/net/http2
and updated the following dependencies:

golang.org/x/net @ a179abb31d787abdb406d922dff79635a8d784a4
golang.org/x/oauth2 @ 038cb4adce85ed41e285c2e7cc6221a92bfa44aa
google.golang.org/grpc @ 1684e4a49ba8e6c88a8628b26395f310a1e3d99f

Change-Id: Ic8f294f22a4ec7f7ee513fd1eb29a0b72ac41886
2015-11-08 11:52:24 +01:00
Brad Fitzpatrick 9106ce8296 vendor: update cloud logging to c7e49e47d60 2015-09-29 08:52:16 -07:00
mpl 7820d0279e vendor/google.golang.org/api: update googleapi and storage/v1
Because they were forgotten at 5744b598d4

rev b82cbee675293441769a97b99710295d58dac769

Change-Id: I37d664f969059106af68b854e74f57169dc64921
2015-09-23 17:18:33 +02:00
Brad Fitzpatrick 5744b598d4 vendor: update Google Cloud Logging, gocloud, add grpc, move http2, etc
I just wanted to update the Google Cloud Logging code (still in review
at: https://code-review.googlesource.com/#/c/2650/) but that required
updating tons of things. For instance, gocloud now always depends on
grpc, which depends on http2, which we already had in third_party, so
that now moves into vendor.

I was unable to run the tests because of some error. The error message
was useless.

But "go run make.go" compiles everything at least.
2015-09-22 14:48:04 +02:00
Brad Fitzpatrick 6f58fc2426 Fix build, move more stuff from third_party to vendor. 2015-08-18 10:19:49 +02:00
Brad Fitzpatrick b0c9fcc71f Start of a Google Cloud Logging package.
Will implement here and then upstream.
2015-08-15 22:49:27 +02:00
Brad Fitzpatrick 06f7accf31 Require Go 1.5 (due out soon), start move from third_party to vendor.
See https://golang.org/s/go15vendor

This commit moves the google.golang.org/cloud/... packages. The rest
of third_party will move later.

This commit is a dependency for some cloud logging work which we'll
develop in Camlistore's tree.
2015-08-15 22:45:11 +02:00