securitycontext

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	ModifyContainerConfig(pod *v1.Pod, config *container.Config)
	ModifyHostConfig(pod *v1.Pod, hostConfig *container.HostConfig)
}

Provider is interface for security context modification

func NewSimpleSecurityContextProvider

func NewSimpleSecurityContextProvider() Provider

NewSimpleSecurityContextProvider initialises and returns security context provider

type SimpleSecurityContextProvider

type SimpleSecurityContextProvider struct{}

SimpleSecurityContextProvider is object ot define security context provider

func (SimpleSecurityContextProvider) ModifyContainerConfig

func (s SimpleSecurityContextProvider) ModifyContainerConfig(pod *v1.Pod, config *container.Config)

ModifyContainerConfig changes security context of container

func (SimpleSecurityContextProvider) ModifyHostConfig

func (s SimpleSecurityContextProvider) ModifyHostConfig(pod *v1.Pod, hostConfig *container.HostConfig)

ModifyHostConfig modifies security context of host

Jump to

Keyboard shortcuts

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