Documentation
¶
Index ¶
- func ConvertAnyToAny(values ...interface{})
- func ConvertMapToJson(mapIn interface{}) (string, error)
- func ConvertStructToMap(structIn interface{}) (mapOut map[string]interface{}, err error)
- func FindVerifyConfigFileAbsPath(logger *log.MiniLogger, filename string) (absFilename string, err error)
- func IsValidJsonMap(test string) bool
- func IsValidJsonRaw(test []byte) bool
- type CommandFlags
- type CustomValidationFlags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertAnyToAny ¶
func ConvertAnyToAny(values ...interface{})
TODO: function NOT complete, only placeholder type switch
func ConvertMapToJson ¶
NOTE: simple wrapper method on json package to standardize parms
func ConvertStructToMap ¶
func FindVerifyConfigFileAbsPath ¶
func FindVerifyConfigFileAbsPath(logger *log.MiniLogger, filename string) (absFilename string, err error)
func IsValidJsonMap ¶
func IsValidJsonRaw ¶
Types ¶
type CommandFlags ¶
type CommandFlags struct { // Not flags, but "main" package var copies Project string Binary string Version string WorkingDir string ExecDir string // Configurations ConfigSchemaFile string ConfigCustomValidationFile string ConfigLicensePolicyFile string // persistent flags (common to all commands) Quiet bool // suppresses all non-essential (informational) output from a command. Overrides any other log-level commands. Trace bool // trace logging Debug bool // debug logging InputFile string OutputFile string OutputSbomFormat string // Validate (local) flags ForcedJsonSchemaFile string Variant string ValidateProperties bool CustomValidation bool CustomValidationOptions CustomValidationFlags // Summary formats (i.e., only valid for summary) // NOTE: "query" and "list" (raw) commands always returns JSON by default OutputFormat string // e.g., TXT (default), CSV, markdown (normalized to lowercase) // Log indent LogOutputIndentCallstack bool }
var GlobalFlags CommandFlags
Globals
func (*CommandFlags) String ¶
func (flags *CommandFlags) String() string
format and output the MyFlags struct as a string using Go's Stringer interface
type CustomValidationFlags ¶
Click to show internal directories.
Click to hide internal directories.