util

package
v0.0.0-...-5805fc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2015 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TemplateBucket = "coduno-templates"
	TestsBucket    = "coduno-tests"
	// TODO(victorbalan): Add param in the test struct to not hardcode
	// the result file name.
	JUnitResultsPath = "/run/target/surefire-reports/TEST-Tests.xml"
)

Variables

This section is empty.

Functions

func CheckNick

func CheckNick(nick string) error

CheckNick should be used to check whether a nick can be accepted.

func CloudContext

func CloudContext(parent context.Context) context.Context

func Expose

func Expose(bucket, name string, expiry time.Time) (string, error)

func ExposeMultiURL

func ExposeMultiURL(ctx context.Context, bucket, name string) ([]string, error)

func HasParent

func HasParent(parent, key *datastore.Key) bool

HasParent returns true if key or any of its parents equals parent (recursively), otherwise false.

func Load

func Load(ctx context.Context, bucket, name string) (io.ReadCloser, error)

func SubmissionBucket

func SubmissionBucket() string

Types

This section is empty.

Directories

Path Synopsis
Package passenger revolves around the User associated with the request in flight.
Package passenger revolves around the User associated with the request in flight.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL