_id
stringlengths 2
7
| title
stringclasses 1
value | partition
stringclasses 3
values | text
stringlengths 6
2.61k
| language
stringclasses 1
value | meta_information
dict |
---|---|---|---|---|---|
c182400 | test | // LoadPackage parses a text string. | {
"resource": ""
} |
||
c182401 | test | // NewDecoder creates a new Decoder using a type Registry and an io.Reader. | {
"resource": ""
} |
||
c182402 | test | // NewDecoderSize creates a new Decoder using a type Registry, a max size and an io.Reader. | {
"resource": ""
} |
||
c182403 | test | // 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. | {
"resource": ""
} |
||
c182404 | test | //DeployVApp - fake out calling deploy vapp | {
"resource": ""
} |
||
c182405 | test | //UnDeployVApp - executes a fake undeploy on a fake client | {
"resource": ""
} |
||
c182406 | test | //Auth - fake out making an auth call | {
"resource": ""
} |
||
c182407 | test | //QueryTemplate - fake querying for a template | {
"resource": ""
} |
||
c182408 | test | // NewEncoder creates a new encoder with the given io.Writer | {
"resource": ""
} |
||
c182409 | test | // Getter allows the user to set the method by which a nonce is retrieved from
// the incoming request. | {
"resource": ""
} |
||
c182410 | test | // Setter allows the user to set the method by which a nonce is stored in
// the outgoing response. | {
"resource": ""
} |
||
c182411 | test | // Age sets the maximum time duration a nonce can be valid | {
"resource": ""
} |
||
c182412 | test | // 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. | {
"resource": ""
} |
||
c182413 | test | // NonceValueFromRequest validates a nonce in the given request, and returns
// the validation status. | {
"resource": ""
} |
||
c182414 | test | // StoreNonce generates and stores a nonce in the outgoing response. | {
"resource": ""
} |
||
c182415 | test | // 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. | {
"resource": ""
} |
||
c182416 | test | // 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. | {
"resource": ""
} |
||
c182417 | test | //Do - fake do method | {
"resource": ""
} |
||
c182418 | test | //NewLease - create and return a new lease object | {
"resource": ""
} |
||
c182419 | test | //Delete - handle a delete lease call | {
"resource": ""
} |
||
c182420 | test | //Post - handle a post lease call | {
"resource": ""
} |
||
c182421 | test | //ReStock - this will reclaim resources for a given lease | {
"resource": ""
} |
||
c182422 | test | //Procurement - method to issue a procurement request for the given lease item. | {
"resource": ""
} |
||
c182423 | test | //InitFromHTTPRequest - initialize a lease from the http request object body | {
"resource": ""
} |
||
c182424 | test | // Is determines if a tuple is a certain type. | {
"resource": ""
} |
||
c182425 | test | // Offset returns the byte offset for the given field | {
"resource": ""
} |
||
c182426 | test | // WriteTo sends the binary representation of the Tuple to
// the given io.Writer. | {
"resource": ""
} |
||
c182427 | test | // 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. | {
"resource": ""
} |
||
c182428 | test | // WriteString writes string data into the response object. | {
"resource": ""
} |
||
c182429 | test | //Run - this begins the running of an agent's async process | {
"resource": ""
} |
||
c182430 | test | // NewWaitGroup instantiates a new WaitGroup with the given throttle. | {
"resource": ""
} |
||
c182431 | test | // Add will block until the number of goroutines being throttled
// has fallen below the throttle. | {
"resource": ""
} |
||
c182432 | test | // Wait until all of the throttled goroutines have signaled they are done. | {
"resource": ""
} |
||
c182433 | test | // 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. | {
"resource": ""
} |
||
c182434 | test | // New - create a new api client | {
"resource": ""
} |
||
c182435 | test | // Error writes the given HTTP status to the current ResponseWriter | {
"resource": ""
} |
||
c182436 | test | // 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" | {
"resource": ""
} |
||
c182437 | test | //NewClient - constructor for a new dispenser client | {
"resource": ""
} |
||
c182438 | test | //GetTask - wrapper to rest call to GET task from dispenser | {
"resource": ""
} |
||
c182439 | test | // WriteImageToHTTP Sends an image via http. | {
"resource": ""
} |