Documentation
¶
Index ¶
Constants ¶
View Source
const ( OutputModePretty = "pretty" OutputModeJSON = "json" OutputModeWide = "wide" OutputModePEM = "pem" )
Variables ¶
This section is empty.
Functions ¶
func MustSingleImageArgs ¶
Types ¶
type Image ¶
type Image struct {
// Platform specifies the platform in the form
// os/arch[/variant][:osversion] (e.g. linux/amd64)
Platform string `json:"platform"`
}
Image contains options for interacting with images
func RegisterImage ¶
RegistryImage registers image options with cobra
type Output ¶
type Output struct {
// Mode is the output format of the command. Defaults to "pretty".
Mode string `json:"format"`
}
Output are options for configuring command outputs.
func RegisterOutputs ¶
type Validation ¶
type Validation struct {
// Config is the filepath location to the validation configuration.
Config string `json:"config"`
// Quiet suppresses non-zero exit codes on validation failures.
Quiet bool `json:"quiet"`
// Permissive allows any certificate that is not otherwise forbidden. This
// overrides the config's allow list.
Permissive bool `json:"permissive"`
}
Validation are options for configuring validation command.
func RegisterValidation ¶
func RegisterValidation(cmd *cobra.Command) *Validation
Click to show internal directories.
Click to hide internal directories.