Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIntersection ¶
CheckIntersection compares the items between 2 slices and check if there is a match
func CheckPermissions ¶
func CheckPermissions(data ContainerOpts) bool
CheckPermissions checks if container creation instructions pass all restrictions
func ExecuteCommand ¶
ExecuteCommand executes a command locally (used by the CLI version of the program)
func ProcessAPICreateRequest ¶
func ProcessAPICreateRequest(data ContainerOpts) bool
ProcessAPICreateRequest checks if the data pass all the restrictions
Types ¶
type ContainerOpts ¶
type ContainerOpts struct {
Mounts []string
Ports []string
Env []string
SecurityPolicies []string
Image string
Entrypoint string
User string
Privileged bool
}
func AddGeneralRestrictions ¶
func AddGeneralRestrictions(data ContainerOpts) ContainerOpts
AddGeneralRestrictions adds the restrictions from config to the already container creation instructions
Click to show internal directories.
Click to hide internal directories.