package testutil
import "github.com/docker/distribution/Godeps/_workspace/src/google.golang.org/cloud/internal/testutil"
Package testutil contains helper functions for writing tests.
Index ¶
- func Context(scopes ...string) context.Context
- func NoAuthContext() context.Context
- func ProjID() string
- func TokenSource(ctx context.Context, scopes ...string) oauth2.TokenSource
Functions ¶
func Context ¶
TODO(djd): Delete this function when it's no longer used.
func NoAuthContext ¶
TODO(djd): Delete this function when it's no longer used.
func ProjID ¶
func ProjID() string
func TokenSource ¶
func TokenSource(ctx context.Context, scopes ...string) oauth2.TokenSource
Source Files ¶
- Version
- v2.3.0-alpha+incompatible
- Published
- Jan 11, 2016
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 1 minute ago –
Tools for package owners.