Documentation ¶
Index ¶
- Constants
- func Example(key string) string
- func GetPrinter(config OutputConfig, quiet bool) output.Printer
- func IsSupported(key string) bool
- func ShouldPrint(outputs []OutputConfig, quiet bool) bool
- func SupportedOutputsExample() []string
- type Console
- type HTML
- type HTMLTemplateParams
- type JSON
- type Output
- type OutputConfig
- type Plan
Constants ¶
View Source
const ConsoleOutputExample = "console://"
View Source
const ConsoleOutputType = "console"
View Source
const FormatVersion = "0.1"
View Source
const HTMLOutputExample = "html://PATH/TO/FILE.html"
View Source
const HTMLOutputType = "html"
View Source
const JSONOutputExample = "json://PATH/TO/FILE.json"
View Source
const JSONOutputType = "json"
View Source
const PlanOutputExample = "plan://PATH/TO/FILE.json"
View Source
const PlanOutputType = "plan"
Variables ¶
This section is empty.
Functions ¶
func GetPrinter ¶
func GetPrinter(config OutputConfig, quiet bool) output.Printer
func IsSupported ¶
func ShouldPrint ¶
func ShouldPrint(outputs []OutputConfig, quiet bool) bool
ShouldPrint indicate if we should use the global output or not (e.g. when outputting to stdout).
func SupportedOutputsExample ¶
func SupportedOutputsExample() []string
Types ¶
type Console ¶
type Console struct {
// contains filtered or unexported fields
}
func NewConsole ¶
func NewConsole() *Console
type HTMLTemplateParams ¶
type HTMLTemplateParams struct { IsSync bool ScanDate string Coverage int Summary analyser.Summary Unmanaged []*resource.Resource Differences []analyser.Difference Deleted []*resource.Resource Alerts alerter.Alerts Stylesheet template.CSS ScanDuration string ProviderName string ProviderVersion string LogoSvg template.HTML FaviconBase64 string }
type OutputConfig ¶
func (*OutputConfig) String ¶
func (o *OutputConfig) String() string
Click to show internal directories.
Click to hide internal directories.