Documentation ¶
Overview ¶
Package imaging contains code for exporting policies for images and videos
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // RemoveSymbols is a regexp used to remove special characters from policy json file names. RemoveSymbols = regexp.MustCompile(`[^\w]`) // ErrFetchingPolicySet is returned when fetching policy set fails ErrFetchingPolicySet = errors.New("unable to fetch policy set with given name") // ErrFetchingPolicy is returned when fetching policy set fails ErrFetchingPolicy = errors.New("unable to fetch policy with given name") // ErrCreateDir is returned when error occurred creating directory ErrCreateDir = errors.New("cannot create directory") )
Functions ¶
func CmdCreateImaging ¶
func CmdCreateImaging(c *cli.Context) error
CmdCreateImaging is an entrypoint to create-imaging command
Types ¶
type TFImagingData ¶
type TFImagingData struct { PolicySet TFPolicySet Policies []TFPolicy Section string }
TFImagingData represents the data used in imaging templates
Click to show internal directories.
Click to hide internal directories.