export

package
v1.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2019 License: CC0-1.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FormatUnset = ciota("")
	FormatJSON  = ciota("json")
	FormatYAML  = ciota("yaml")
)

create the enumerations

Functions

func Export

func Export(config Config) []error

Export loads the inventory and writes output to destinaation

func NewCmdExport

func NewCmdExport(out io.Writer) *cobra.Command

NewCmdExport exports to consolidated output

func RunExport

func RunExport(out io.Writer, cmd *cobra.Command, args []string) error

RunExport runs export when specified in cli

Types

type Config

type Config struct {
	// remainder are configuration settings local to Export
	Certification   string
	OpencontrolDir  string
	DestinationFile string
	OutputFormat    OutputFormat
	Flatten         bool
	InferKeys       bool
	Docxtemplater   bool
	KeySeparator    string
}

Config contains settings for this object

type OutputFormat

type OutputFormat int

OutputFormat is the format to use for output file

func ToOutputFormat

func ToOutputFormat(s string) (OutputFormat, error)

ToOutputFormat converts a string to an OutputFormat enum

func (OutputFormat) String

func (f OutputFormat) String() string

Convert OutputFormat to string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL