profile

package
v0.7.0-alpha1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 GenerateArmorProfileName

func GenerateArmorProfileName(ns string, name string, clusterScope bool) string

func GenerateProfile

func GenerateProfile(
	policy varmor.Policy,
	name string, namespace string,
	varmorInterface varmorinterface.CrdV1beta1Interface,
	complete bool,
	logger logr.Logger) (*varmor.Profile, error)

func NewArmorProfile

func NewArmorProfile(
	obj interface{},
	varmorInterface varmorinterface.CrdV1beta1Interface,
	clusterScope bool,
	logger logr.Logger) (*varmor.ArmorProfile, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL