_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c31000 | train | // CountRegistrationsByIP returns the number of registrations created in the
// time range for a single IP address. | {
"resource": ""
} | ||
c31001 | train | // CountCertificatesByNames counts, for each input domain, the number of
// certificates issued in the given time range for that domain and its
// subdomains. It returns a map from domains to counts, which is guaranteed to
// contain an entry for each input domain, so long as err is nil.
// Queries will be run in paral... | {
"resource": ""
} | ||
c31002 | train | // countCertificatesByNames returns, for a single domain, the count of
// certificates issued in the given time range for that domain and its
// subdomains. | {
"resource": ""
} | ||
c31003 | train | // countCertificatesByExactNames returns, for a single domain, the count of
// certificates issued in the given time range for that domain. In contrast to
// countCertificatesByNames subdomains are NOT considered. | {
"resource": ""
} | ||
c31004 | train | // countCertificates returns, for a single domain, the count of certificate
// issuances in the given time range for that domain using the
// provided query assumed to be either `countCertificatesExactSelect`,
// or `countCertificatesSelect`. | {
"resource": ""
} | ||
c31005 | train | // GetCertificate takes a serial number and returns the corresponding
// certificate, or error if it does not exist. | {
"resource": ""
} | ||
c31006 | train | // GetCertificateStatus takes a hexadecimal string representing the full 128-bit serial
// number of a certificate and returns data about that certificate's current
// validity. | {
"resource": ""
} | ||
c31007 | train | // NewRegistration stores a new Registration | {
"resource": ""
} | ||
c31008 | train | // UpdateRegistration stores an updated Registration | {
"resource": ""
} | ||
c31009 | train | // NewPendingAuthorization retrieves a pending authorization for
// authz.Identifier if one exists, or creates a new one otherwise. | {
"resource": ""
} | ||
c31010 | train | // GetPendingAuthorization returns the most recent Pending authorization
// with the given identifier, if available. | {
"resource": ""
} | ||
c31011 | train | // FinalizeAuthorization converts a Pending Authorization to a final one. If the
// Authorization is not found a berrors.NotFound result is returned. If the
// Authorization is status pending a berrors.InternalServer error is returned. | {
"resource": ""
} | ||
c31012 | train | // RevokeAuthorizationsByDomain invalidates all pending or finalized authorizations
// for a specific domain | {
"resource": ""
} | ||
c31013 | train | // RevokeAuthorizationsByDomain2 invalidates all pending or valid authorizations for a
// specific domain. This method is intended to deprecate RevokeAuthorizationsByDomain. | {
"resource": ""
} | ||
c31014 | train | // AddCertificate stores an issued certificate and returns the digest as
// a string, or an error if any occurred. | {
"resource": ""
} | ||
c31015 | train | // CountPendingAuthorizations returns the number of pending, unexpired
// authorizations for the given registration. | {
"resource": ""
} | ||
c31016 | train | // CountInvalidAuthorizations counts invalid authorizations for a user expiring
// in a given time range.
// authorizations for the give registration. | {
"resource": ""
} | ||
c31017 | train | // addOrderFQDNSet creates a new OrderFQDNSet row using the provided
// information. This function accepts a transaction so that the orderFqdnSet
// addition can take place within the order addition transaction. The caller is
// required to rollback the transaction if an error is returned. | {
"resource": ""
} | ||
c31018 | train | // deleteOrderFQDNSet deletes a OrderFQDNSet row that matches the provided
// orderID. This function accepts a transaction so that the deletion can
// take place within the finalization transaction. The caller is required to
// rollback the transaction if an error is returned. | {
"resource": ""
} | ||
c31019 | train | // CountFQDNSets returns the number of sets with hash |setHash| within the window
// |window| | {
"resource": ""
} | ||
c31020 | train | // getFQDNSetsBySerials finds the setHashes corresponding to a set of
// certificate serials. These serials can be used to check whether any
// certificates have been issued for the same set of names previously. | {
"resource": ""
} | ||
c31021 | train | // FQDNSetExists returns a bool indicating if one or more FQDN sets |names|
// exists in the database | {
"resource": ""
} | ||
c31022 | train | // checkFQDNSetExists uses the given oneSelectorFunc to check whether an fqdnSet
// for the given names exists. | {
"resource": ""
} | ||
c31023 | train | // DeactivateRegistration deactivates a currently valid registration | {
"resource": ""
} | ||
c31024 | train | // DeactivateAuthorization deactivates a currently valid or pending authorization | {
"resource": ""
} | ||
c31025 | train | // DeactivateAuthorization2 deactivates a currently valid or pending authorization.
// This method is intended to deprecate DeactivateAuthorization. | {
"resource": ""
} | ||
c31026 | train | // NewOrder adds a new v2 style order to the database | {
"resource": ""
} | ||
c31027 | train | // SetOrderError updates a provided Order's error field. | {
"resource": ""
} | ||
c31028 | train | // GetOrder is used to retrieve an already existing order object | {
"resource": ""
} | ||
c31029 | train | // GetValidOrderAuthorizations is used to find the valid, unexpired authorizations
// associated with a specific order and account ID. | {
"resource": ""
} | ||
c31030 | train | // GetAuthorizations returns a map of valid or pending authorizations for as many names as possible | {
"resource": ""
} | ||
c31031 | train | // AddPendingAuthorizations creates a batch of pending authorizations and returns their IDs | {
"resource": ""
} | ||
c31032 | train | // NewAuthorizations2 adds a set of new style authorizations to the database and returns
// either the IDs of the authorizations or an error. It will only process corepb.Authorization
// objects if the V2 field is set. This method is intended to deprecate AddPendingAuthorizations | {
"resource": ""
} | ||
c31033 | train | // GetAuthorization2 returns the authz2 style authorization identified by the provided ID or an error.
// If no authorization is found matching the ID a berrors.NotFound type error is returned. This method
// is intended to deprecate GetAuthorization. | {
"resource": ""
} | ||
c31034 | train | // authz2ModelMapToPB converts a mapping of domain name to authz2Models into a
// protobuf authorizations map | {
"resource": ""
} | ||
c31035 | train | // FinalizeAuthorization2 moves a pending authorization to either the valid or invalid status. If
// the authorization is being moved to invalid the validationError field must be set. If the
// authorization is being moved to valid the validationRecord and expires fields must be set.
// This method is intended to depre... | {
"resource": ""
} | ||
c31036 | train | // RevokeCertificate stores revocation information about a certificate. It will only store this
// information if the certificate is not alreay marked as revoked. This method is meant as a
// replacement for MarkCertificateRevoked and the ocsp-updater database methods. | {
"resource": ""
} | ||
c31037 | train | // GetPendingAuthorization2 returns the most recent Pending authorization with
// the given identifier, if available. This method is intended to deprecate
// GetPendingAuthorization. | {
"resource": ""
} | ||
c31038 | train | // CountPendingAuthorizations2 returns the number of pending, unexpired authorizations
// for the given registration. This method is intended to deprecate CountPendingAuthorizations. | {
"resource": ""
} | ||
c31039 | train | // GetValidOrderAuthorizations2 is used to find the valid, unexpired authorizations
// associated with a specific order and account ID. This method is intended to
// deprecate GetValidOrderAuthorizations. | {
"resource": ""
} | ||
c31040 | train | // CountInvalidAuthorizations2 counts invalid authorizations for a user expiring
// in a given time range. This method is intended to deprecate CountInvalidAuthorizations. | {
"resource": ""
} | ||
c31041 | train | // GetValidAuthorizations2 returns the latest authorization for all
// domain names that the account has authorizations for. This method is
// intended to deprecate GetValidAuthorizations. | {
"resource": ""
} | ||
c31042 | train | // replaceInvalidUTF8 replaces all invalid UTF-8 encodings with
// Unicode REPLACEMENT CHARACTER. | {
"resource": ""
} | ||
c31043 | train | // Len returns the number of logs in the logCache | {
"resource": ""
} | ||
c31044 | train | // LogURIs returns the URIs of all logs currently in the logCache | {
"resource": ""
} | ||
c31045 | train | // NewLog returns an initialized Log struct | {
"resource": ""
} | ||
c31046 | train | // New creates a Publisher that will submit certificates
// to requested CT logs | {
"resource": ""
} | ||
c31047 | train | // ProbeLogs sends a HTTP GET request to each of the logs in the
// publisher logCache and records the latency and status of the
// response. | {
"resource": ""
} | ||
c31048 | train | // VerifyCSR checks the validity of a x509.CertificateRequest. Before doing checks it normalizes
// the CSR which lowers the case of DNS names and subject CN, and if forceCNFromSAN is true it
// will hoist a DNS name into the CN if it is empty. | {
"resource": ""
} | ||
c31049 | train | // normalizeCSR deduplicates and lowers the case of dNSNames and the subject CN.
// If forceCNFromSAN is true it will also hoist a dNSName into the CN if it is empty. | {
"resource": ""
} | ||
c31050 | train | // NewKeyPolicy returns a KeyPolicy that allows RSA, ECDSA256 and ECDSA384.
// weakKeyFile contains the path to a JSON file containing truncated modulus
// hashes of known weak RSA keys. If this argument is empty RSA modulus hash
// checking will be disabled. | {
"resource": ""
} | ||
c31051 | train | // Returns true iff integer i is divisible by any of the primes in smallPrimes.
//
// Short circuits; execution time is dependent on i. Do not use this on secret
// values. | {
"resource": ""
} | ||
c31052 | train | // NewMockScope creates a new mock instance | {
"resource": ""
} | ||
c31053 | train | // MustRegister mocks base method | {
"resource": ""
} | ||
c31054 | train | // NewScope mocks base method | {
"resource": ""
} | ||
c31055 | train | // TimingDuration mocks base method | {
"resource": ""
} | ||
c31056 | train | // baseDomain returns the eTLD+1 of a domain name for the purpose of rate
// limiting. For a domain name that is itself an eTLD, it returns its input. | {
"resource": ""
} | ||
c31057 | train | // addCertificatesPerName adds 1 to the rate limit count for the provided domains,
// in a specific time bucket. It must be executed in a transaction, and the
// input timeToTheHour must be a time rounded to an hour. | {
"resource": ""
} | ||
c31058 | train | // getKey constructs a x509Signer for the private key object associated with the
// given label and ID | {
"resource": ""
} | ||
c31059 | train | // makeTemplate generates the certificate template for use in x509.CreateCertificate | {
"resource": ""
} | ||
c31060 | train | // generateRevokedResponse takes a core.CertificateStatus and updates it with a revoked OCSP response
// for the certificate it represents. generateRevokedResponse then returns the updated status and a
// list of OCSP request URLs that should be purged or an error. | {
"resource": ""
} | ||
c31061 | train | // markExpired updates a given CertificateStatus to have `isExpired` set. | {
"resource": ""
} | ||
c31062 | train | // InitDBMetrics will register prometheus stats for the provided dbMap under the
// given metrics.Scope. Every 1 second in a separate go routine the prometheus
// stats will be updated based on the gorp dbMap's inner sql.DBMap's DBStats
// structure values. | {
"resource": ""
} | ||
c31063 | train | // newDbMetrics constructs a dbMetrics instance by registering prometheus stats. | {
"resource": ""
} | ||
c31064 | train | // updateFrom updates the dbMetrics prometheus stats based on the provided
// sql.DBStats object. | {
"resource": ""
} | ||
c31065 | train | // reportDBMetrics is an infinite loop that will update the dbm with the gorp
// dbMap's inner sql.DBMap's DBStats structure every second. It is intended to
// be run in a dedicated goroutine spawned by InitDBMetrics. | {
"resource": ""
} | ||
c31066 | train | // unwrapError unwraps errors returned from gRPC client calls which were wrapped
// with wrapError to their proper internal error type. If the provided metadata
// object has an "errortype" field, that will be used to set the type of the
// error. | {
"resource": ""
} | ||
c31067 | train | // New constructs a Mailer to represent an account on a particular mail
// transfer agent. | {
"resource": ""
} | ||
c31068 | train | // New constructs a Mailer suitable for doing a dry run. It simply logs each
// command that would have been run, at debug level. | {
"resource": ""
} | ||
c31069 | train | // Connect opens a connection to the specified mail server. It must be called
// before SendMail. | {
"resource": ""
} | ||
c31070 | train | // SendMail sends an email to the provided list of recipients. The email body
// is simple text. | {
"resource": ""
} | ||
c31071 | train | // Rollback rolls back the provided transaction. If the rollback fails for any
// reason a `RollbackError` error is returned wrapping the original error. If no
// rollback error occurs then the original error is returned. | {
"resource": ""
} | ||
c31072 | train | // noteSignError is called after operations that may cause a CFSSL
// or PKCS11 signing error. | {
"resource": ""
} | ||
c31073 | train | // GenerateOCSP produces a new OCSP response and returns it | {
"resource": ""
} | ||
c31074 | train | // IssueCertificateForPrecertificate takes a precertificate and a set of SCTs for that precertificate
// and uses the signer to create and sign a certificate from them. The poison extension is removed
// and a SCT list extension is inserted in its place. Except for this and the signature the certificate
// exactly matc... | {
"resource": ""
} | ||
c31075 | train | // OrphanIntegrationLoop runs a loop executing integrateOrphans and then waiting a minute.
// It is split out into a separate function called directly by boulder-ca in order to make
// testing the orphan queue functionality somewhat more simple. | {
"resource": ""
} | ||
c31076 | train | // integrateOrpan removes an orphan from the queue and adds it to the database. The
// item isn't dequeued until it is actually added to the database to prevent items from
// being lost if the CA is restarted between the item being dequeued and being added to
// the database. It calculates the issuance time by subtract... | {
"resource": ""
} | ||
c31077 | train | // enforceJWSAuthType enforces a provided JWS has the provided auth type. If there
// is an error determining the auth type or if it is not the expected auth type
// then a problem is returned. | {
"resource": ""
} | ||
c31078 | train | // validPOSTURL checks the JWS' URL header against the expected URL based on the
// HTTP request. This prevents a JWS intended for one endpoint being replayed
// against a different endpoint. If the URL isn't present, is invalid, or
// doesn't match the HTTP request a problem is returned. | {
"resource": ""
} | ||
c31079 | train | // matchJWSURLs checks two JWS' URL headers are equal. This is used during key
// rollover to check that the inner JWS URL matches the outer JWS URL. If the
// JWS URLs do not match a problem is returned. | {
"resource": ""
} | ||
c31080 | train | // parseJWSRequest extracts a JSONWebSignature from an HTTP POST request's body using parseJWS. | {
"resource": ""
} | ||
c31081 | train | // extractJWK extracts a JWK from a provided JWS or returns a problem. It
// expects that the JWS is using the embedded JWK style of authentication and
// does not contain an embedded Key ID. Callers should have acquired the
// provided JWS from parseJWS to ensure it has the correct number of signatures
// present. | {
"resource": ""
} | ||
c31082 | train | // acctIDFromURL extracts the numeric int64 account ID from a ACMEv1 or ACMEv2
// account URL. If the acctURL has an invalid URL or the account ID in the
// acctURL is non-numeric a MalformedProblem is returned. | {
"resource": ""
} | ||
c31083 | train | // lookupJWK finds a JWK associated with the Key ID present in a provided JWS,
// returning the JWK and a pointer to the associated account, or a problem. It
// expects that the JWS is using the embedded Key ID style of authentication
// and does not contain an embedded JWK. Callers should have acquired the
// provided... | {
"resource": ""
} | ||
c31084 | train | // validPOSTForAccount checks that a given POST request has a valid JWS
// using `validJWSForAccount`. If valid, the authenticated JWS body and the
// registration that authenticated the body are returned. Otherwise a problem is
// returned. The returned JWS body may be empty if the request is a POST-as-GET
// request. | {
"resource": ""
} | ||
c31085 | train | // validSelfAuthenticatedPOST checks that a given POST request has a valid JWS
// using `validSelfAuthenticatedJWS`. | {
"resource": ""
} | ||
c31086 | train | // NewDNSClientImpl constructs a new DNS resolver object that utilizes the
// provided list of DNS servers for resolution. | {
"resource": ""
} | ||
c31087 | train | // LookupTXT sends a DNS query to find all TXT records associated with
// the provided hostname which it returns along with the returned
// DNS authority section. | {
"resource": ""
} | ||
c31088 | train | // LookupCAA sends a DNS query to find all CAA records associated with
// the provided hostname. | {
"resource": ""
} | ||
c31089 | train | // LookupMX sends a DNS query to find a MX record associated hostname and returns the
// record target. | {
"resource": ""
} | ||
c31090 | train | // rsaArgs constructs the private and public key template attributes sent to the
// device and specifies which mechanism should be used. modulusLen specifies the
// length of the modulus to be generated on the device in bits and exponent
// specifies the public exponent that should be used. | {
"resource": ""
} | ||
c31091 | train | // rsaPub extracts the generated public key, specified by the provided object
// handle, and constructs a rsa.PublicKey. It also checks that the key has the
// correct length modulus and that the public exponent is what was requested in
// the public key template. | {
"resource": ""
} | ||
c31092 | train | // rsaVerify verifies that the extracted public key corresponds with the generated
// private key on the device, specified by the provided object handle, by signing
// a nonce generated on the device and verifying the returned signature using the
// public key. | {
"resource": ""
} | ||
c31093 | train | // rsaGenerate is used to generate and verify a RSA key pair of the size
// specified by modulusLen and with the exponent specified by pubExponent.
// It returns the public part of the generated key pair as a rsa.PublicKey. | {
"resource": ""
} | ||
c31094 | train | // New returns a new Logger that uses the given syslog.Writer as a backend. | {
"resource": ""
} | ||
c31095 | train | // initialize should only be used in unit tests. | {
"resource": ""
} | ||
c31096 | train | // Set configures the singleton Logger. This method
// must only be called once, and before calling Get the
// first time. | {
"resource": ""
} | ||
c31097 | train | // Get obtains the singleton Logger. If Set has not been called first, this
// method initializes with basic defaults. The basic defaults cannot error, and
// subsequent access to an already-set Logger also cannot error, so this method is
// error-safe. | {
"resource": ""
} | ||
c31098 | train | // Log the provided message at the appropriate level, writing to
// both stdout and the Logger | {
"resource": ""
} | ||
c31099 | train | // Return short format caller info for panic events, skipping to before the
// panic handler. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.