Documentation ¶
Index ¶
- type Generator
- func (pg *Generator) FromPodObjString(podObjString string) (string, error)
- func (pg *Generator) GeneratePSP(cssList []types.ContainerSecuritySpec, pssList []types.PodSecuritySpec, ...) *policyv1beta1.PodSecurityPolicy
- func (pg *Generator) GeneratePSPFormYamls(yamls []string) (*policyv1beta1.PodSecurityPolicy, error)
- func (pg *Generator) GeneratePSPWithName(cssList []types.ContainerSecuritySpec, pssList []types.PodSecuritySpec, ...) *policyv1beta1.PodSecurityPolicy
- func (pg *Generator) GetSecuritySpecFromPodSpec(metadata types.Metadata, namespace string, spec corev1.PodSpec, ...) ([]types.ContainerSecuritySpec, types.PodSecuritySpec)
- func (pg *Generator) LoadYaml(yamlFile string) ([]types.ContainerSecuritySpec, []types.PodSecuritySpec, error)
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, serverGitVersion string) *policyv1beta1.PodSecurityPolicy
func (*Generator) GeneratePSPFormYamls ¶ added in v1.6.0
func (pg *Generator) GeneratePSPFormYamls(yamls []string) (*policyv1beta1.PodSecurityPolicy, error)
func (*Generator) GeneratePSPWithName ¶ added in v1.2.0
func (pg *Generator) GeneratePSPWithName( cssList []types.ContainerSecuritySpec, pssList []types.PodSecuritySpec, namespace, serverGitVersion, pspName string) *policyv1beta1.PodSecurityPolicy
GeneratePSP generate Pod Security Policy
func (*Generator) GetSecuritySpecFromPodSpec ¶
func (pg *Generator) GetSecuritySpecFromPodSpec(metadata types.Metadata, namespace string, spec corev1.PodSpec, sa *corev1.ServiceAccount) ([]types.ContainerSecuritySpec, types.PodSecuritySpec)
func (*Generator) LoadYaml ¶ added in v1.7.0
func (pg *Generator) LoadYaml(yamlFile string) ([]types.ContainerSecuritySpec, []types.PodSecuritySpec, error)
Click to show internal directories.
Click to hide internal directories.