This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -ex | |
rm -rf ~/.glide/cache | |
export GOPATH=$( mktemp -d ) | |
PKG=client-go-example | |
PKG_PATH=$GOPATH/src/$PKG | |
function cleanup { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tls | |
import ( | |
"crypto/tls" | |
"crypto/x509" | |
"io/ioutil" | |
"net" | |
"testing" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: default-http-backend | |
labels: | |
k8s-app: default-http-backend | |
spec: | |
ports: | |
- port: 80 | |
targetPort: 8080 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./test | |
Running tests... | |
ok github.com/coreos/dex/connector 0.005s coverage: 23.7% of statements | |
ok github.com/coreos/dex/db 0.087s coverage: 11.1% of statements | |
ok github.com/coreos/dex/integration 22.527s coverage: 0.0% of statements | |
ok github.com/coreos/dex/pkg/crypto 0.014s coverage: 75.7% of statements | |
ok github.com/coreos/dex/pkg/flag 0.012s coverage: 97.5% of statements | |
ok github.com/coreos/dex/pkg/http 0.004s coverage: 40.0% of statements | |
ok github.com/coreos/dex/pkg/time 0.007s coverage: 100.0% of statements | |
ok github.com/coreos/dex/pkg/html 0.004s coverage: 78.9% of statements |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package migrate | |
type Migration struct { | |
// Pre and Post are commands to execute before and after a migration. | |
// | |
// If nil, these fields are ignored. | |
Pre func(tx *sql.Tx) error | |
Post func(tx *sql.Tx) error | |
// Migration is a list of SQL commands to run. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json | |
index 65a5df3..9a26ff2 100644 | |
--- a/Godeps/Godeps.json | |
+++ b/Godeps/Godeps.json | |
@@ -34,6 +34,61 @@ | |
"Rev": "72440a9c5a884936f1c679591fcf04e31a9b772a" | |
}, | |
{ | |
+ "ImportPath": "github.com/aws/aws-sdk-go/aws/awserr", | |
+ "Comment": "v1.1.3", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Package api provides facilities for API specific handlers. | |
var errDecode = api.NewError("invalid_request", "Failed to decode request.", http.StatusBadRequest) | |
func init() { | |
// Register errors for use with WriteError. | |
api.Register(user.ErrUserExists, api.NewError("invalid_request", "Username already exists.", http.StatusBadRequest)) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ make test | |
hack/test-go.sh | |
Running tests for APIVersion: v1,extensions/v1beta1,metrics/v1alpha1 with etcdPrefix: registry | |
+++ [0128 10:04:14] Running tests without code coverage | |
# k8s.io/kubernetes/contrib/mesos/pkg/election | |
package k8s.io/kubernetes/contrib/mesos/pkg/election (test) | |
imports k8s.io/kubernetes/pkg/storage/etcd/testing | |
imports github.com/coreos/etcd/etcdserver | |
imports github.com/coreos/etcd/lease: cannot find package "github.com/coreos/etcd/lease" in any of: | |
/usr/local/go/src/github.com/coreos/etcd/lease (from $GOROOT) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Worker information | |
hostname: travis-worker-gce-org-prod-5:a5540ec0-3a77-4a84-b8ca-af7d3c8ffe37 | |
version: v2.0.0-24-g8f5b41a https://github.com/travis-ci/worker/tree/8f5b41a07b602643e7ee8cf307787f9ca8f4b00b | |
instance: testing-gce-ac0634aa-6675-44ad-bf7a-3a400c844b6a:travis-ci-mega-trusty-1445287562 | |
startup: 21.818375482s | |
Build system information | |
Build language: go | |
Build group: stable | |
Build dist: trusty | |
Build image provisioning date and time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"io" | |
"log" | |
"net/http" | |
"os" | |
"golang.org/x/net/html" |