Documentation
¶
Index ¶
- Constants
- func GetScript(c *k8s.Client, options ScriptOptions, httpIP string, isNonK8sEnv bool) error
- func LabelHandling(t string, o LabelOptions, address string, isKvmsEnv bool) error
- func List(address string) error
- func Onboarding(eventType string, path string, address string) error
- func PolicyHandling(t string, path string, o PolicyOptions, httpAddress string, isKvmsEnv bool) error
- type KubeArmorVirtualMachineLabel
- type LabelOptions
- type NetworkPolicyRequest
- type PolicyOptions
- type ScriptOptions
Constants ¶
View Source
const ( // KubeArmorHostPolicy is the Kind used for KubeArmor host policies KubeArmorHostPolicy = "KubeArmorHostPolicy" // CiliumNetworkPolicy is the Kind used for Cilium network policies CiliumNetworkPolicy = "CiliumNetworkPolicy" // CiliumClusterwideNetworkPolicy is the Kind used for Cilium network policies CiliumClusterwideNetworkPolicy = "CiliumClusterwideNetworkPolicy" )
Variables ¶
This section is empty.
Functions ¶
func LabelHandling ¶ added in v0.6.4
func LabelHandling(t string, o LabelOptions, address string, isKvmsEnv bool) error
LabelHandling Function recives path to YAML file with the type of event and HTTP Server
func Onboarding ¶ added in v0.6.4
Onboarding - onboards a vm
func PolicyHandling ¶
func PolicyHandling(t string, path string, o PolicyOptions, httpAddress string, isKvmsEnv bool) error
PolicyHandling Function recives path to YAML file with the type of event and emits an Host Policy Event to KubeArmor gRPC/HTTP Server
Types ¶
type KubeArmorVirtualMachineLabel ¶ added in v0.6.4
type KubeArmorVirtualMachineLabel struct { Type string `json:"type"` Name string `json:"name"` Labels []map[string]string `json:"labels,omitempty"` }
KubeArmorVirtualMachineLabel - Label struct for KVMS control plane
type LabelOptions ¶ added in v0.6.4
LabelOptions are optional configuration for kArmor vm policy
type NetworkPolicyRequest ¶ added in v0.6.4
type NetworkPolicyRequest struct { Type string `json:"type"` Object v2.CiliumNetworkPolicy `json:"object"` }
NetworkPolicyRequest is the request type used for sending the Cilium network policy to KVM service
type PolicyOptions ¶
type PolicyOptions struct {
GRPC string
}
PolicyOptions are optional configuration for kArmor vm policy
type ScriptOptions ¶
ScriptOptions for karmor vm getscript
Click to show internal directories.
Click to hide internal directories.