Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/containers/containrs
/ functions
Functions
506 in github.com/containers/containrs
⨍
Functions
506
◇
Types & classes
392
↓ 85 callers
Function
write_kv
(f: &mut fmt::Formatter<'_>, key: K, value: V)
crates/container/src/oci_runtime.rs:227
↓ 74 callers
Method
clone
(&self)
crates/services/src/cri/api/runtime.v1alpha2.rs:3406
↓ 61 callers
Method
map_err
(self, op: O)
crates/services/src/cri/cri_service.rs:95
↓ 58 callers
Method
clone
(&self)
tests/src/criapi/runtime.v1alpha2.rs:3406
↓ 54 callers
Method
ready
Wrapper for the implementations `ready` method
crates/sandbox/src/lib.rs:226
↓ 31 callers
Method
to_iptables
(self)
crates/network/src/cni/iptables.rs:591
↓ 28 callers
Method
clone
(&self)
crates/network/src/cni/plugin.rs:274
↓ 27 callers
Method
debug_request
Debug log a request.
crates/services/src/cri/cri_service.rs:21
↓ 27 callers
Method
debug_response
Debug log a response.
crates/services/src/cri/cri_service.rs:29
↓ 20 callers
Method
insert
(&mut self, key: K, value: V)
crates/storage/src/memory_key_value_storage.rs:32
↓ 19 callers
Method
add_any_failure
(&mut self)
crates/network/src/cni/iptables.rs:625
↓ 17 callers
Method
build_cmd_vec
Build a vec of `[command][args][container_id]`
crates/container/src/oci_runtime.rs:169
↓ 17 callers
Method
chain
(&self)
crates/network/src/cni/iptables.rs:602
↓ 16 callers
Method
map_internal
Maps the self type to an internal error status containing the provided `msg`.
crates/services/src/cri/cri_service.rs:74
↓ 15 callers
Method
id
Retrieve the unique identifier for the sandbox
crates/sandbox/src/lib.rs:203
↓ 12 callers
Method
add_any_success
(&mut self)
crates/network/src/cni/iptables.rs:621
↓ 12 callers
Method
run
Run an iptables command and retrieve its output.
crates/network/src/cni/iptables.rs:394
↓ 11 callers
Method
get
(&self, key: K)
crates/storage/src/memory_key_value_storage.rs:21
↓ 9 callers
Method
add_call
(&mut self, exit_code: i32, stdout: Option<&str>)
crates/network/src/cni/iptables.rs:608
↓ 9 callers
Method
ok_or_invalid
Maps the self type to an invalid argument status containing the provided `msg`.
crates/services/src/cri/cri_service.rs:40
↓ 8 callers
Method
add_chain_ensure
(&mut self)
crates/network/src/cni/iptables.rs:633
↓ 8 callers
Function
new_cri_service
()
crates/services/src/cri/cri_service.rs:110
↓ 8 callers
Method
output
(&self, _: &mut Command)
crates/network/src/cni/iptables.rs:579
↓ 8 callers
Method
state
Retrieve the state of a container.
crates/container/src/container/local.rs:83
↓ 7 callers
Method
add_rule_insert_unique
(&mut self)
crates/network/src/cni/iptables.rs:637
↓ 7 callers
Method
mock_chain_exists
(&mut self)
crates/network/src/cni/iptables.rs:629
↓ 6 callers
Method
add_chain_clear
(&mut self)
crates/network/src/cni/iptables.rs:642
↓ 6 callers
Function
create
()
crates/network/src/lib.rs:109
↓ 6 callers
Method
insert
(&mut self, key: K, value: V)
crates/storage/src/default_key_value_storage.rs:53
↓ 5 callers
Method
add
Add a port mappings for the provided network to the manager.
crates/network/src/cni/port.rs:97
↓ 5 callers
Method
cleanup
(&mut self)
tests/src/common.rs:153
↓ 5 callers
Method
handle_create_container
handle_create_container creates a new container in specified PodSandbox.
crates/services/src/cri/runtime_service/create_container.rs:20
↓ 5 callers
Function
port_manager
( route_get_result: Option<Vec<RouteMessage>>, link_by_index_result: Option<Link>, )
crates/network/src/cni/port.rs:353
↓ 5 callers
Method
rule_insert_unique
Aadd a rule to a chain if it does not already exist. By default the rule is appended, unless `prepend` is true.
crates/network/src/cni/iptables.rs:211
↓ 5 callers
Method
status
Status returns the status of the runtime.
tests/src/criapi/runtime.v1alpha2.rs:2116
↓ 4 callers
Function
add_config
(path: &Path, content: &[u8])
tests/src/integration_tests/network/cni/config.rs:52
↓ 4 callers
Method
chain_ensure
Check whether the provided `chain` exists in the table and create if not.
crates/network/src/cni/iptables.rs:269
↓ 4 callers
Method
chain_exists
Checks if the provided `chain` exists.
crates/network/src/cni/iptables.rs:343
↓ 4 callers
Function
create_request
(config: Option<ContainerConfig>)
crates/services/src/cri/runtime_service/create_container.rs:163
↓ 4 callers
Method
envs
Returns a HashMap for passing them as environment variables to the CNI plugin.
crates/network/src/cni/exec.rs:112
↓ 4 callers
Method
exec
Exec prepares a streaming endpoint to execute a command in the container.
crates/services/src/cri/api/runtime.v1alpha2.rs:1995
↓ 4 callers
Method
remove
Remove a port mapping for the provided id.
crates/network/src/cni/port.rs:237
↓ 4 callers
Method
run
(&self, args: &[Arg])
crates/sandbox/src/pinns.rs:39
↓ 4 callers
Method
setup
(&self, chain: &Chain)
crates/network/src/cni/iptables.rs:65
↓ 4 callers
Function
setup_pinns
()
crates/sandbox/src/pinns.rs:139
↓ 4 callers
Function
test_iptables_std_output
(binary: &Path, id: &str)
tests/src/integration_tests/network/cni/port.rs:117
↓ 3 callers
Method
add_chain_delete
(&mut self)
crates/network/src/cni/iptables.rs:652
↓ 3 callers
Method
add_rule_delete
(&mut self)
crates/network/src/cni/iptables.rs:647
↓ 3 callers
Method
build_linux_seccomp
(&self, name: T)
crates/common/src/seccomp.rs:56
↓ 3 callers
Method
chain_delete
Deletes the specified table/chain. It does not return an errors if the chain does not exist
crates/network/src/cni/iptables.rs:299
↓ 3 callers
Method
chain_teardown
Idempotently delete a chain. It will not error if the chain doesn't exist. It will first delete all references to this chain in the `entry_chains`.
crates/network/src/cni/iptables.rs:175
↓ 3 callers
Function
create_config
(linux: Option<LinuxContainerConfig>)
crates/services/src/cri/runtime_service/create_container.rs:173
↓ 3 callers
Function
create_linux
( security_context: Option<LinuxContainerSecurityContext>, )
crates/services/src/cri/runtime_service/create_container.rs:223
↓ 3 callers
Method
get
(&self, key: K)
crates/storage/src/default_key_value_storage.rs:33
↓ 3 callers
Method
get_routable_host_interface
Tries to determine which interface routes the container's traffic. This is the one on which we disable martian filtering.
crates/network/src/cni/port.rs:277
↓ 3 callers
Method
loopback
Get the loopback link.
crates/network/src/cni/netlink.rs:93
↓ 3 callers
Function
new_list
()
crates/network/src/cni/config.rs:249
↓ 3 callers
Method
persist
(&mut self)
crates/storage/src/memory_key_value_storage.rs:50
↓ 3 callers
Method
remove
Wrapper for the implementations `remove` method
crates/sandbox/src/lib.rs:220
↓ 3 callers
Method
rule_delete
Delete the iptables rule in the specified `chain`. It does not error if the referring chain doesn't exist.
crates/network/src/cni/iptables.rs:247
↓ 3 callers
Method
run
Run OCIRuntime with the provided subcommand and args and return the output if the command execution succeeds. This can still mean that oci_runtime its
crates/container/src/oci_runtime.rs:39
↓ 3 callers
Method
run_pod_sandbox
( &self, request: Request<api::RunPodSandboxRequest>, )
crates/services/src/cri/runtime_service/mod.rs:181
↓ 3 callers
Method
status
Status returns the status of the runtime.
crates/services/src/cri/api/runtime.v1alpha2.rs:2116
↓ 3 callers
Method
unix_domain_listener
Create a new UnixListener from the configs socket path.
crates/services/src/server/mod.rs:92
↓ 3 callers
Function
update_last_error
Update the last error by the provided one.
crates/ffi/src/error.rs:13
↓ 2 callers
Method
build_plugin
Build a CNI plugin for start/stop execution.
crates/network/src/cni/mod.rs:481
↓ 2 callers
Method
chain_clear
Clear the iptables rules in the specified table/chain. If the chain does not exist, a new one will be created.
crates/network/src/cni/iptables.rs:318
↓ 2 callers
Method
chain_setup
Setup the provided `Chain` with respect of whether to use IPv6.
crates/network/src/cni/iptables.rs:135
↓ 2 callers
Method
cmd
Run a command with the provided network namespace path and container ID.
crates/network/src/cni/plugin.rs:117
↓ 2 callers
Method
config_files
Returns all config files in the previously set `config_paths`
crates/network/src/cni/mod.rs:358
↓ 2 callers
Function
create_security_context
()
crates/services/src/cri/runtime_service/create_container.rs:232
↓ 2 callers
Method
del
Delete a network via the plugin.
crates/network/src/cni/plugin.rs:98
↓ 2 callers
Method
exec
Execute the provided process inside the container.
crates/container/src/container/local.rs:73
↓ 2 callers
Method
fill_dnat_rules
Fill the DNAT rules for the chain.
crates/network/src/cni/iptables.rs:430
↓ 2 callers
Method
find_binary
Find the plugin binary in $PATH.
crates/network/src/cni/plugin.rs:39
↓ 2 callers
Method
get_start_stop_data
Retrieve necessary data for network start/stop.
crates/network/src/cni/mod.rs:464
↓ 2 callers
Method
initialize
Initialize the CNI network
crates/network/src/cni/mod.rs:119
↓ 2 callers
Method
initialize_network
Create a new network and initialize it from the internal configuration.
crates/services/src/server/mod.rs:154
↓ 2 callers
Function
new_id
()
tests/src/integration_tests/network/cni/port.rs:111
↓ 2 callers
Function
new_sandbox_data
()
crates/sandbox/src/lib.rs:275
↓ 2 callers
Method
result
(&self)
crates/network/src/cni/plugin.rs:317
↓ 2 callers
Method
rule_exists
Checks if given rulespec in specified if the provided `chain` exists.
crates/network/src/cni/iptables.rs:261
↓ 2 callers
Method
run
Run conmon with the provided args and return the output if the command execution succeeds. This can still mean that conmon itself failed, which can be
crates/container/src/conmon.rs:41
↓ 2 callers
Method
run
Wrapper for the implementations `run` method
crates/sandbox/src/lib.rs:208
↓ 2 callers
Method
run
Run a command and return the output as result.
crates/network/src/cni/exec.rs:34
↓ 2 callers
Method
run
Run a future inside this network namespace
crates/network/src/cni/namespace.rs:46
↓ 2 callers
Method
run_pod_sandbox
RunPodSandbox creates and starts a pod-level sandbox. Runtimes must ensure the sandbox is in the ready state on success.
tests/src/criapi/runtime.v1alpha2.rs:1689
↓ 2 callers
Method
run_with_stdin
Run a command with standard input and return the output as result.
crates/network/src/cni/exec.rs:48
↓ 2 callers
Method
set_ipv6
(&mut self, value: bool)
crates/network/src/cni/iptables.rs:73
↓ 2 callers
Function
to_string
()
crates/common/src/capability.rs:347
↓ 2 callers
Method
validate
Verifies that a given plugin `name` is supported by the provided `version`.
crates/network/src/cni/config.rs:53
↓ 2 callers
Method
version
Version returns the runtime name, runtime version, and runtime API version.
tests/src/criapi/runtime.v1alpha2.rs:1668
↓ 2 callers
Method
version
Create a version request for the plugin.
crates/network/src/cni/plugin.rs:61
↓ 1 callers
Method
add
Add a network via the plugin.
crates/network/src/cni/plugin.rs:79
↓ 1 callers
Function
all
()
crates/common/src/capability.rs:389
↓ 1 callers
Method
attach
Attach prepares a streaming endpoint to attach to a running container.
tests/src/criapi/runtime.v1alpha2.rs:2015
↓ 1 callers
Method
attach
Attach prepares a streaming endpoint to attach to a running container.
crates/services/src/cri/api/runtime.v1alpha2.rs:2015
↓ 1 callers
Method
build_cmd
(&self)
crates/container/src/oci_runtime.rs:114
↓ 1 callers
Method
capability_to_syscalls
Returns a list of syscalls for a provided capability name.
crates/common/src/seccomp.rs:202
↓ 1 callers
Method
chain_flush
Clear the iptables rules in the specified table/chain. If the chain does not exist, a new one will be created.
crates/network/src/cni/iptables.rs:331
next →
1–100 of 506, ranked by callers