_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c182400 | // LoadPackage parses a text string. | |
c182401 | // NewDecoder creates a new Decoder using a type Registry and an io.Reader. | |
c182402 | // NewDecoderSize creates a new Decoder using a type Registry, a max size and an io.Reader. | |
c182403 | // Panic returns a handler that invokes the passed handler h, catching any
// panics. If one occurs, an HTTP 500 response is produced.
//
// By default, all messages are printed out to os.Stderr. | |
c182404 | //DeployVApp - fake out calling deploy vapp | |
c182405 | //UnDeployVApp - executes a fake undeploy on a fake client | |
c182406 | //Auth - fake out making an auth call | |
c182407 | //QueryTemplate - fake querying for a template | |
c182408 | // NewEncoder creates a new encoder with the given io.Writer | |
c182409 | // Getter allows the user to set the method by which a nonce is retrieved from
// the incoming request. | |
c182410 | // Setter allows the user to set the method by which a nonce is stored in
// the outgoing response. | |
c182411 | // Age sets the maximum time duration a nonce can be valid | |
c182412 | // Nonce returns a handler that will check each request for the
// existence of a nonce. If a nonce exists, it will be checked for
// expiration. A status will be recorded in the request's context,
// indicating whether there was a nonce in the request, and if so,
// whether it is valid or expired.
//
// The recorded status can later be obtained using the
// NonceValueFromRequest function.
//
// A nonce can be set for later checking using the StoreNonce
// function. | |
c182413 | // NonceValueFromRequest validates a nonce in the given request, and returns
// the validation status. | |
c182414 | // StoreNonce generates and stores a nonce in the outgoing response. | |
c182415 | // PutFloat32Array writes a float array for the given field. The field type must be a 'Float32ArrayField', otherwise as error will be returned. The type code is written first followed by the array size in bytes. If the size of the array is less than `math.MaxUint8`, a byte will be used to represent the length. If the size of the array is less than `math.MaxUint16`, a 16-bit unsigned integer will be used to represent the length and so on. If the buffer is too small to store the entire array, an `xbinary.ErrOutOfRange` error will be returned. If the write is successful, the total number of bytes will be returned as well as a nil error. | |
c182416 | // PutFloat64Array writes a float array for the given field. The field type must be a 'Float64ArrayField', otherwise as error will be returned. The type code is written first followed by the array size in bytes. If the size of the array is less than `math.MaxUint8`, a byte will be used to represent the length. If the size of the array is less than `math.MaxUint16`, a 16-bit unsigned integer will be used to represent the length and so on. If the buffer is too small to store the entire array, an `xbinary.ErrOutOfRange` error will be returned. If the write is successful, the total number of bytes will be returned as well as a nil error. | |
c182417 | //Do - fake do method | |
c182418 | //NewLease - create and return a new lease object | |
c182419 | //Delete - handle a delete lease call | |
c182420 | //Post - handle a post lease call | |
c182421 | //ReStock - this will reclaim resources for a given lease | |
c182422 | //Procurement - method to issue a procurement request for the given lease item. | |
c182423 | //InitFromHTTPRequest - initialize a lease from the http request object body | |
c182424 | // Is determines if a tuple is a certain type. | |
c182425 | // Offset returns the byte offset for the given field | |
c182426 | // WriteTo sends the binary representation of the Tuple to
// the given io.Writer. | |
c182427 | // PutTuple writes a tuple into the given field. The field type must be a TupleField, otherwise an error will be returned. The type code is written first, then the length, then the value. If the tuple length is less than `math.MaxUint8`, a single byte is used to represent the length. If the tuple length is less than `math.MaxUint16`, an unsigned 16-bit integer is used to represent the length and so on as the length increases. If the buffer is not large enough to store the entire tuple an `xbinary.ErrOutOfRange` error is returned. If the write is successful, the number of bytes written is returned as well as a nil error. | |
c182428 | // WriteString writes string data into the response object. | |
c182429 | //Run - this begins the running of an agent's async process | |
c182430 | // NewWaitGroup instantiates a new WaitGroup with the given throttle. | |
c182431 | // Add will block until the number of goroutines being throttled
// has fallen below the throttle. | |
c182432 | // Wait until all of the throttled goroutines have signaled they are done. | |
c182433 | // Gzip returns a handler that will use gzip compression on the response body
// of handler h. Compression will only be applied if the request contains an
// 'Accept-Encoding' header that contains 'gzip'.
//
// By default, no messages are printed out. | |
c182434 | // New - create a new api client | |
c182435 | // Error writes the given HTTP status to the current ResponseWriter | |
c182436 | // Renderer is a Middleware that maps a render.Render service into the Martini handler chain. An single variadic render.RenderOptions
// struct can be optionally provided to configure HTML rendering. The default directory for templates is "templates" and the default
// file extension is ".tmpl".
//
// If MARTINI_ENV is set to "" or "development" then templates will be recompiled on every request. For more performance, set the
// MARTINI_ENV environment variable to "production" | |
c182437 | //NewClient - constructor for a new dispenser client | |
c182438 | //GetTask - wrapper to rest call to GET task from dispenser | |
c182439 | // WriteImageToHTTP Sends an image via http. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.