_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c173000 | validation | // CreateDashboard creates a new dashboard. | {
"resource": ""
} | ||
c173001 | validation | // DeleteDashboard deletes passed dashboard. | {
"resource": ""
} | ||
c173002 | validation | // DeleteDashboardByCID deletes dashboard with passed cid. | {
"resource": ""
} | ||
c173003 | validation | // A Text metric is an arbitrary string
//
// SetText sets a text metric | {
"resource": ""
} | ||
c173004 | validation | // SetTextValue sets a text metric | {
"resource": ""
} | ||
c173005 | validation | // RemoveText removes a text metric | {
"resource": ""
} | ||
c173006 | validation | // RemoveTextFunc a text metric function | {
"resource": ""
} | ||
c173007 | validation | // FetchAlert retrieves alert with passed cid. | {
"resource": ""
} | ||
c173008 | validation | // FetchAlerts retrieves all alerts available to the API Token. | {
"resource": ""
} | ||
c173009 | validation | // FetchRuleSet retrieves rule set with passed cid. | {
"resource": ""
} | ||
c173010 | validation | // FetchRuleSets retrieves all rule sets available to API Token. | {
"resource": ""
} | ||
c173011 | validation | // UpdateRuleSet updates passed rule set. | {
"resource": ""
} | ||
c173012 | validation | // CreateRuleSet creates a new rule set. | {
"resource": ""
} | ||
c173013 | validation | // DeleteRuleSet deletes passed rule set. | {
"resource": ""
} | ||
c173014 | validation | // DeleteRuleSetByCID deletes rule set with passed cid. | {
"resource": ""
} | ||
c173015 | validation | // IncrementByValue updates counter by supplied value | {
"resource": ""
} | ||
c173016 | validation | // Set a counter to specific value | {
"resource": ""
} | ||
c173017 | validation | // RemoveCounter removes the named counter | {
"resource": ""
} | ||
c173018 | validation | // RemoveCounterFunc removes the named counter function | {
"resource": ""
} | ||
c173019 | validation | // PromOutput returns lines of metrics in prom format | {
"resource": ""
} | ||
c173020 | validation | // Flush metrics kicks off the process of sending metrics to Circonus | {
"resource": ""
} | ||
c173021 | validation | // FetchWorksheet retrieves worksheet with passed cid. | {
"resource": ""
} | ||
c173022 | validation | // FetchWorksheets retrieves all worksheets available to API Token. | {
"resource": ""
} | ||
c173023 | validation | // UpdateWorksheet updates passed worksheet. | {
"resource": ""
} | ||
c173024 | validation | // CreateWorksheet creates a new worksheet. | {
"resource": ""
} | ||
c173025 | validation | // DeleteWorksheet deletes passed worksheet. | {
"resource": ""
} | ||
c173026 | validation | // DeleteWorksheetByCID deletes worksheet with passed cid. | {
"resource": ""
} | ||
c173027 | validation | // FetchContactGroup retrieves contact group with passed cid. | {
"resource": ""
} | ||
c173028 | validation | // FetchContactGroups retrieves all contact groups available to the API Token. | {
"resource": ""
} | ||
c173029 | validation | // UpdateContactGroup updates passed contact group. | {
"resource": ""
} | ||
c173030 | validation | // CreateContactGroup creates a new contact group. | {
"resource": ""
} | ||
c173031 | validation | // DeleteContactGroup deletes passed contact group. | {
"resource": ""
} | ||
c173032 | validation | // FetchBroker retrieves broker with passed cid. | {
"resource": ""
} | ||
c173033 | validation | // FetchBrokers returns all brokers available to the API Token. | {
"resource": ""
} | ||
c173034 | validation | // ActivateMetric determines if a given metric should be activated | {
"resource": ""
} | ||
c173035 | validation | // AddMetricTags updates check bundle metrics with tags | {
"resource": ""
} | ||
c173036 | validation | // addNewMetrics updates a check bundle with new metrics | {
"resource": ""
} | ||
c173037 | validation | // inventoryMetrics creates list of active metrics in check bundle | {
"resource": ""
} | ||
c173038 | validation | // countNewTags returns a count of new tags which do not exist in the current list of tags | {
"resource": ""
} | ||
c173039 | validation | // returns the plural form of a singular word | {
"resource": ""
} | ||
c173040 | validation | // returns the singular form of a plural word | {
"resource": ""
} | ||
c173041 | validation | // uppercase first character | {
"resource": ""
} | ||
c173042 | validation | // "dino_party" -> "DinoParty" | {
"resource": ""
} | ||
c173043 | validation | // getSuitableAlgFromCurve inspects the key length in curve, and determines the
// corresponding jwt.Algorithm. | {
"resource": ""
} | ||
c173044 | validation | // getAlgFromKeyData determines the best jwt.Algorithm suitable based on the
// set of given crypto primitives in pem. | {
"resource": ""
} | ||
c173045 | validation | // buildEncArgs builds and encodes passed argument strings in the form of
// name=val as a json object. | {
"resource": ""
} | ||
c173046 | validation | // doDec decodes in as a JWT. | {
"resource": ""
} | ||
c173047 | validation | // doEnc encodes in as the payload in a JWT. | {
"resource": ""
} | ||
c173048 | validation | // Transport is a GServiceAccount option to set the client transport used by
// the token source. | {
"resource": ""
} | ||
c173049 | validation | // Proxy is a GServiceAccount option to set a HTTP proxy used for by the token
// source. | {
"resource": ""
} | ||
c173050 | validation | // Expiration is a GServiceAccount option to set a expiration limit for tokens
// generated from the token source. | {
"resource": ""
} | ||
c173051 | validation | // Encode encodes a JWT using the Algorithm and Signer, returning the URL-safe
// encoded token or any errors encountered during encoding. | {
"resource": ""
} | ||
c173052 | validation | // PeekHeaderField extracts the specified field from the serialized JWT buf's
// header. An error will be returned if the field is not present in the decoded
// header. | {
"resource": ""
} | ||
c173053 | validation | // PeekAlgorithm extracts the signing algorithm listed in the "alg" field of
// the serialized JWT buf's header and attempts to unmarshal it into an
// Algorithm. An error will be returned if the alg field is not specified in
// the JWT header, or is otherwise invalid. | {
"resource": ""
} | ||
c173054 | validation | // PeekAlgorithmAndIssuer extracts the signing algorithm listed in the "alg"
// field and the issuer from the "iss" field of the serialized JWT buf's header
// and payload, attempting to unmarshal alg to Algorithm and iss to a string.
// An error will be returned if the Algorithm or Issuer fields are not
// specified i... | {
"resource": ""
} | ||
c173055 | validation | // NewEllipticSigner creates an Elliptic Curve Signer for the specified curve. | {
"resource": ""
} | ||
c173056 | validation | // NewTokenSource creates a oauth2.TokenSource that generates auth tokens
// redeemed using the JWT Bearer Grant assertion auth flow using the supplied
// jwt.Signer. A token redemption will be invoked at the tokenURL using the
// supplied context.
//
// Use the Claim option to pass additional claims to the token sourc... | {
"resource": ""
} | ||
c173057 | validation | // Client returns a HTTP client using the bearer token. | {
"resource": ""
} | ||
c173058 | validation | // Sign signs the data in buf using rand, priv and hash. | {
"resource": ""
} | ||
c173059 | validation | // Verify verifies the signature sig against using pub, hash, and the hashed
// data. | {
"resource": ""
} | ||
c173060 | validation | // NewRSASigner creates an RSA Signer for the specified Algorithm and provided
// low level RSA implementation. | {
"resource": ""
} | ||
c173061 | validation | // getFieldWithTag lookups jwt tag, with specified tagName on obj, returning
// its reflected value. | {
"resource": ""
} | ||
c173062 | validation | // decodeToObjOrFieldWithTag decodes the buf into obj's field having the
// specified jwt tagName. If the provided obj's has the same type as
// defaultObj, then the obj is set to the defaultObj, otherwise an attempt is
// made to json.Decode the buf into obj. | {
"resource": ""
} | ||
c173063 | validation | // grabEncodeTargets grabs the fields for the obj. | {
"resource": ""
} | ||
c173064 | validation | // encodeTargets determines what to encode. | {
"resource": ""
} | ||
c173065 | validation | // peekField looks at an undecoded JWT, JSON decoding the data at pos, and
// returning the specified field's value as string.
//
// If the fieldName is not present, then an error will be returned. | {
"resource": ""
} | ||
c173066 | validation | // ExpiresIn is an option that will set the expiration duration generated for
// tokens to the specified duration. | {
"resource": ""
} | ||
c173067 | validation | // Claim is an option that adds an additional claim that is generated with the
// token. | {
"resource": ""
} | ||
c173068 | validation | // Transport is an option that sets an underlying client transport to the
// exchange process. | {
"resource": ""
} | ||
c173069 | validation | // NewHMACSigner creates a HMAC Signer for the specified Algorithm. | {
"resource": ""
} | ||
c173070 | validation | // FromJSON loads service account credentials from the JSON encoded buf. | {
"resource": ""
} | ||
c173071 | validation | // FromReader loads Google service account credentials from a reader. | {
"resource": ""
} | ||
c173072 | validation | // FromFile loads Google service account credentials from a reader. | {
"resource": ""
} | ||
c173073 | validation | // Signer returns a jwt.Signer for use when signing tokens. | {
"resource": ""
} | ||
c173074 | validation | // Encode serializes a JWT using the Algorithm and Signer. | {
"resource": ""
} | ||
c173075 | validation | // UnmarshalText attempts to unmarshal buf into an Algorithm. | {
"resource": ""
} | ||
c173076 | validation | // DecodeUnverifiedToken decodes a token into the provided UnverifiedToken. | {
"resource": ""
} | ||
c173077 | validation | // PublicKey returns the stored public key for the keystore, alternately
// generating the public key from the private key if the public key was not
// supplied and the private key was. | {
"resource": ""
} | ||
c173078 | validation | // PrivateKey returns the stored private key for the keystore. | {
"resource": ""
} | ||
c173079 | validation | // RegisterLocation registers an URL location and maps it to the given
// file system path.
//
// Calling RegisterLocation twice for the same location is a
// programmer error, and causes a panic. | {
"resource": ""
} | ||
c173080 | validation | // NewArena allocates a new arena of the specified size and returns it. | {
"resource": ""
} | ||
c173081 | validation | // NewSkiplist constructs and initializes a new, empty skiplist. All nodes, keys,
// and values in the skiplist will be allocated from the given arena. | {
"resource": ""
} | ||
c173082 | validation | // Init associates the iterator with a skiplist and resets all state. | {
"resource": ""
} | ||
c173083 | validation | // Value returns the value at the current position. | {
"resource": ""
} | ||
c173084 | validation | // Set updates the value of the current iteration record if it has not been
// updated or deleted since iterating or seeking to it. If the record has been
// updated, then Set positions the iterator on the most current value and
// returns ErrRecordUpdated. If the record has been deleted, then Set keeps
// the iterator... | {
"resource": ""
} | ||
c173085 | validation | // SetMeta updates the meta value of the current iteration record if it has not
// been updated or deleted since iterating or seeking to it. If the record has
// been updated, then SetMeta positions the iterator on the most current value
// and returns ErrRecordUpdated. If the record has been deleted, then SetMeta
// k... | {
"resource": ""
} | ||
c173086 | validation | // Delete marks the current iterator record as deleted from the store if it
// has not been updated since iterating or seeking to it. If the record has
// been updated, then Delete positions the iterator on the most current value
// and returns ErrRecordUpdated. If the record is deleted, then Delete positions
// the it... | {
"resource": ""
} | ||
c173087 | validation | // IsSameArray returns true if the slices are the same length and the array
// underlying the two slices is the same. Always returns false for empty arrays. | {
"resource": ""
} | ||
c173088 | validation | // New returns a new API client. | {
"resource": ""
} | ||
c173089 | validation | // WriteIndentedN indents all lines n spaces. | {
"resource": ""
} | ||
c173090 | validation | // WriteIndented indents all lines four spaces. | {
"resource": ""
} | ||
c173091 | validation | // NewReporter returns a new Reporter. You must specify the channel bufferSize and the
// goroutine poolSize. You can pass in nil for the transport and it will create an
// http transport with MaxIdleConnsPerHost set to the goroutine poolSize. Note if you
// pass in your own transport, it's a good idea to have its M... | {
"resource": ""
} | ||
c173092 | validation | // Using the classic API, posts a count to a stat using DefaultReporter. | {
"resource": ""
} | ||
c173093 | validation | // Using the classic API, posts a count to a stat using DefaultReporter at a specific
// time. | {
"resource": ""
} | ||
c173094 | validation | // Using the classic API, posts a value to a stat using DefaultReporter. | {
"resource": ""
} | ||
c173095 | validation | // Using the classic API, posts a value to a stat at a specific time using DefaultReporter. | {
"resource": ""
} | ||
c173096 | validation | // Using the EZ API, posts a count to a stat using DefaultReporter. | {
"resource": ""
} | ||
c173097 | validation | // Using the EZ API, posts a count to a stat at a specific time using DefaultReporter. | {
"resource": ""
} | ||
c173098 | validation | // Using the EZ API, posts a value to a stat using DefaultReporter. | {
"resource": ""
} | ||
c173099 | validation | // Using the EZ API, posts a value to a stat at a specific time using DefaultReporter. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.