_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c173100
validation
// Using the classic API, posts a count to a stat.
{ "resource": "" }
c173101
validation
// Using the classic API, posts a count to a stat at a specific time.
{ "resource": "" }
c173102
validation
// Using the classic API, posts a count of 1 to a stat.
{ "resource": "" }
c173103
validation
// Using the classic API, posts a value to a stat.
{ "resource": "" }
c173104
validation
// Using the classic API, posts a value to a stat at a specific time.
{ "resource": "" }
c173105
validation
// Using the EZ API, posts a count of 1 to a stat.
{ "resource": "" }
c173106
validation
// Using the EZ API, posts a count to a stat.
{ "resource": "" }
c173107
validation
// Using the EZ API, posts a count to a stat at a specific time.
{ "resource": "" }
c173108
validation
// Using the EZ API, posts a value to a stat.
{ "resource": "" }
c173109
validation
// Using the EZ API, posts a value to a stat at a specific time.
{ "resource": "" }
c173110
validation
// NewBatchReporter creates a batching stat reporter. The interval parameter // specifies how often stats should be posted to the StatHat server.
{ "resource": "" }
c173111
validation
// cleanHost is used to conver from the rawHost format to a more usable format
{ "resource": "" }
c173112
validation
// GetHost will get a specified host by either hostname or ip. The first // return value is the host, if it was found. The second return value is the // wether the host was found or not
{ "resource": "" }
c173113
validation
// Rescan the target. Normally used for finding differences between scans // at two points in time.
{ "resource": "" }
c173114
validation
// Diff gets the difference between the the target host and the argument host. //The first returned value is the added ports and the second returned value is // the removed ports.
{ "resource": "" }
c173115
validation
// ToString converts the host into a nicely formatted string
{ "resource": "" }
c173116
validation
// Init initializes a scan object. This is the easiest way to create a Scan // object. If you are trying to create a Scan object by hand, make sure to // instantiate the Hosts map
{ "resource": "" }
c173117
validation
// AddHosts adds a list of hosts to the list of hosts to be scanned
{ "resource": "" }
c173118
validation
// SetHosts sets the hosts that will be scanned
{ "resource": "" }
c173119
validation
// AddPorts appends a list of ports to the list of ports to be scanned
{ "resource": "" }
c173120
validation
// SetPorts sets the ports that wil be used
{ "resource": "" }
c173121
validation
// SetTCPPorts sets which TCP-only ports are used to scan
{ "resource": "" }
c173122
validation
// SetUDPPort sets which TCP-only ports are used to scan
{ "resource": "" }
c173123
validation
// AddFlags adds a list of flags to be used by nmap. Seperate flags by new // arguments. The order of the flag is kept, so when using flags that require // file names, seperate it by using multiple arguments. // // Use the DisallowedFlags variable to guide you on which flags are not allowed // to be used.
{ "resource": "" }
c173124
validation
// IntenseAllTCPPorts does an intense scan, but adds all TCP ports
{ "resource": "" }
c173125
validation
// ToString returns the list of hosts into a pretty-printed format
{ "resource": "" }
c173126
validation
// CreateNmapArgs takes a Scan object and returns a list of strings that map to // arguments for an nmap scan.
{ "resource": "" }
c173127
validation
// uint16ListToStringList is used to reduce lines for joining strings in // the CreateNmapArgs function
{ "resource": "" }
c173128
validation
// ToString returns port information in a pretty-printed format
{ "resource": "" }
c173129
validation
// Counter returns the HOTP's 8-byte counter as an unsigned 64-bit // integer.
{ "resource": "" }
c173130
validation
// Increment will increment an HOTP source's counter. This is useful // for providers like the Google Authenticator app, which immediately // increments the counter and uses the 0 counter value as an integrity // check.
{ "resource": "" }
c173131
validation
// NewHOTP intialises a new HOTP instance with the key and counter // values. No check is done on the digits, but typical values are 6 // and 8.
{ "resource": "" }
c173132
validation
// URL returns a suitable URL, such as for the Google Authenticator // app. The label is used by these apps to identify the service to // which this OTP belongs. The digits value is ignored by the Google // authenticator app, and is therefore elided in the resulting URL.
{ "resource": "" }
c173133
validation
// truncate contains the DT function from the RFC; this is used to // deterministically select a sequence of 4 bytes from the HMAC // counter hash.
{ "resource": "" }
c173134
validation
// FromURL parses a new HOTP from a URL string. It returns the OTP, // the label associated with the OTP, and any errors that occurred.
{ "resource": "" }
c173135
validation
// GenerateHOTP will generate a randomised HOTP source; if the // randCounter parameter is true, the counter will be randomised.
{ "resource": "" }
c173136
validation
// YubiKey reads an OATH-HOTP string as returned by a YubiKey, and // returns three values. The first value contains the actual OTP, the // second value contains the YubiKey's token identifier, and the final // value indicates whether the input string was a valid YubiKey // OTP. This does not check whether the code is ...
{ "resource": "" }
c173137
validation
// IntegrityCheck returns two values, the base OTP and the current // counter. This is used, for example, with the Google Authenticator // app's "Check key value" function and can be used to verify that // the application and the provider are in sync.
{ "resource": "" }
c173138
validation
// Check takes an input code and verifies it against the OTP. If // successful, the counter is incremented.
{ "resource": "" }
c173139
validation
// Marshal serialises an HOTP key value as a DER-encoded byte slice.
{ "resource": "" }
c173140
validation
// Unmarshal parses a DER-encoded serialised HOTP key value.
{ "resource": "" }
c173141
validation
// NewWriterPool creates a pool that ensures the writers it wraps will // respect an overall maxRate, with maxBurst resolution. The semantics // of the wrapped writers are the same as those of using a plain // ThrottledWriter.
{ "resource": "" }
c173142
validation
// Get a throttled writer that wraps w.
{ "resource": "" }
c173143
validation
// Len is the number of currently given out throttled writers.
{ "resource": "" }
c173144
validation
// NewReaderPool creates a pool that ensures the writers it wraps will // respect an overall maxRate, with maxBurst resolution. The semantics // of the wrapped writers are the same as those of using a plain // ThrottledReader.
{ "resource": "" }
c173145
validation
// Get a throttled reader that wraps r.
{ "resource": "" }
c173146
validation
// SetRate of the pool, updating each given out reader to respect the // newly set rate. Returns the old rate.
{ "resource": "" }
c173147
validation
// Len is the number of currently given out throttled readers.
{ "resource": "" }
c173148
validation
// NewMeasuredWriter wraps a writer.
{ "resource": "" }
c173149
validation
// BytesPerSec tells the rate per second at which bytes were written since last // measurement.
{ "resource": "" }
c173150
validation
// NewMeasuredReader wraps a reader.
{ "resource": "" }
c173151
validation
// BytesPer tells the rate per period at which bytes were read since last // measurement.
{ "resource": "" }
c173152
validation
// BytesPerSec tells the rate per second at which bytes were read since last // measurement.
{ "resource": "" }
c173153
validation
// ThrottledReader ensures that reads to `r` never exceeds a specified rate of // bytes per second. The `maxBurst` duration changes how often the verification is // done. The smaller the value, the less bursty, but also the more overhead there // is to the throttling.
{ "resource": "" }
c173154
validation
// ThrottledWriter ensures that writes to `w` never exceeds a specified rate of // bytes per second. The `maxBurst` duration changes how often the verification is // done. The smaller the value, the less bursty, but also the more overhead there // is to the throttling.
{ "resource": "" }
c173155
validation
// Create a new DNS server. Domain is an unqualified domain that will be used // as the TLD.
{ "resource": "" }
c173156
validation
// Convenience function to ensure that SRV names are well-formed.
{ "resource": "" }
c173157
validation
// rewrites supplied host entries to use the domain this dns server manages
{ "resource": "" }
c173158
validation
// Receives a FQDN; looks up and supplies the A record.
{ "resource": "" }
c173159
validation
// Sets a host to an IP. Note that this is not the FQDN, but a hostname.
{ "resource": "" }
c173160
validation
// Deletes a host. Note that this is not the FQDN, but a hostname.
{ "resource": "" }
c173161
validation
// Sets a SRV with a service and protocol. See SRVRecord for more information // on what that requires.
{ "resource": "" }
c173162
validation
// Deletes a SRV record based on the service and protocol.
{ "resource": "" }
c173163
validation
// Create a Typed helper from the given JSON bytes
{ "resource": "" }
c173164
validation
// Create a Typed helper from the given JSON bytes, panics on error
{ "resource": "" }
c173165
validation
// Create a Typed helper from the given JSON stream
{ "resource": "" }
c173166
validation
// Create a Typed helper from the JSON within a file
{ "resource": "" }
c173167
validation
// Create an array of Typed helpers // Used for when the root is an array which contains objects
{ "resource": "" }
c173168
validation
// Create an array of Typed helpers from a file // Used for when the root is an array which contains objects
{ "resource": "" }
c173169
validation
// Returns a boolean at the key, or false if it // doesn't exist, or if it isn't a bool
{ "resource": "" }
c173170
validation
// Returns a boolean at the key, or the specified // value if it doesn't exist or isn't a bool
{ "resource": "" }
c173171
validation
// Returns a bool or panics
{ "resource": "" }
c173172
validation
// Returns a boolean at the key and whether // or not the key existed and the value was a bolean
{ "resource": "" }
c173173
validation
// Returns a int at the key, or the specified // value if it doesn't exist or isn't a int
{ "resource": "" }
c173174
validation
// Returns an int or panics
{ "resource": "" }
c173175
validation
// Returns an int at the key and whether // or not the key existed and the value was an int
{ "resource": "" }
c173176
validation
// Returns a float at the key, or the specified // value if it doesn't exist or isn't a float
{ "resource": "" }
c173177
validation
// Returns an float or panics
{ "resource": "" }
c173178
validation
// Returns an float at the key and whether // or not the key existed and the value was an float
{ "resource": "" }
c173179
validation
// Returns a string at the key, or the specified // value if it doesn't exist or isn't a string
{ "resource": "" }
c173180
validation
// Returns an string or panics
{ "resource": "" }
c173181
validation
// Returns a time at the key, or the specified // value if it doesn't exist or isn't a time
{ "resource": "" }
c173182
validation
// Returns a time.Time or panics
{ "resource": "" }
c173183
validation
// Returns an time.time at the key and whether // or not the key existed and the value was a time.Time
{ "resource": "" }
c173184
validation
// Returns an typed object or panics
{ "resource": "" }
c173185
validation
// Returns a string at the key, or the specified // value if it doesn't exist or isn't a strin
{ "resource": "" }
c173186
validation
// Returns an interface or panics
{ "resource": "" }
c173187
validation
// Returns an string at the key and whether // or not the key existed and the value was an string
{ "resource": "" }
c173188
validation
// Returns an slice of boolean, or an nil slice
{ "resource": "" }
c173189
validation
// Returns an slice of boolean, or the specified slice
{ "resource": "" }
c173190
validation
// Returns an slice of ints, or the specified slice // Some conversion is done to handle the fact that JSON ints // are represented as floats.
{ "resource": "" }
c173191
validation
// Returns an slice of ints64, or the specified slice // Some conversion is done to handle the fact that JSON ints // are represented as floats.
{ "resource": "" }
c173192
validation
// Returns an slice of floats, or a nil slice
{ "resource": "" }
c173193
validation
// Returns an slice of strings, or a nil slice
{ "resource": "" }
c173194
validation
// Returns an slice of Typed helpers, or a nil slice
{ "resource": "" }
c173195
validation
// Returns a slice of Typed helpers and true if exists, otherwise; nil and false.
{ "resource": "" }
c173196
validation
// GetSessions returns sessions.
{ "resource": "" }
c173197
validation
// ObjectChange subscribes to changes for objects of a given type.
{ "resource": "" }
c173198
validation
// AutoOfferingPopUp creates AgentPreOfferingPopUp jobs for active offerings. // Taken into account a current balance of agent ETH. If ETH is not enough to // pop up all offerings, then no one of them is popped up. Function calculates // the pop up time.
{ "resource": "" }
c173199
validation
// MarshalJSON marshals itself.
{ "resource": "" }