Documentation
¶
Index ¶
- Constants
- func GenerateArmorProfileName(ns string, name string, clusterScope bool) string
- func GenerateProfile(policy varmor.Policy, name string, namespace string, ...) (*varmor.Profile, error)
- func NewArmorProfile(obj interface{}, varmorInterface varmorinterface.CrdV1beta1Interface, ...) (*varmor.ArmorProfile, 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 NewArmorProfile ¶
func NewArmorProfile( obj interface{}, varmorInterface varmorinterface.CrdV1beta1Interface, clusterScope bool, logger logr.Logger) (*varmor.ArmorProfile, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.