_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c27800 | train | // ToFile outputs the given Config as a TOML-encoded file at the given path.
// Returns errors encountered when generating or writing the file, or nil
// otherwise. | {
"resource": ""
} | ||
c27801 | train | // Validate is the main entry point for library configuration validation.
// The parameter `onExecution` specifies if the validation should include
// execution checks. It returns an `error` on validation failure, otherwise
// `nil`. | {
"resource": ""
} | ||
c27802 | train | // Validate is the main entry point for root configuration validation.
// The parameter `onExecution` specifies if the validation should include
// execution checks. It returns an `error` on validation failure, otherwise
// `nil`. | {
"resource": ""
} | ||
c27803 | train | // Validate is the main entry point for runtime configuration validation
// The parameter `onExecution` specifies if the validation should include
// execution checks. It returns an `error` on validation failure, otherwise
// `nil`. | {
"resource": ""
} | ||
c27804 | train | // Validate is the main entry point for network configuration validation.
// The parameter `onExecution` specifies if the validation should include
// execution checks. It returns an `error` on validation failure, otherwise
// `nil`. | {
"resource": ""
} | ||
c27805 | train | // privilegedSandbox returns true if the sandbox configuration
// requires additional host privileges for the sandbox. | {
"resource": ""
} | ||
c27806 | train | // runtimeHandler returns the runtime handler key provided by CRI if the key
// does exist and the associated data are valid. If the key is empty, there
// is nothing to do, and the empty key is returned. For every other case, this
// function will return an empty string with the error associated. | {
"resource": ""
} | ||
c27807 | train | // RunPodSandbox creates and runs a pod-level sandbox. | {
"resource": ""
} | ||
c27808 | train | // StopPodSandbox stops the sandbox. If there are any running containers in the
// sandbox, they should be force terminated. | {
"resource": ""
} | ||
c27809 | train | // stopAllPodSandboxes removes all pod sandboxes | {
"resource": ""
} | ||
c27810 | train | // localeToLanguage translates POSIX locale strings to BCP 47 language tags. | {
"resource": ""
} | ||
c27811 | train | // ContainerStateFromDisk retrieves information on the state of a running container
// from the disk | {
"resource": ""
} | ||
c27812 | train | // ContainerStateToDisk writes the container's state information to a JSON file
// on disk | {
"resource": ""
} | ||
c27813 | train | // ReserveContainerName holds a name for a container that is being created | {
"resource": ""
} | ||
c27814 | train | // ReservePodName holds a name for a pod that is being created | {
"resource": ""
} | ||
c27815 | train | // AddContainer adds a container to the container state store | {
"resource": ""
} | ||
c27816 | train | // AddInfraContainer adds a container to the container state store | {
"resource": ""
} | ||
c27817 | train | // GetContainer returns a container by its ID | {
"resource": ""
} | ||
c27818 | train | // GetInfraContainer returns a container by its ID | {
"resource": ""
} | ||
c27819 | train | // HasContainer checks if a container exists in the state | {
"resource": ""
} | ||
c27820 | train | // RemoveContainer removes a container from the container state store | {
"resource": ""
} | ||
c27821 | train | // RemoveInfraContainer removes a container from the container state store | {
"resource": ""
} | ||
c27822 | train | // ListContainers returns a list of all containers stored by the server state
// that match the given filter function | {
"resource": ""
} | ||
c27823 | train | // AddSandbox adds a sandbox to the sandbox state store | {
"resource": ""
} | ||
c27824 | train | // GetSandbox returns a sandbox by its ID | {
"resource": ""
} | ||
c27825 | train | // GetSandboxContainer returns a sandbox's infra container | {
"resource": ""
} | ||
c27826 | train | // HasSandbox checks if a sandbox exists in the state | {
"resource": ""
} | ||
c27827 | train | // RemoveSandbox removes a sandbox from the state store | {
"resource": ""
} | ||
c27828 | train | // PodSandboxStatus returns the Status of the PodSandbox. | {
"resource": ""
} | ||
c27829 | train | // Status returns the status of the runtime | {
"resource": ""
} | ||
c27830 | train | // Register all metrics | {
"resource": ""
} | ||
c27831 | train | // prepareReference creates an image reference from an image string and set options
// for the source context | {
"resource": ""
} | ||
c27832 | train | // UpdateRuntimeConfig updates the configuration of a running container. | {
"resource": ""
} | ||
c27833 | train | // Attach endpoint for streaming.Runtime | {
"resource": ""
} | ||
c27834 | train | // networkStart sets up the sandbox's network and returns the pod IP on success
// or an error | {
"resource": ""
} | ||
c27835 | train | // getSandboxIP retrieves the IP address for the sandbox | {
"resource": ""
} | ||
c27836 | train | // networkStop cleans up and removes a pod's network. It is best-effort and
// must call the network plugin even if the network namespace is already gone | {
"resource": ""
} | ||
c27837 | train | // getUserFromImage gets uid or user name of the image user.
// If user is numeric, it will be treated as uid; or else, it is treated as user name. | {
"resource": ""
} | ||
c27838 | train | // ReopenContainerLog reopens the containers log file | {
"resource": ""
} | ||
c27839 | train | // filterSandbox returns whether passed container matches filtering criteria | {
"resource": ""
} | ||
c27840 | train | // ListPodSandbox returns a list of SandBoxes. | {
"resource": ""
} | ||
c27841 | train | // RemoveContainer removes the container. If the container is running, the container
// should be force removed. | {
"resource": ""
} | ||
c27842 | train | // Close closes read closer. | {
"resource": ""
} | ||
c27843 | train | // Validate is the main entry point for configuration validation
// The parameter `onExecution` specifies if the validation should include
// execution checks. It returns an `error` on validation failure, otherwise
// `nil`. | {
"resource": ""
} | ||
c27844 | train | // newRuntimeOCI creates a new runtimeOCI instance | {
"resource": ""
} | ||
c27845 | train | // Less compares two sandboxes and returns true if the second one
// was created before the first one. | {
"resource": ""
} | ||
c27846 | train | // Swap switches sandboxes i and j positions in the history. | {
"resource": ""
} | ||
c27847 | train | // NewExecIO creates exec io. | {
"resource": ""
} | ||
c27848 | train | // Attach attaches exec stdio. The logic is similar with container io attach. | {
"resource": ""
} | ||
c27849 | train | // Returns the total number of bytes transmitted and received for the given container stats | {
"resource": ""
} | ||
c27850 | train | // getMemory limit returns the memory limit for a given cgroup
// If the configured memory limit is larger than the total memory on the sys, the
// physical system memory size is returned | {
"resource": ""
} | ||
c27851 | train | // streamKey generates a key for the stream. | {
"resource": ""
} | ||
c27852 | train | // WithFIFOs specifies existing fifos for the container io. | {
"resource": ""
} | ||
c27853 | train | // WithNewFIFOs creates new fifos for the container io. | {
"resource": ""
} | ||
c27854 | train | // NewContainerIO creates container io. | {
"resource": ""
} | ||
c27855 | train | // Pipe creates container fifos and pipe container output
// to output stream. | {
"resource": ""
} | ||
c27856 | train | // AddOutput adds new write closers to the container stream, and returns existing
// write closers if there are any. | {
"resource": ""
} | ||
c27857 | train | // GetLogs gets each line of a log file and, if it matches the criteria in logOptions, sends it down logChan | {
"resource": ""
} | ||
c27858 | train | // NewContainer creates a container object. | {
"resource": ""
} | ||
c27859 | train | // GetStopSignal returns the container's own stop signal configured from the
// image configuration or the default one. | {
"resource": ""
} | ||
c27860 | train | // StopSignal returns the container's own stop signal configured from
// the image configuration or the default one. | {
"resource": ""
} | ||
c27861 | train | // FromDisk restores container's state from disk | {
"resource": ""
} | ||
c27862 | train | // NetNsPath returns the path to the network namespace of the container. | {
"resource": ""
} | ||
c27863 | train | // State returns the state of the running container | {
"resource": ""
} | ||
c27864 | train | // AddVolume adds a volume to list of container volumes. | {
"resource": ""
} | ||
c27865 | train | // SetStartFailed sets the container state appropriately after a start failure | {
"resource": ""
} | ||
c27866 | train | // Description returns a description for the container | {
"resource": ""
} | ||
c27867 | train | // NewWriteCloseInformer creates the writeCloseInformer from a write closer. | {
"resource": ""
} | ||
c27868 | train | // Write passes through the data into the internal write closer. | {
"resource": ""
} | ||
c27869 | train | // Close closes the internal write closer and inform the close channel. | {
"resource": ""
} | ||
c27870 | train | // Write passes through the data into the internal writer. | {
"resource": ""
} | ||
c27871 | train | // Write writes a group of byte arrays in order atomically. | {
"resource": ""
} | ||
c27872 | train | // Close closes the write closer. | {
"resource": ""
} | ||
c27873 | train | // IsEnabled returns true if seccomp is enabled for the host. | {
"resource": ""
} | ||
c27874 | train | // LoadProfileFromStruct takes a Seccomp struct and setup seccomp in the spec. | {
"resource": ""
} | ||
c27875 | train | // LoadProfileFromBytes takes a byte slice and decodes the seccomp profile. | {
"resource": ""
} | ||
c27876 | train | // Remove removes a container | {
"resource": ""
} | ||
c27877 | train | // Register a type with the base url of the type | {
"resource": ""
} | ||
c27878 | train | // Is returns true if the type of the Any is the same as v | {
"resource": ""
} | ||
c27879 | train | // MarshalAny marshals the value v into an any with the correct TypeUrl | {
"resource": ""
} | ||
c27880 | train | // UnmarshalAny unmarshals the any type into a concrete type | {
"resource": ""
} | ||
c27881 | train | // resolveSymbolicLink resolves a possbile symlink path. If the path is a symlink, returns resolved
// path; if not, returns the original path. | {
"resource": ""
} | ||
c27882 | train | // buildOCIProcessArgs build an OCI compatible process arguments slice. | {
"resource": ""
} | ||
c27883 | train | // setupContainerUser sets the UID, GID and supplemental groups in OCI runtime config | {
"resource": ""
} | ||
c27884 | train | // generateUserString generates valid user string based on OCI Image Spec v1.0.0. | {
"resource": ""
} | ||
c27885 | train | // addSecretsBindMounts mounts user defined secrets to the container | {
"resource": ""
} | ||
c27886 | train | // getAppArmorProfileName gets the profile name for the given container. | {
"resource": ""
} | ||
c27887 | train | // GetRuntimeService returns a RuntimeServer that uses the passed-in image
// service to pull and manage images, and its store to manage containers based
// on those images. | {
"resource": ""
} | ||
c27888 | train | // List returns a sorted list of sandboxes from the store.
// The sandboxes are ordered by creation date. | {
"resource": ""
} | ||
c27889 | train | // First returns the first sandbox found in the store by a given filter. | {
"resource": ""
} | ||
c27890 | train | // ContainerRename renames the given container | {
"resource": ""
} | ||
c27891 | train | // Attempts to update a metadata annotation | {
"resource": ""
} | ||
c27892 | train | // GetDiskUsageStats accepts a path to a directory or file
// and returns the number of bytes and inodes used by the path | {
"resource": ""
} | ||
c27893 | train | // ContainerKill sends the user provided signal to the containers primary process. | {
"resource": ""
} | ||
c27894 | train | // Initialize does the necessary setup for a NetNs | {
"resource": ""
} | ||
c27895 | train | // SymlinkCreate creates the necessary symlinks for the NetNs | {
"resource": ""
} | ||
c27896 | train | // Path returns the path of the network namespace handle | {
"resource": ""
} | ||
c27897 | train | // Close closes this network namespace | {
"resource": ""
} | ||
c27898 | train | // Remove ensures this network namespace handle is closed and removed | {
"resource": ""
} | ||
c27899 | train | // newFifos creates fifos directory for a container. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.