Documentation ¶
Index ¶
- type Generator
- func (pg *Generator) FromPodObjString(podObjString string) (string, error)
- func (pg *Generator) GeneratePSP(cssList []types.ContainerSecuritySpec, pssList []types.PodSecuritySpec, ...) *v1beta1.PodSecurityPolicy
- func (pg *Generator) GetSecuritySpecFromPodSpec(metadata types.Metadata, namespace string, spec v1.PodSpec, ...) ([]types.ContainerSecuritySpec, types.PodSecuritySpec)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct { }
func NewGenerator ¶
func (*Generator) FromPodObjString ¶
func (*Generator) GeneratePSP ¶
func (pg *Generator) GeneratePSP( cssList []types.ContainerSecuritySpec, pssList []types.PodSecuritySpec, namespace string, serverGitVersion string) *v1beta1.PodSecurityPolicy
GeneratePSP generate Pod Security Policy
func (*Generator) GetSecuritySpecFromPodSpec ¶
func (pg *Generator) GetSecuritySpecFromPodSpec(metadata types.Metadata, namespace string, spec v1.PodSpec, sa *v1.ServiceAccount) ([]types.ContainerSecuritySpec, types.PodSecuritySpec)
Click to show internal directories.
Click to hide internal directories.