Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ScanOptions = []string{"openscap"}
)
Functions ¶
This section is empty.
Types ¶
type ImageInspectorOptions ¶
type ImageInspectorOptions struct { // URI contains the location of the docker daemon socket to connect to. URI string // Image contains the docker image to inspect. Image string // DstPath is the destination path for image files. DstPath string // Serve holds the host and port for where to serve the image with webdav. Serve string // Chroot controls whether or not a chroot is excuted when serving the image with webdav. Chroot bool // DockerCfg is the location of the docker config file. DockerCfg MultiStringVar // Username is the username for authenticating to the docker registry. Username string // PasswordFile is the location of the file containing the password for authentication to the // docker registry. PasswordFile string // ScanType is the type of the scan to be done on the inspected image ScanType string // ScanResultsDir is the directory that will contain the results of the scan ScanResultsDir string }
ImageInspectorOptions is the main inspector implementation and holds the configuration for an image inspector.
func NewDefaultImageInspectorOptions ¶
func NewDefaultImageInspectorOptions() *ImageInspectorOptions
NewDefaultImageInspectorOptions provides a new ImageInspectorOptions with default values.
func (*ImageInspectorOptions) Validate ¶
func (i *ImageInspectorOptions) Validate() error
Validate performs validation on the field settings.
type MultiStringVar ¶
type MultiStringVar struct {
Values []string
}
MultiStringVar is implementing flag.Value
func (*MultiStringVar) Set ¶
func (sv *MultiStringVar) Set(s string) error
func (*MultiStringVar) String ¶
func (sv *MultiStringVar) String() string
Click to show internal directories.
Click to hide internal directories.