MCPcopy Create free account
hub / github.com/containerd/nerdctl / ApparmorProfiles

Function ApparmorProfiles

cmd/nerdctl/completion/completion_linux.go:27–37  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

25)
26
27func ApparmorProfiles(cmd *cobra.Command) ([]string, cobra.ShellCompDirective) {
28 profiles, err := apparmorutil.Profiles()
29 if err != nil {
30 return nil, cobra.ShellCompDirectiveError
31 }
32 var names []string // nolint: prealloc
33 for _, f := range profiles {
34 names = append(names, f.Name)
35 }
36 return names, cobra.ShellCompDirectiveNoFileComp
37}
38
39func CgroupManagerNames(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
40 candidates := []string{"cgroupfs"}

Callers 1

unloadShellCompleteFunction · 0.92

Calls 1

ProfilesFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…