Documentation ¶
Overview ¶
Package devservertest provides a fake implementation of devservers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct { // URL is a gs:// URL of a file. URL string // Data is the content of a file. Data []byte // Staged indicates if the file has been staged or not. Staged bool }
File represents a file served by a Server. A set of files served by a Server can be specified by the Files option.
type Option ¶
type Option func(o *options)
Option is an option accepted by NewServer to configure Server initialization.
func AbortDownloadAfter ¶
AbortDownloadAfter returns an option to make download requests fail after specified bytes.
func Down ¶
func Down() Option
Down returns an option to mark a Server down. Such a server responds negatively to health queries.
func StageHook ¶
StageHook returns an option to specify a hook function called before staging a file.
func SwarmingTaskID ¶
SwarmingTaskID returns an option to specify the swarming task ID.
Click to show internal directories.
Click to hide internal directories.