MCPcopy Index your code
hub / github.com/containers/common

github.com/containers/common @v1.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.1 ↗ · + Follow
1,273 symbols 4,446 edges 209 files 778 documented · 61% 9 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

containers/common

Location for shared common files and common go code to manage those files in github.com/containers repos.

The common files to one or more projects in the containers group will be kept in this repository.

It will be up to the individual projects to include the files from this repository.

seccomp

The seccomp package in pkg/seccomp is a set of Go libraries used by container runtimes to generate and load seccomp mappings into the kernel.

seccomp (short for secure computing mode) is a BPF based syscall filter language and present a more conventional function-call based filtering interface that should be familiar to, and easily adopted by, application developers.

Building the seccomp.json file

The make target make seccomp.json generates the seccomp.json file, which contains the allowed list of syscalls that can be used by container runtime engines like CRI-O, Buildah, Podman and Docker, and container runtimes like OCI Runc to control the syscalls available to containers.

Supported build tags

Contributing

When developing this library, please use make (or make … BUILDTAGS=…) to take advantage of the tests and validation.

Contact

Extension points exported contracts — how you extend this code

SecretsDriver (Interface)
SecretsDriver interfaces with the secrets data store. The driver stores the actual bytes of secret data, as opposed to t [6 …
pkg/secrets/secrets.go
ConfigMapsDriver (Interface)
ConfigMapsDriver interfaces with the configMaps data store. The driver stores the actual bytes of configMap data, as opp [6 …
pkg/configmaps/configmaps.go
Writer (Interface)
Writer interface for outputs [5 implementers]
pkg/formats/formats.go
Flusher (Interface)
Flusher is the interface that wraps the Flush method. [3 implementers]
pkg/report/formatter.go
NetUtil (Interface)
This is a helper package to allow code sharing between the different network interfaces. NetUtil is a helper interface w [2 …
libnetwork/internal/util/interface.go
ContainerNetwork (Interface)
(no doc) [2 implementers]
libnetwork/types/network.go
RemoveContainerFunc (FuncType)
RemoveContainerFunc allows for customizing the removal of containers using an image specified by imageID.
libimage/image.go
LookupReferenceFunc (FuncType)
LookupReferenceFunc return an image reference based on the specified one. This can be used to pass custom blob caches to
libimage/copier.go

Core symbols most depended-on inside this repo

String
called by 225
libnetwork/types/network.go
NetworkCreate
called by 135
libnetwork/types/network.go
Error
called by 133
libnetwork/netavark/ipam.go
ID
called by 80
libimage/image.go
Close
called by 73
pkg/supplemented/supplemented.go
Stat
called by 58
pkg/cgroups/cgroups.go
Len
called by 47
libnetwork/internal/util/interface.go
Validate
called by 40
pkg/config/config.go

Shape

Function 620
Method 466
Struct 156
TypeAlias 15
Interface 11
FuncType 5

Languages

Go100%

Modules by API surface

pkg/manifests/manifests.go53 symbols
libimage/image.go48 symbols
pkg/cgroups/cgroups.go41 symbols
pkg/config/config.go40 symbols
libnetwork/types/network.go30 symbols
pkg/config/default.go29 symbols
pkg/flag/flag.go26 symbols
pkg/apparmor/internal/supported/supportedfakes/fake_verifier_impl.go25 symbols
libimage/runtime.go24 symbols
libnetwork/cni/cni_types.go23 symbols
libimage/manifest_list.go18 symbols
libimage/filters.go18 symbols

For agents

$ claude mcp add common \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact