_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c30900 | train | // Opens a file with the given name | {
"resource": ""
} | ||
c30901 | train | // NewReferenceLoaderFileSystem returns a JSON reference loader using the given source and file system. | {
"resource": ""
} | ||
c30902 | train | // NewReaderLoader creates a new JSON loader using the provided io.Reader | {
"resource": ""
} | ||
c30903 | train | // NewWriterLoader creates a new JSON loader using the provided io.Writer | {
"resource": ""
} | ||
c30904 | train | // Add adds a FormatChecker to the FormatCheckerChain
// The name used will be the value used for the format key in your json schema | {
"resource": ""
} | ||
c30905 | train | // Has checks to see if the FormatCheckerChain holds a FormatChecker with the given name | {
"resource": ""
} | ||
c30906 | train | // IsFormat will check an input against a FormatChecker with the given name
// to see if it is the correct format | {
"resource": ""
} | ||
c30907 | train | // IsFormat checks if input is a correctly formatted e-mail address | {
"resource": ""
} | ||
c30908 | train | // IsFormat checks if input is a correctly formatted IPv4-address | {
"resource": ""
} | ||
c30909 | train | // IsFormat checks if input is correctly formatted URI with a valid Scheme per RFC3986 | {
"resource": ""
} | ||
c30910 | train | // IsFormat checks if input is a correctly formatted URI or relative-reference per RFC3986 | {
"resource": ""
} | ||
c30911 | train | // IsFormat checks if input is a correctly formatted URI template per RFC6570 | {
"resource": ""
} | ||
c30912 | train | // IsFormat checks if input is a correctly formatted hostname | {
"resource": ""
} | ||
c30913 | train | // IsFormat checks if input is a correctly formatted UUID | {
"resource": ""
} | ||
c30914 | train | // IsFormat checks if input is a correctly formatted regular expression | {
"resource": ""
} | ||
c30915 | train | // IsFormat checks if input is a correctly formatted JSON Pointer per RFC6901 | {
"resource": ""
} | ||
c30916 | train | // IsFormat checks if input is a correctly formatted relative JSON Pointer | {
"resource": ""
} | ||
c30917 | train | // String displays the context in reverse.
// This plays well with the data structure's persistent nature with
// Cons and a json document's tree structure. | {
"resource": ""
} | ||
c30918 | train | // String returns a string representation of the error | {
"resource": ""
} | ||
c30919 | train | // Used to copy errors from a sub-schema to the main one | {
"resource": ""
} | ||
c30920 | train | // indexStringInSlice returns the index of the first instance of 'what' in s or -1 if it is not found in s. | {
"resource": ""
} | ||
c30921 | train | // NewSchemaLoader creates a new NewSchemaLoader | {
"resource": ""
} | ||
c30922 | train | //AddSchema adds a schema under the provided URL to the schema cache | {
"resource": ""
} | ||
c30923 | train | // Compile loads and compiles a schema | {
"resource": ""
} | ||
c30924 | train | // GetRegistration is a mock | {
"resource": ""
} | ||
c30925 | train | // GetAuthorization is a mock | {
"resource": ""
} | ||
c30926 | train | // RevokeAuthorizationsByDomain is a mock | {
"resource": ""
} | ||
c30927 | train | // GetCertificate is a mock | {
"resource": ""
} | ||
c30928 | train | // GetCertificateStatus is a mock | {
"resource": ""
} | ||
c30929 | train | // AddCertificate is a mock | {
"resource": ""
} | ||
c30930 | train | // FinalizeAuthorization is a mock | {
"resource": ""
} | ||
c30931 | train | // MarkCertificateRevoked is a mock | {
"resource": ""
} | ||
c30932 | train | // NewPendingAuthorization is a mock | {
"resource": ""
} | ||
c30933 | train | // NewRegistration is a mock | {
"resource": ""
} | ||
c30934 | train | // UpdateRegistration is a mock | {
"resource": ""
} | ||
c30935 | train | // CountFQDNSets is a mock | {
"resource": ""
} | ||
c30936 | train | // FQDNSetExists is a mock | {
"resource": ""
} | ||
c30937 | train | // GetValidAuthorizations is a mock | {
"resource": ""
} | ||
c30938 | train | // CountCertificatesByNames is a mock | {
"resource": ""
} | ||
c30939 | train | // CountRegistrationsByIP is a mock | {
"resource": ""
} | ||
c30940 | train | // CountPendingAuthorizations is a mock | {
"resource": ""
} | ||
c30941 | train | // CountOrders is a mock | {
"resource": ""
} | ||
c30942 | train | // DeactivateAuthorization is a mock | {
"resource": ""
} | ||
c30943 | train | // DeactivateRegistration is a mock | {
"resource": ""
} | ||
c30944 | train | // NewOrder is a mock | {
"resource": ""
} | ||
c30945 | train | // SetOrderProcessing is a mock | {
"resource": ""
} | ||
c30946 | train | // GetOrder is a mock | {
"resource": ""
} | ||
c30947 | train | // GetAuthorizations is a mock | {
"resource": ""
} | ||
c30948 | train | // CountInvalidAuthorizations is a mock | {
"resource": ""
} | ||
c30949 | train | // AddPendingAuthorizations is a mock | {
"resource": ""
} | ||
c30950 | train | // NewAuthorizations is a mock | {
"resource": ""
} | ||
c30951 | train | // GetAuthorization2 is a mock | {
"resource": ""
} | ||
c30952 | train | // SubmitToSingleCTWithResult is a mock | {
"resource": ""
} | ||
c30953 | train | // SendMail is a mock | {
"resource": ""
} | ||
c30954 | train | // ProblemDetailsToStatusCode inspects the given ProblemDetails to figure out
// what HTTP status code it should represent. It should only be used by the WFE
// but is included in this package because of its reliance on ProblemTypes. | {
"resource": ""
} | ||
c30955 | train | // BadNonce returns a ProblemDetails with a BadNonceProblem and a 400 Bad
// Request status code. | {
"resource": ""
} | ||
c30956 | train | // RejectedIdentifier returns a ProblemDetails with a RejectedIdentifierProblem and a 400 Bad
// Request status code. | {
"resource": ""
} | ||
c30957 | train | // Conflict returns a ProblemDetails with a MalformedProblem and a 409 Conflict
// status code. | {
"resource": ""
} | ||
c30958 | train | // AlreadyRevoked returns a ProblemDetails with a AlreadyRevokedProblem and a 400 Bad
// Request status code. | {
"resource": ""
} | ||
c30959 | train | // Malformed returns a ProblemDetails with a MalformedProblem and a 400 Bad
// Request status code. | {
"resource": ""
} | ||
c30960 | train | // BadSignatureAlgorithm returns a ProblemDetails with a BadSignatureAlgorithmProblem
// and a 400 Bad Request status code. | {
"resource": ""
} | ||
c30961 | train | // BadPublicKey returns a ProblemDetails with a BadPublicKeyProblem and a 400 Bad
// Request status code. | {
"resource": ""
} | ||
c30962 | train | // NotFound returns a ProblemDetails with a MalformedProblem and a 404 Not Found
// status code. | {
"resource": ""
} | ||
c30963 | train | // ServerInternal returns a ProblemDetails with a ServerInternalProblem and a
// 500 Internal Server Failure status code. | {
"resource": ""
} | ||
c30964 | train | // Unauthorized returns a ProblemDetails with an UnauthorizedProblem and a 403
// Forbidden status code. | {
"resource": ""
} | ||
c30965 | train | // InvalidContentType returns a ProblemDetails suitable for a missing
// ContentType header, or an incorrect ContentType header | {
"resource": ""
} | ||
c30966 | train | // InvalidEmail returns a ProblemDetails representing an invalid email address
// error | {
"resource": ""
} | ||
c30967 | train | // ConnectionFailure returns a ProblemDetails representing a ConnectionProblem
// error | {
"resource": ""
} | ||
c30968 | train | // UnknownHost returns a ProblemDetails representing an UnknownHostProblem error | {
"resource": ""
} | ||
c30969 | train | // RateLimited returns a ProblemDetails representing a RateLimitedProblem error | {
"resource": ""
} | ||
c30970 | train | // TLSError returns a ProblemDetails representing a TLSProblem error | {
"resource": ""
} | ||
c30971 | train | // AccountDoesNotExist returns a ProblemDetails representing an
// AccountDoesNotExistProblem error | {
"resource": ""
} | ||
c30972 | train | // CAA returns a ProblemDetails representing a CAAProblem | {
"resource": ""
} | ||
c30973 | train | // DNS returns a ProblemDetails representing a DNSProblem | {
"resource": ""
} | ||
c30974 | train | // OrderNotReady returns a ProblemDetails representing a OrderNotReadyProblem | {
"resource": ""
} | ||
c30975 | train | // IssueCertificate is a mock | {
"resource": ""
} | ||
c30976 | train | // IssuePrecertificate is a mock | {
"resource": ""
} | ||
c30977 | train | // IssueCertificateForPrecertificate is a mock | {
"resource": ""
} | ||
c30978 | train | // GenerateOCSP is a mock | {
"resource": ""
} | ||
c30979 | train | // tlsDial does the equivalent of tls.Dial, but obeying a context. Once
// tls.DialContextWithDialer is available, switch to that. | {
"resource": ""
} | ||
c30980 | train | // NewValidationAuthorityImpl constructs a new VA | {
"resource": ""
} | ||
c30981 | train | // detailedError returns a ProblemDetails corresponding to an error
// that occurred during HTTP-01 or TLS-ALPN domain validation. Specifically it
// tries to unwrap known Go error types and present something a little more
// meaningful. It additionally handles `berrors.ConnectionFailure` errors by
// passing through t... | {
"resource": ""
} | ||
c30982 | train | // validate performs a challenge validation and, in parallel,
// checks CAA and GSB for the identifier. If any of those steps fails, it
// returns a ProblemDetails plus the validation records created during the
// validation attempt. | {
"resource": ""
} | ||
c30983 | train | // processRemoteResults evaluates a primary VA result, and a channel of remote
// VA problems to produce a single overall validation result based on configured
// feature flags. The overall result is calculated based on the VA's configured
// `maxRemoteFailures` value.
//
// If the `MultiVAFullResults` feature is enabl... | {
"resource": ""
} | ||
c30984 | train | // logRemoteValidationDifferentials is called by `processRemoteResults` when the
// `MultiVAFullResults` feature flag is enabled. It produces a JSON log line
// that contains the primary VA result and the results each remote VA returned. | {
"resource": ""
} | ||
c30985 | train | // New is a convenience function for creating a new BoulderError | {
"resource": ""
} | ||
c30986 | train | // Is is a convenience function for testing the internal type of an BoulderError | {
"resource": ""
} | ||
c30987 | train | // New loads the filename provided, and calls the callback. It then spawns a
// goroutine to check for updates to that file, calling the callback again with
// any new contents. The first load, and the first call to callback, are run
// synchronously, so it is easy for the caller to check for errors and fail
// fast. ... | {
"resource": ""
} | ||
c30988 | train | // availableAddresses takes a ValidationRecord and splits the AddressesResolved
// into a list of IPv4 and IPv6 addresses. | {
"resource": ""
} | ||
c30989 | train | // loadCertificateFile loads a PEM certificate from the certFile provided. It
// validates that the PEM is well-formed with no leftover bytes, and contains
// only a well-formed X509 certificate. If the cert file meets these
// requirements the PEM bytes from the file are returned, otherwise an error is
// returned. If... | {
"resource": ""
} | ||
c30990 | train | // loadCertificateChains processes the provided chainConfig of AIA Issuer URLs
// and cert filenames. For each AIA issuer URL all of its cert filenames are
// read, validated as PEM certificates, and concatenated together separated by
// newlines. The combined PEM certificate chain contents for each are returned
// in ... | {
"resource": ""
} | ||
c30991 | train | // NewMockPublisher creates a new mock instance | {
"resource": ""
} | ||
c30992 | train | // SubmitToSingleCTWithResult mocks base method | {
"resource": ""
} | ||
c30993 | train | // SubmitToSingleCTWithResult indicates an expected call of SubmitToSingleCTWithResult | {
"resource": ""
} | ||
c30994 | train | // NewSQLStorageAuthority provides persistence using a SQL backend for
// Boulder. It will modify the given gorp.DbMap by adding relevant tables. | {
"resource": ""
} | ||
c30995 | train | // GetRegistration obtains a Registration by ID | {
"resource": ""
} | ||
c30996 | train | // GetRegistrationByKey obtains a Registration by JWK | {
"resource": ""
} | ||
c30997 | train | // GetAuthorization obtains an Authorization by ID | {
"resource": ""
} | ||
c30998 | train | // GetValidAuthorizations returns the latest authorization object for all
// domain names from the parameters that the account has authorizations for. | {
"resource": ""
} | ||
c30999 | train | // incrementIP returns a copy of `ip` incremented at a bit index `index`,
// or in other words the first IP of the next highest subnet given a mask of
// length `index`.
// In order to easily account for overflow, we treat ip as a big.Int and add to
// it. If the increment overflows the max size of a net.IP, return the... | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.