Documentation
¶
Overview ¶
Package profile generates the AppArmor/Seccomp/BPF profiles for policies
Index ¶
- Constants
- func GenerateArmorProfileName(ns string, name string, clusterScope bool) string
- func GenerateProfile(kubeClient *kubernetes.Clientset, ...) (*varmor.Profile, *varmortypes.EgressInfo, error)
- func NewArmorProfile(kubeClient *kubernetes.Clientset, ...) (*varmor.ArmorProfile, *varmortypes.EgressInfo, error)
Constants ¶
View Source
const ( ClusterProfileNameTemplate = "varmor-cluster-%s-%s" ProfileNameTemplate = "varmor-%s-%s" )
profileNameTemplate is the name template for ArmorProfile/ArmorProfileModel objects and AppArmor/Seccomp/BPF profiles.
For namespace-scope profile, its format is "varmor-{VarmorProfile Namespace}-{VarmorProfile Name}"
For cluster-scope profile, its format is "varmor-cluster-{vArmor Namespace}-{VarmorClusterProfile Name}"
Variables ¶
This section is empty.
Functions ¶
func GenerateProfile ¶
func GenerateProfile( kubeClient *kubernetes.Clientset, varmorInterface varmorinterface.CrdV1beta1Interface, policy varmor.Policy, name string, namespace string, complete bool, enablePodServiceEgressControl bool, logger logr.Logger) (*varmor.Profile, *varmortypes.EgressInfo, error)
func NewArmorProfile ¶
func NewArmorProfile( kubeClient *kubernetes.Clientset, varmorInterface varmorinterface.CrdV1beta1Interface, obj interface{}, clusterScope bool, enablePodServiceEgressControl bool, logger logr.Logger) (*varmor.ArmorProfile, *varmortypes.EgressInfo, error)
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package apparmor generates the AppArmor profile
|
Package apparmor generates the AppArmor profile |
|
Package bpf generates the BPF profile
|
Package bpf generates the BPF profile |
|
Package seccomp generates the Seccomp profile
|
Package seccomp generates the Seccomp profile |
Click to show internal directories.
Click to hide internal directories.