rebuildexec

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APP           = "glasswallCLI"
	CONFIGINI     = "config.ini"
	XMLCONFIG     = "config.xml"
	INPUT         = "/tmp/glrebuild"
	MANAGED       = "Managed"
	NONCONFORMING = "NonConforming"
	INPUTKEY      = "inputLocation"
	OUTPUTKEY     = "outputLocation"
	SECTION       = "GWConfig"
	REBUILDINPUT  = "input"
	REBUILDOUTPUT = "output"
	FILETYPEKEY   = "fileType"
)

Variables

This section is empty.

Functions

func CliExitStatus added in v0.3.0

func CliExitStatus(errCode int) string

func GetSdkVersion added in v0.3.0

func GetSdkVersion() string

func GetVersion added in v0.3.0

func GetVersion() string

func Gwoutcome added in v0.3.0

func Gwoutcome(status string) string

func RandStringRunes added in v0.2.1

func RandStringRunes(n int) string

Types

type GwRebuild

type GwRebuild struct {
	File     []byte
	FileId   string
	FileName string
	FileType string

	RebuiltFile []byte
	ReportFile  []byte
	LogFile     []byte
	GwLogFile   []byte
	Metadata    []byte
	// contains filtered or unexported fields
}

func New

func New(file []byte, fileId, fileType, randDir string) GwRebuild

func (*GwRebuild) Clean added in v0.2.1

func (r *GwRebuild) Clean() error

func (*GwRebuild) FileProcessed

func (r *GwRebuild) FileProcessed()

func (*GwRebuild) GwFileLog added in v0.3.0

func (r *GwRebuild) GwFileLog() ([]byte, error)

func (*GwRebuild) GwparseLog added in v0.3.0

func (r *GwRebuild) GwparseLog(b []byte)

func (GwRebuild) PrintStatus added in v0.3.0

func (r GwRebuild) PrintStatus() string

func (*GwRebuild) Rebuild

func (r *GwRebuild) Rebuild() error

func (*GwRebuild) RebuildStatus added in v0.3.0

func (r *GwRebuild) RebuildStatus()

Jump to

Keyboard shortcuts

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