_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c177600 | test | // RestoreURL restures cluster state from object storage. | {
"resource": ""
} | ||
c177601 | test | // IgnoreTypes returns an Option that ignores all values assignable to
// certain types, which are specified by passing in a value of each type. | {
"resource": ""
} | ||
c177602 | test | // AppendEllipsis appends a new ellipsis node to the list if none already
// exists at the end. If cs is non-zero it coalesces the statistics with the
// previous diffStats. | {
"resource": ""
} | ||
c177603 | test | // IsType reports whether the reflect.Type is of the specified function type. | {
"resource": ""
} | ||
c177604 | test | // NameOf returns the name of the function value. | {
"resource": ""
} | ||
c177605 | test | // PointerOf returns a Pointer from v, which must be a
// reflect.Ptr, reflect.Slice, or reflect.Map. | {
"resource": ""
} | ||
c177606 | test | // String returns a human-readable string representing the edit-script where
// Identity, UniqueX, UniqueY, and Modified are represented by the
// '.', 'X', 'Y', and 'M' characters, respectively. | {
"resource": ""
} | ||
c177607 | test | // stats returns a histogram of the number of each type of edit operation. | {
"resource": ""
} | ||
c177608 | test | // connect appends any necessary Identity, Modified, UniqueX, or UniqueY types
// to the edit-script to connect p.point to dst. | {
"resource": ""
} | ||
c177609 | test | // EquateNaNs returns a Comparer option that determines float32 and float64
// NaN values to be equal.
//
// EquateNaNs can be used in conjunction with EquateApprox. | {
"resource": ""
} | ||
c177610 | test | // Index returns the ith step in the Path and supports negative indexing.
// A negative index starts counting from the tail of the Path such that -1
// refers to the last step, -2 refers to the second-to-last step, and so on.
// If index is invalid, this returns a non-nil PathStep that reports a nil Type. | {
"resource": ""
} | ||
c177611 | test | // Key is the index key; it may return -1 if in a split state | {
"resource": ""
} | ||
c177612 | test | // String provides a full report of the differences detected as a structured
// literal in pseudo-Go syntax. String may only be called after the entire tree
// has been traversed. | {
"resource": ""
} | ||
c177613 | test | // FormatType prints the type as if it were wrapping s.
// This may return s as-is depending on the current type and TypeMode mode. | {
"resource": ""
} | ||
c177614 | test | // formatMapKey formats v as if it were a map key.
// The result is guaranteed to be a single line. | {
"resource": ""
} | ||
c177615 | test | // formatString prints s as a double-quoted or backtick-quoted string. | {
"resource": ""
} | ||
c177616 | test | // formatHex prints u as a hexadecimal integer in Go notation. | {
"resource": ""
} | ||
c177617 | test | // formatPointer prints the address of the pointer. | {
"resource": ""
} | ||
c177618 | test | // Visit inserts pointer v into the visited map and reports whether it had
// already been visited before. | {
"resource": ""
} | ||
c177619 | test | // retrieveUnexportedField uses unsafe to forcibly retrieve any field from
// a struct such that the value has read-write permissions.
//
// The parent struct, v, must be addressable, while f must be a StructField
// describing the field to retrieve. | {
"resource": ""
} | ||
c177620 | test | // insert inserts a sequence of field accesses into the tree. | {
"resource": ""
} | ||
c177621 | test | // matchPrefix reports whether any selector in the fieldTree matches
// the start of path p. | {
"resource": ""
} | ||
c177622 | test | // canonicalName returns a list of identifiers where any struct field access
// through an embedded field is expanded to include the names of the embedded
// types themselves.
//
// For example, suppose field "Foo" is not directly in the parent struct,
// but actually from an embedded struct of type "Bar". Then, the ca... | {
"resource": ""
} | ||
c177623 | test | // FilterPath returns a new Option where opt is only evaluated if filter f
// returns true for the current Path in the value tree.
//
// This filter is called even if a slice element or map entry is missing and
// provides an opportunity to ignore such cases. The filter function must be
// symmetric such that the filte... | {
"resource": ""
} | ||
c177624 | test | // normalizeOption normalizes the input options such that all Options groups
// are flattened and groups with a single element are reduced to that element.
// Only coreOptions and Options containing coreOptions are allowed. | {
"resource": ""
} | ||
c177625 | test | // flattenOptions copies all options in src to dst as a flat list.
// Only coreOptions and Options containing coreOptions are allowed. | {
"resource": ""
} | ||
c177626 | test | // CanFormatDiffSlice reports whether we support custom formatting for nodes
// that are slices of primitive kinds or strings. | {
"resource": ""
} | ||
c177627 | test | // formatASCII formats s as an ASCII string.
// This is useful for printing binary strings in a semi-legible way. | {
"resource": ""
} | ||
c177628 | test | // coalesceAdjacentEdits coalesces the list of edits into groups of adjacent
// equal or unequal counts. | {
"resource": ""
} | ||
c177629 | test | // SortKeys sorts a list of map keys, deduplicating keys if necessary.
// The type of each value must be comparable. | {
"resource": ""
} | ||
c177630 | test | // FormatDiff converts a valueNode tree into a textNode tree, where the later
// is a textual representation of the differences detected in the former. | {
"resource": ""
} | ||
c177631 | test | // coalesceAdjacentRecords coalesces the list of records into groups of
// adjacent equal, or unequal counts. | {
"resource": ""
} | ||
c177632 | test | // Diff returns a human-readable report of the differences between two values.
// It returns an empty string if and only if Equal returns true for the same
// input values and options.
//
// The output is displayed as a literal in pseudo-Go syntax.
// At the start of each line, a "-" prefix indicates an element removed... | {
"resource": ""
} | ||
c177633 | test | // statelessCompare compares two values and returns the result.
// This function is stateless in that it does not alter the current result,
// or output to any registered reporters. | {
"resource": ""
} | ||
c177634 | test | // sanitizeValue converts nil interfaces of type T to those of type R,
// assuming that T is assignable to R.
// Otherwise, it returns the input value as is. | {
"resource": ""
} | ||
c177635 | test | // Check scans the Path for any recursive transformers and panics when any
// recursive transformers are detected. Note that the presence of a
// recursive Transformer does not necessarily imply an infinite cycle.
// As such, this check only activates after some minimal number of path steps. | {
"resource": ""
} | ||
c177636 | test | // makeAddressable returns a value that is always addressable.
// It returns the input verbatim if it is already addressable,
// otherwise it creates a new value and returns an addressable copy. | {
"resource": ""
} | ||
c177637 | test | // Marshal passes a Field instance through to the appropriate
// field-type-specific method of an Encoder. | {
"resource": ""
} | ||
c177638 | test | // String returns a string representation of the key and value. | {
"resource": ""
} | ||
c177639 | test | // Set applies the tag to an existing Span. | {
"resource": ""
} | ||
c177640 | test | // Inject implements the Injector interface | {
"resource": ""
} | ||
c177641 | test | // Extract implements the Extractor interface | {
"resource": ""
} | ||
c177642 | test | // ToLogRecord converts a deprecated LogData to a non-deprecated LogRecord | {
"resource": ""
} | ||
c177643 | test | // New returns a MockTracer opentracing.Tracer implementation that's intended
// to facilitate tests of OpenTracing instrumentation. | {
"resource": ""
} | ||
c177644 | test | // StartSpan belongs to the Tracer interface. | {
"resource": ""
} | ||
c177645 | test | // RegisterInjector registers injector for given format | {
"resource": ""
} | ||
c177646 | test | // RegisterExtractor registers extractor for given format | {
"resource": ""
} | ||
c177647 | test | // Inject belongs to the Tracer interface. | {
"resource": ""
} | ||
c177648 | test | // Extract belongs to the Tracer interface. | {
"resource": ""
} | ||
c177649 | test | // ContextWithSpan returns a new `context.Context` that holds a reference to
// `span`'s SpanContext. | {
"resource": ""
} | ||
c177650 | test | // Set adds a uint32 tag to the `span` | {
"resource": ""
} | ||
c177651 | test | // Set adds a uint16 tag to the `span` | {
"resource": ""
} | ||
c177652 | test | // Add adds a bool tag to the `span` | {
"resource": ""
} | ||
c177653 | test | // SetString records IP v4 host address of the peer as a .-separated tuple to the `span`. E.g., "127.0.0.1" | {
"resource": ""
} | ||
c177654 | test | // EmitString belongs to the log.Encoder interface | {
"resource": ""
} | ||
c177655 | test | // EmitLazyLogger belongs to the log.Encoder interface | {
"resource": ""
} | ||
c177656 | test | // RunAPIChecks runs a test suite to check a Tracer against the OpenTracing API.
// It is provided a function that will be executed to create and destroy a tracer for each test
// in the suite, and the given APICheckOption functional options `opts`. | {
"resource": ""
} | ||
c177657 | test | // CheckBaggageValues returns an option that sets whether to check for propagation of baggage values. | {
"resource": ""
} | ||
c177658 | test | // CheckExtract returns an option that sets whether to check if extracting contexts from carriers works. | {
"resource": ""
} | ||
c177659 | test | // CheckInject returns an option that sets whether to check if injecting contexts works. | {
"resource": ""
} | ||
c177660 | test | // CheckEverything returns an option that enables all API checks. | {
"resource": ""
} | ||
c177661 | test | // UseProbe returns an option that specifies an APICheckProbe implementation to use. | {
"resource": ""
} | ||
c177662 | test | // Tags returns a copy of tags accumulated by the span so far | {
"resource": ""
} | ||
c177663 | test | // Tag returns a single tag | {
"resource": ""
} | ||
c177664 | test | // Logs returns a copy of logs accumulated in the span so far | {
"resource": ""
} | ||
c177665 | test | // Context belongs to the Span interface | {
"resource": ""
} | ||
c177666 | test | // SetTag belongs to the Span interface | {
"resource": ""
} | ||
c177667 | test | // SetBaggageItem belongs to the Span interface | {
"resource": ""
} | ||
c177668 | test | // BaggageItem belongs to the Span interface | {
"resource": ""
} | ||
c177669 | test | // Finish belongs to the Span interface | {
"resource": ""
} | ||
c177670 | test | // FinishWithOptions belongs to the Span interface | {
"resource": ""
} | ||
c177671 | test | // String allows printing span for debugging | {
"resource": ""
} | ||
c177672 | test | // LogFields belongs to the Span interface | {
"resource": ""
} | ||
c177673 | test | // The caller MUST NOT hold s.Lock | {
"resource": ""
} | ||
c177674 | test | // LogKV belongs to the Span interface.
//
// This implementations coerces all "values" to strings, though that is not
// something all implementations need to do. Indeed, a motivated person can and
// probably should have this do a typed switch on the values. | {
"resource": ""
} | ||
c177675 | test | // LogEvent belongs to the Span interface | {
"resource": ""
} | ||
c177676 | test | // LogEventWithPayload belongs to the Span interface | {
"resource": ""
} | ||
c177677 | test | // SetOperationName belongs to the Span interface | {
"resource": ""
} | ||
c177678 | test | // registriesDirPath returns a path to registries.d | {
"resource": ""
} | ||
c177679 | test | // loadAndMergeConfig loads configuration files in dirPath | {
"resource": ""
} | ||
c177680 | test | // ParseReference converts a string, which should not start with the ImageTransport.Name prefix, into an OpenShift ImageReference. | {
"resource": ""
} | ||
c177681 | test | // NewReference returns an OpenShift reference for a reference.NamedTagged | {
"resource": ""
} | ||
c177682 | test | // CheckAuth validates the credentials by attempting to log into the registry
// returns an error if an error occurred while making the http request or the status code received was 401 | {
"resource": ""
} | ||
c177683 | test | // doHttp uses the clients internal TLS configuration for doing the
// provided HTTP request. It returns the response and an error on failure. | {
"resource": ""
} | ||
c177684 | test | // detectPropertiesHelper performs the work of detectProperties which executes
// it at most once. | {
"resource": ""
} | ||
c177685 | test | // detectProperties detects various properties of the registry.
// See the dockerClient documentation for members which are affected by this. | {
"resource": ""
} | ||
c177686 | test | // getExtensionsSignatures returns signatures from the X-Registry-Supports-Signatures API extension,
// using the original data structures. | {
"resource": ""
} | ||
c177687 | test | // NewTransport Creates a default transport | {
"resource": ""
} | ||
c177688 | test | // Reads the global registry file from the filesystem. Returns
// a byte array | {
"resource": ""
} | ||
c177689 | test | // GetRegistries returns an array of strings that contain the names
// of the registries as defined in the system-wide
// registries file. it returns an empty array if none are
// defined | {
"resource": ""
} | ||
c177690 | test | // GetInsecureRegistries returns an array of strings that contain the names
// of the insecure registries as defined in the system-wide
// registries file. it returns an empty array if none are
// defined | {
"resource": ""
} | ||
c177691 | test | // RegistriesConfPath is the path to the system-wide registry configuration file | {
"resource": ""
} | ||
c177692 | test | // NewOptionalBool converts the input bool into either OptionalBoolTrue or
// OptionalBoolFalse. The function is meant to avoid boilerplate code of users. | {
"resource": ""
} | ||
c177693 | test | // changeContextState changes pc.state, or fails if the state is unexpected | {
"resource": ""
} | ||
c177694 | test | // Destroy should be called when the user of the context is done with it. | {
"resource": ""
} | ||
c177695 | test | // policyIdentityLogName returns a string description of the image identity for policy purposes.
// ONLY use this for log messages, not for any decisions! | {
"resource": ""
} | ||
c177696 | test | // requirementsForImageRef selects the appropriate requirements for ref. | {
"resource": ""
} | ||
c177697 | test | // ParseImageName converts a URL-like image name to a types.ImageReference. | {
"resource": ""
} | ||
c177698 | test | // BlobInfoFromOCI1Descriptor returns a types.BlobInfo based on the input OCI1 descriptor. | {
"resource": ""
} | ||
c177699 | test | // OCI1FromManifest creates an OCI1 manifest instance from a manifest blob. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.