_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c27900
train
// toOCIResources converts CRI resource constraints to OCI.
{ "resource": "" }
c27901
train
// GetInfoMux returns the mux used to serve info requests
{ "resource": "" }
c27902
train
// GetConfigForClient gets the tlsConfig for the streaming server. // This allows the certs to be swapped, without shutting down crio.
{ "resource": "" }
c27903
train
// getExec returns exec stream request
{ "resource": "" }
c27904
train
// getAttach returns attach stream request
{ "resource": "" }
c27905
train
// getPortForward returns port forward stream request
{ "resource": "" }
c27906
train
// cleanupSandboxesOnShutdown Remove all running Sandboxes on system shutdown
{ "resource": "" }
c27907
train
// StartExitMonitor start a routine that monitors container exits // and updates the container status
{ "resource": "" }
c27908
train
// filterContainer returns whether passed container matches filtering criteria
{ "resource": "" }
c27909
train
// filterContainerList applies a protobuf-defined filter to retrieve only intended containers. Not matching // the filter is not considered an error but will return an empty response.
{ "resource": "" }
c27910
train
// newRuntimeVM creates a new runtimeVM instance
{ "resource": "" }
c27911
train
// UnpauseContainer unpauses a container.
{ "resource": "" }
c27912
train
// ExecCmd executes a command with args and returns its output as a string along // with an error, if any
{ "resource": "" }
c27913
train
// ExecCmdWithStdStreams execute a command with the specified standard streams.
{ "resource": "" }
c27914
train
// RunUnderSystemdScope adds the specified pid to a systemd scope
{ "resource": "" }
c27915
train
// CopyDetachable is similar to io.Copy but support a detach key sequence to break out.
{ "resource": "" }
c27916
train
// WriteGoroutineStacks writes out the goroutine stacks // of the caller. Up to 32 MB is allocated to print the // stack.
{ "resource": "" }
c27917
train
// WriteGoroutineStacksToFile write goroutine stacks // to the specified file.
{ "resource": "" }
c27918
train
// GenerateID generates a random unique id.
{ "resource": "" }
c27919
train
// openContainerFile opens a file inside a container rootfs safely
{ "resource": "" }
c27920
train
// Add adds a writer into the group. The writer will be closed // if the writer group is closed.
{ "resource": "" }
c27921
train
// Get gets a writer from the group, returns nil if the writer // doesn't exist.
{ "resource": "" }
c27922
train
// Remove removes a writer from the group.
{ "resource": "" }
c27923
train
// Write writes data into each writer. If a writer returns error, // it will be closed and removed from the writer group. It returns // error if writer group is empty.
{ "resource": "" }
c27924
train
// Close closes the writer group. Write will return error after // closed.
{ "resource": "" }
c27925
train
// New creates a new Runtime with options provided
{ "resource": "" }
c27926
train
// ValidateRuntimeHandler returns an error if the runtime handler string // provided does not match any valid use case.
{ "resource": "" }
c27927
train
// RuntimeImpl returns the runtime implementation for a given container
{ "resource": "" }
c27928
train
// newPipe creates a unix socket pair for communication
{ "resource": "" }
c27929
train
// Reverse lookup signal string from its map
{ "resource": "" }
c27930
train
// GetStorageContainer searches for a container with the given name or ID in the given store
{ "resource": "" }
c27931
train
// GetContainerTopLayerID gets the ID of the top layer of the given container
{ "resource": "" }
c27932
train
// GetContainerRwSize Gets the size of the mutable top layer of the container
{ "resource": "" }
c27933
train
// GetContainerFromShortID gets an oci container matching the specified full or partial id
{ "resource": "" }
c27934
train
// LookupContainer returns the container with the given name or full or partial id
{ "resource": "" }
c27935
train
// LookupSandbox returns the pod sandbox with the given name or full or partial id
{ "resource": "" }
c27936
train
// Exec endpoint for streaming.Runtime
{ "resource": "" }
c27937
train
// Tag returns the value associated with key in the tag string. If there is no // such key in the tag, Tag returns the empty string.
{ "resource": "" }
c27938
train
// Field returns the field from a nested struct. It panics if the nested struct // is not exported or if the field was not found.
{ "resource": "" }
c27939
train
// FillMap is the same as Map. Instead of returning the output, it fills the // given map.
{ "resource": "" }
c27940
train
// Field returns a new Field struct that provides several high level functions // around a single struct field entity. It panics if the field is not found.
{ "resource": "" }
c27941
train
// FieldOk returns a new Field struct that provides several high level functions // around a single struct field entity. The boolean returns true if the field // was found.
{ "resource": "" }
c27942
train
// structFields returns the exported struct fields for a given s struct. This // is a convenient helper method to avoid duplicate code in some of the // functions.
{ "resource": "" }
c27943
train
// IsStruct returns true if the given variable is a struct or a pointer to // struct.
{ "resource": "" }
c27944
train
// nested retrieves recursively all types for the given value and returns the // nested value.
{ "resource": "" }
c27945
train
// Has returns true if the given option is available in tagOptions
{ "resource": "" }
c27946
train
// Enable OAuth 2.0 Client Credentials Grant Flow
{ "resource": "" }
c27947
train
// getHTTP returns a http struct
{ "resource": "" }
c27948
train
// getSegment creates a new segment based on whether we're part of an existing flow
{ "resource": "" }
c27949
train
// getStatus returns a status code from the error
{ "resource": "" }
c27950
train
// setCallStatus sets the http section and related status
{ "resource": "" }
c27951
train
// NewClientWrapper returns a hystrix client Wrapper.
{ "resource": "" }
c27952
train
// decodeBody decodes the body of the message.
{ "resource": "" }
c27953
train
// EncodeMsg encodes the request to writer. The body is expected to // be an encodable type.
{ "resource": "" }
c27954
train
// EncodeMsg encodes the notification to writer. The body is expected to // be an encodable type.
{ "resource": "" }
c27955
train
// Stop closes any channels
{ "resource": "" }
c27956
train
// recv loops to receive new messages from Redis and handle them // as publications.
{ "resource": "" }
c27957
train
// Init sets or overrides broker options.
{ "resource": "" }
c27958
train
// Disconnect closes the connection pool.
{ "resource": "" }
c27959
train
// Publish publishes a message.
{ "resource": "" }
c27960
train
// Subscribe returns a subscriber for the topic and handler.
{ "resource": "" }
c27961
train
// setSubscribeOption returns a function to setup a context with given value
{ "resource": "" }
c27962
train
// setBrokerOption returns a function to setup a context with given value
{ "resource": "" }
c27963
train
// setPublishOption returns a function to setup a context with given value
{ "resource": "" }
c27964
train
// convertCode converts a standard Go error into its canonical code. Note that // this is only used to translate the error returned by the server applications.
{ "resource": "" }
c27965
train
// NewClientWrapper wraps another client wrapper but only executes when the endpoints specified are executed.
{ "resource": "" }
c27966
train
// NewHandlerWrapper wraps another handler wrapper but only executes when the endpoints specified are executed.
{ "resource": "" }
c27967
train
// NewPlugin Creates the CORS Plugin
{ "resource": "" }
c27968
train
// NewClientWrapper wraps a service within a client so it can be accessed by subsequent client wrappers.
{ "resource": "" }
c27969
train
// NewHandlerWrapper wraps a service within the handler so it can be accessed by the handler itself.
{ "resource": "" }
c27970
train
// NewClientWrapper is a wrapper which shards based on a header key value
{ "resource": "" }
c27971
train
// ClientOption is a broker Option which allows google pubsub client options to be // set for the client
{ "resource": "" }
c27972
train
// ProjectID provides an option which sets the google project id
{ "resource": "" }
c27973
train
// CreateSubscription prevents the creation of the subscription if it not exists
{ "resource": "" }
c27974
train
// DeleteSubscription prevents the deletion of the subscription if it not exists
{ "resource": "" }
c27975
train
// MaxExtension is the maximum period for which the Subscription should // automatically extend the ack deadline for each message.
{ "resource": "" }
c27976
train
// secure returns the dial option for whether its a secure or insecure connection
{ "resource": "" }
c27977
train
// NewCallWrapper accepts Options and returns a Trace Call Wrapper for individual node calls made by the client
{ "resource": "" }
c27978
train
// NewClientWrapper accepts Options and returns a Trace Client Wrapper which tracks high level service calls
{ "resource": "" }
c27979
train
// NewHandlerWrapper accepts Options and returns a Trace Handler Wrapper
{ "resource": "" }
c27980
train
// Label used in the priority label list
{ "resource": "" }
c27981
train
// Auth sets the authentication information
{ "resource": "" }
c27982
train
// WithContent will write the given status, header and body
{ "resource": "" }
c27983
train
// run is designed to run as a goroutine and poll SQS for new messages. Note that it's possible to receive // more than one message from a single poll depending on the options configured for the plugin
{ "resource": "" }
c27984
train
// Init initializes a broker and configures an AWS session and SQS struct
{ "resource": "" }
c27985
train
// Publish publishes a message via SQS
{ "resource": "" }
c27986
train
// Subscribe subscribes to an SQS queue, starting a goroutine to poll for messages
{ "resource": "" }
c27987
train
// NewBroker creates a new broker with options
{ "resource": "" }
c27988
train
// The grpc handler
{ "resource": "" }
c27989
train
// verb sets method
{ "resource": "" }
c27990
train
// Namespace is to set the namespace to operate on
{ "resource": "" }
c27991
train
// Resource is the type of resource the operation is // for, such as "services", "endpoints" or "pods"
{ "resource": "" }
c27992
train
// Name is for targeting a specific resource by id
{ "resource": "" }
c27993
train
// Body pass in a body to set, this is for POST, PUT // and PATCH requests
{ "resource": "" }
c27994
train
// Params isused to set paramters on a request
{ "resource": "" }
c27995
train
// SetHeader sets a header on a request with // a `key` and `value`
{ "resource": "" }
c27996
train
// request builds the http.Request from the options
{ "resource": "" }
c27997
train
// Do builds and triggers the request
{ "resource": "" }
c27998
train
// Watch builds and triggers the request, but // will watch instead of return an object
{ "resource": "" }
c27999
train
// NewRequest creates a k8s api request
{ "resource": "" }