_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c27700
train
// SignatureFromContext gets the signature from the context
{ "resource": "" }
c27701
train
// NewWithSignature is the same as New but injects the signature
{ "resource": "" }
c27702
train
// New tries to use reflection to convert the function and arguments // into a reflect.Value and prepare it for invocation
{ "resource": "" }
c27703
train
// StartSpanFromHeaders will extract a span from the signature headers // and start a new span with the given operation name.
{ "resource": "" }
c27704
train
// HeadersWithSpan will inject a span into the signature headers
{ "resource": "" }
c27705
train
// consume is a method which keeps consuming deliveries from a channel, until there is an error or a stop signal
{ "resource": "" }
c27706
train
// consumeOne is a method consumes a delivery. If a delivery was consumed successfully, it will be deleted from AWS SQS
{ "resource": "" }
c27707
train
// deleteOne is a method delete a delivery from AWS SQS
{ "resource": "" }
c27708
train
// defaultQueueURL is a method returns the default queue url
{ "resource": "" }
c27709
train
// receiveMessage is a method receives a message from specified queue url
{ "resource": "" }
c27710
train
// initializePool is a method which initializes concurrency pool
{ "resource": "" }
c27711
train
// consumeDeliveries is a method consuming deliveries from deliveries channel
{ "resource": "" }
c27712
train
// continueReceivingMessages is a method returns a continue signal
{ "resource": "" }
c27713
train
// getQueueURL is a method returns that returns queueURL first by checking if custom queue was set and usign it // otherwise using default queueName from config
{ "resource": "" }
c27714
train
// GetUUIDs returns slice of task UUIDS
{ "resource": "" }
c27715
train
// NewChain creates a new chain of tasks to be processed one by one, passing // results unless task signatures are set to be immutable
{ "resource": "" }
c27716
train
// NewGroup creates a new group of tasks to be processed in parallel
{ "resource": "" }
c27717
train
// GetState returns the latest task state. It will only return the status once // as the message will get consumed and removed from the queue.
{ "resource": "" }
c27718
train
// getExpiresIn returns expiration time
{ "resource": "" }
c27719
train
// NewPool returns a new pool of Redis connections
{ "resource": "" }
c27720
train
// Open a new Redis connection
{ "resource": "" }
c27721
train
// NewAsyncResult creates AsyncResult instance
{ "resource": "" }
c27722
train
// NewChordAsyncResult creates ChordAsyncResult instance
{ "resource": "" }
c27723
train
// NewChainAsyncResult creates ChainAsyncResult instance
{ "resource": "" }
c27724
train
// Touch the state and don't wait
{ "resource": "" }
c27725
train
// GetState returns latest task state
{ "resource": "" }
c27726
train
// ValidateTask validates task function using reflection and makes sure // it has a proper signature. Functions used as tasks must return at least a // single value and the last return type must be error
{ "resource": "" }
c27727
train
// New creates a Backend instance
{ "resource": "" }
c27728
train
// NewFromEnvironment creates a config object from environment variables
{ "resource": "" }
c27729
train
// NewBroker creates new Broker instance
{ "resource": "" }
c27730
train
// IsTaskRegistered returns true if the task is registered with this broker
{ "resource": "" }
c27731
train
// StartConsuming is a common part of StartConsuming method
{ "resource": "" }
c27732
train
// StopConsuming is a common part of StopConsuming
{ "resource": "" }
c27733
train
// lockGroupMeta acquires lock on group meta data
{ "resource": "" }
c27734
train
// getExpirationTimestamp returns expiration timestamp
{ "resource": "" }
c27735
train
// getClient returns or creates instance of Memcache client
{ "resource": "" }
c27736
train
// New creates EagerBackend instance
{ "resource": "" }
c27737
train
// NewFromYaml creates a config object from YAML file
{ "resource": "" }
c27738
train
// ReadFromFile reads data from a file
{ "resource": "" }
c27739
train
// NewSignature creates a new task signature
{ "resource": "" }
c27740
train
// NewServer creates Server instance
{ "resource": "" }
c27741
train
// NewWorker creates Worker instance
{ "resource": "" }
c27742
train
// NewCustomQueueWorker creates Worker instance with Custom Queue
{ "resource": "" }
c27743
train
// RegisterTasks registers all tasks at once
{ "resource": "" }
c27744
train
// RegisterTask registers a single task
{ "resource": "" }
c27745
train
// IsTaskRegistered returns true if the task name is registered with this broker
{ "resource": "" }
c27746
train
// GetRegisteredTask returns registered task by name
{ "resource": "" }
c27747
train
// SendTaskWithContext will inject the trace context in the signature headers before publishing it
{ "resource": "" }
c27748
train
// SendTask publishes a task to the default queue
{ "resource": "" }
c27749
train
// SendChainWithContext will inject the trace context in all the signature headers before publishing it
{ "resource": "" }
c27750
train
// SendChain triggers a chain of tasks
{ "resource": "" }
c27751
train
// SendGroupWithContext will inject the trace context in all the signature headers before publishing it
{ "resource": "" }
c27752
train
// SendGroup triggers a group of parallel tasks
{ "resource": "" }
c27753
train
// SendChordWithContext will inject the trace context in all the signature headers before publishing it
{ "resource": "" }
c27754
train
// SendChord triggers a group of parallel tasks with a callback
{ "resource": "" }
c27755
train
// GetRegisteredTaskNames returns slice of registered task names
{ "resource": "" }
c27756
train
// Set sets a custom logger for all log levels
{ "resource": "" }
c27757
train
// GetPendingTasks returns a slice of task signatures waiting in the queue
{ "resource": "" }
c27758
train
// nextTask pops next available task from the default queue
{ "resource": "" }
c27759
train
// open returns or creates instance of Redis connection
{ "resource": "" }
c27760
train
// Fibonacci returns successive Fibonacci numbers starting from 1
{ "resource": "" }
c27761
train
// FibonacciNext returns next number in Fibonacci sequence greater than start
{ "resource": "" }
c27762
train
// decodeResults detects & decodes json strings in TaskResult.Value and returns a new slice
{ "resource": "" }
c27763
train
// lockGroupMeta acquires lock on groupUUID document
{ "resource": "" }
c27764
train
// unlockGroupMeta releases lock on groupUUID document
{ "resource": "" }
c27765
train
// connect creates the underlying mgo connection if it doesn't exist // creates required indexes for our collections
{ "resource": "" }
c27766
train
// dial connects to mongo with TLSConfig if provided // else connects via ResultBackend uri
{ "resource": "" }
c27767
train
// createMongoIndexes ensures all indexes are in place
{ "resource": "" }
c27768
train
// NewErrCouldNotUnmarshaTaskSignature returns new ErrCouldNotUnmarshaTaskSignature instance
{ "resource": "" }
c27769
train
// NewErrRetryTaskLater returns new ErrRetryTaskLater instance
{ "resource": "" }
c27770
train
// setExpirationTime sets expiration timestamp on a stored task state
{ "resource": "" }
c27771
train
// GetOrOpenConnection will return a connection on a particular queue name. Open connections // are saved to avoid having to reopen connection for multiple queues
{ "resource": "" }
c27772
train
// delay a task by delayDuration miliseconds, the way it works is a new queue // is created without any consumers, the message is then published to this queue // with appropriate ttl expiration headers, after the expiration, it is sent to // the proper queue with consumers
{ "resource": "" }
c27773
train
// Version returns the runtime name, runtime version and runtime API version
{ "resource": "" }
c27774
train
// NetNsGet returns the NetNs associated with the given nspath and name
{ "resource": "" }
c27775
train
// New creates and populates a new pod sandbox // New sandboxes have no containers, no infra container, and no network namespaces associated with them // An infra container must be attached before the sandbox is added to the state
{ "resource": "" }
c27776
train
// AddContainer adds a container to the sandbox
{ "resource": "" }
c27777
train
// GetContainer retrieves a container from the sandbox
{ "resource": "" }
c27778
train
// RemoveContainer deletes a container from the sandbox
{ "resource": "" }
c27779
train
// SetInfraContainer sets the infrastructure container of a sandbox // Attempts to set the infrastructure container after one is already present will throw an error
{ "resource": "" }
c27780
train
// NetNs retrieves the network namespace of the sandbox // If the sandbox uses the host namespace, nil is returned
{ "resource": "" }
c27781
train
// NetNsPath returns the path to the network namespace of the sandbox. // If the sandbox uses the host namespace, nil is returned
{ "resource": "" }
c27782
train
// UserNsPath returns the path to the user namespace of the sandbox. // If the sandbox uses the host namespace, nil is returned
{ "resource": "" }
c27783
train
// NetNsCreate creates a new network namespace for the sandbox
{ "resource": "" }
c27784
train
// NetNsJoin attempts to join the sandbox to an existing network namespace // This will fail if the sandbox is already part of a network namespace
{ "resource": "" }
c27785
train
// NetNsRemove removes the network namespace associated with the sandbox
{ "resource": "" }
c27786
train
// New returns a crio client
{ "resource": "" }
c27787
train
// DaemonInfo return cri-o daemon info from the cri-o // info endpoint.
{ "resource": "" }
c27788
train
// ContainerInfo returns container info by querying // the cri-o container endpoint.
{ "resource": "" }
c27789
train
// Write from byte array to a fifo.
{ "resource": "" }
c27790
train
// Get is the User-Agent the CRI-O daemon uses to identify itself.
{ "resource": "" }
c27791
train
// SaveTo saves secret data to given directory
{ "resource": "" }
c27792
train
// secretMount copies the contents of host directory to container directory // and returns a list of mounts
{ "resource": "" }
c27793
train
// NewCRILogger returns a write closer which redirect container log into // log file, and decorate the log line into CRI defined format. It also // returns a channel which indicates whether the logger is stopped. // maxLen is the max length limit of a line. A line longer than the // limit will be cut into multiple line...
{ "resource": "" }
c27794
train
// inStringSlice checks whether a string is inside a string slice. // Comparison is case insensitive.
{ "resource": "" }
c27795
train
// getOCICapabilitiesList returns a list of all available capabilities.
{ "resource": "" }
c27796
train
// validateSysctl checks that a sysctl is whitelisted because it is known // to be namespaced by the Linux kernel. // The parameters hostNet and hostIPC are used to forbid sysctls for pod sharing the // respective namespaces with the host. This check is only used on sysctls defined by // the user in the crio.conf file.
{ "resource": "" }
c27797
train
// Translate container labels to a description of the container
{ "resource": "" }
c27798
train
// GetStore returns the container storage for a given configuration
{ "resource": "" }
c27799
train
// UpdateFromFile populates the Config from the TOML-encoded file at the given path. // Returns errors encountered when reading or parsing the files, or nil // otherwise.
{ "resource": "" }