_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c170300
validation
// buildAndSelectGuestIPs builds a list of IP addresses known to VMware tools, // skipping local and auto-configuration addresses. // // The builder is non-discriminate and is only deterministic to the order that // it discovers addresses in VMware tools.
{ "resource": "" }
c170301
validation
// skipIPAddr defines the set of criteria that buildAndSelectGuestIPs uses to // check to see if it needs to skip an IP address.
{ "resource": "" }
c170302
validation
// virtualMachineNames is a helper method that returns all the names for a list // of virtual machines, comma separated.
{ "resource": "" }
c170303
validation
// validateAndWrapHandler makes sure a handler is a callable function, it panics if not. // When the handler is also potential to be any built-in inject.FastInvoker, // it wraps the handler automatically to have some performance gain.
{ "resource": "" }
c170304
validation
// validateAndWrapHandlers preforms validation and wrapping for each input handler. // It accepts an optional wrapper function to perform custom wrapping on handlers.
{ "resource": "" }
c170305
validation
// NewWithLogger creates a bare bones Macaron instance. // Use this method if you want to have full control over the middleware that is used. // You can specify logger output writer with this function.
{ "resource": "" }
c170306
validation
// Handlers sets the entire middleware stack with the given Handlers. // This will clear any current middleware handlers, // and panics if any of the handlers is not a callable function
{ "resource": "" }
c170307
validation
// Use adds a middleware Handler to the stack, // and panics if the handler is not a callable func. // Middleware Handlers are invoked in the order that they are added.
{ "resource": "" }
c170308
validation
// ServeHTTP is the HTTP Entry point for a Macaron instance. // Useful if you want to control your own HTTP server. // Be aware that none of middleware will run without registering any router.
{ "resource": "" }
c170309
validation
// SetURLPrefix sets URL prefix of router layer, so that it support suburl.
{ "resource": "" }
c170310
validation
// SetConfig sets data sources for configuration.
{ "resource": "" }
c170311
validation
// String reads and returns content of request body in string.
{ "resource": "" }
c170312
validation
// RemoteAddr returns more real IP address.
{ "resource": "" }
c170313
validation
// HTML renders the HTML with default template set.
{ "resource": "" }
c170314
validation
// HTMLSet renders the HTML with given template set name.
{ "resource": "" }
c170315
validation
// Query querys form parameter.
{ "resource": "" }
c170316
validation
// QueryTrim querys and trims spaces form parameter.
{ "resource": "" }
c170317
validation
// QueryStrings returns a list of results by given query name.
{ "resource": "" }
c170318
validation
// QueryEscape returns escapred query result.
{ "resource": "" }
c170319
validation
// QueryBool returns query result in bool type.
{ "resource": "" }
c170320
validation
// QueryInt returns query result in int type.
{ "resource": "" }
c170321
validation
// QueryInt64 returns query result in int64 type.
{ "resource": "" }
c170322
validation
// QueryFloat64 returns query result in float64 type.
{ "resource": "" }
c170323
validation
// SetParams sets value of param with given name.
{ "resource": "" }
c170324
validation
// GetFile returns information about user upload file by given form field name.
{ "resource": "" }
c170325
validation
// SaveToFile reads a file from request by field name and saves to given path.
{ "resource": "" }
c170326
validation
// GetCookie returns given cookie value from request header.
{ "resource": "" }
c170327
validation
// GetCookieInt returns cookie result in int type.
{ "resource": "" }
c170328
validation
// GetCookieInt64 returns cookie result in int64 type.
{ "resource": "" }
c170329
validation
// GetCookieFloat64 returns cookie result in float64 type.
{ "resource": "" }
c170330
validation
// SetSecureCookie sets given cookie value to response header with default secret string.
{ "resource": "" }
c170331
validation
// GetSecureCookie returns given cookie value from request header with default secret string.
{ "resource": "" }
c170332
validation
// SetSuperSecureCookie sets given cookie value to response header with secret string.
{ "resource": "" }
c170333
validation
// GetSuperSecureCookie returns given cookie value from request header with secret string.
{ "resource": "" }
c170334
validation
// ServeContent serves given content to response.
{ "resource": "" }
c170335
validation
// ServeFileContent serves given file as content to response.
{ "resource": "" }
c170336
validation
// ServeFile serves given file to response.
{ "resource": "" }
c170337
validation
// ChangeStaticPath changes static path from old to new one.
{ "resource": "" }
c170338
validation
// getNextWildcard tries to find next wildcard and update pattern with corresponding regexp.
{ "resource": "" }
c170339
validation
// getRawPattern removes all regexp but keeps wildcards for building URL path.
{ "resource": "" }
c170340
validation
// URLPath build path part of URL by given pair values.
{ "resource": "" }
c170341
validation
// NewRouteMap initializes and returns a new routeMap.
{ "resource": "" }
c170342
validation
// getLeaf returns Leaf object if a route has been registered.
{ "resource": "" }
c170343
validation
// add adds new route to route tree map.
{ "resource": "" }
c170344
validation
// Name sets name of route.
{ "resource": "" }
c170345
validation
// handle adds new route to the router tree.
{ "resource": "" }
c170346
validation
// Handle registers a new request handle with the given pattern, method and handlers.
{ "resource": "" }
c170347
validation
// Combo returns a combo router.
{ "resource": "" }
c170348
validation
// NotFound configurates http.HandlerFunc which is called when no matching route is // found. If it is not set, http.NotFound is used. // Be sure to set 404 response code in your handler.
{ "resource": "" }
c170349
validation
// InternalServerError configurates handler which is called when route handler returns // error. If it is not set, default handler is used. // Be sure to set 500 response code in your handler.
{ "resource": "" }
c170350
validation
// URLFor builds path part of URL by given pair values.
{ "resource": "" }
c170351
validation
// Name sets name of ComboRouter route.
{ "resource": "" }
c170352
validation
// NewResponseWriter creates a ResponseWriter that wraps an http.ResponseWriter
{ "resource": "" }
c170353
validation
// NewTplFile cerates new template file with given name and data.
{ "resource": "" }
c170354
validation
// NewTemplateFileSystem creates new template file system with given options.
{ "resource": "" }
c170355
validation
// NewTemplateSet initializes a new empty template set.
{ "resource": "" }
c170356
validation
// GenerateETag generates an ETag based on size, filename and file modification time
{ "resource": "" }
c170357
validation
// Populate is a short-hand for populating a graph with the given incomplete // object values.
{ "resource": "" }
c170358
validation
// String representation suitable for human consumption.
{ "resource": "" }
c170359
validation
// Provide objects to the Graph. The Object documentation describes // the impact of various fields.
{ "resource": "" }
c170360
validation
// Populate the incomplete Objects.
{ "resource": "" }
c170361
validation
// Objects returns all known objects, named as well as unnamed. The returned // elements are not in a stable order.
{ "resource": "" }
c170362
validation
// newPubSub returns a PubSub receiver. Optionally accepts a client to allow // for injecting the fake for tests. If client is nil a real // client connection to the google pubsub service will be attempted.
{ "resource": "" }
c170363
validation
// Stat sends pubsub receiver's internal stats to specified callback
{ "resource": "" }
c170364
validation
// New App instance
{ "resource": "" }
c170365
validation
// configure loads config from config file, schemas.conf, aggregation.conf
{ "resource": "" }
c170366
validation
// ParseConfig loads config from config file, schemas.conf, aggregation.conf
{ "resource": "" }
c170367
validation
// ReloadConfig reloads some settings from config
{ "resource": "" }
c170368
validation
// Stop all socket listeners
{ "resource": "" }
c170369
validation
// MarshalText marshals offset. It's used to handle two special cases "newest" and "oldest".
{ "resource": "" }
c170370
validation
// UnmarshalText unmarshals text to offset. It handles "newest" and "oldest", oterwise fallbacks to time.ParseDuration.
{ "resource": "" }
c170371
validation
// MarshalText converts internal enum-like representation of protocol to a text
{ "resource": "" }
c170372
validation
// UnmarshalText converts text from config file to a enum.
{ "resource": "" }
c170373
validation
// UnmarshalText from TOML
{ "resource": "" }
c170374
validation
// NewOptions returns Options struct filled with default values.
{ "resource": "" }
c170375
validation
// Stat sends kafka receiver's internal stats to specified callback
{ "resource": "" }
c170376
validation
// Creates a new cache instance
{ "resource": "" }
c170377
validation
// SetMaxSize of cache
{ "resource": "" }
c170378
validation
// ParseCarbonlinkRequest from pickle encoded data
{ "resource": "" }
c170379
validation
// NewCarbonlinkListener create new instance of CarbonlinkListener
{ "resource": "" }
c170380
validation
// OnePoint create Points instance with single point
{ "resource": "" }
c170381
validation
// NowPoint create OnePoint with now timestamp
{ "resource": "" }
c170382
validation
// Copy returns copy of object
{ "resource": "" }
c170383
validation
// ParseText parse text protocol Point // host.Point.value 42 1422641531\n
{ "resource": "" }
c170384
validation
// Eq points check
{ "resource": "" }
c170385
validation
// Match finds the schema for metric or returns false if none found
{ "resource": "" }
c170386
validation
// ParseRetentionDefs parses retention definitions into a Retentions structure
{ "resource": "" }
c170387
validation
// RestoreFromFile read and parse data from single file
{ "resource": "" }
c170388
validation
// RestoreFromDir cache and input dumps from disk to memory
{ "resource": "" }
c170389
validation
// Restore from dump.path
{ "resource": "" }
c170390
validation
// Root creates new test directory
{ "resource": "" }
c170391
validation
// Remove key from queue
{ "resource": "" }
c170392
validation
// NewWhisper create instance of Whisper
{ "resource": "" }
c170393
validation
// NewWhisperAggregation create instance of WhisperAggregation
{ "resource": "" }
c170394
validation
// Match find schema for metric
{ "resource": "" }
c170395
validation
// old version. for benchmarks only
{ "resource": "" }
c170396
validation
// UpdateIntegrationPD updates the PagerDuty Integration. // This will replace the existing values with the new values.
{ "resource": "" }
c170397
validation
// GetIntegrationPD gets all the PagerDuty Integrations from the system.
{ "resource": "" }
c170398
validation
// CreateIntegrationSlack creates new Slack Integrations. // Use this if you want to setup the integration for the first time // or to add more channels.
{ "resource": "" }
c170399
validation
// UpdateIntegrationSlack updates the Slack Integration. // This will replace the existing values with the new values.
{ "resource": "" }