rebuildexec

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: Apache-2.0 Imports: 21 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 DiffZipOffic added in v0.3.8

func DiffZipOffic(file []byte) (string, error)

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 MetaContentType added in v0.5.0

func MetaContentType(b []byte) string

func RandStringRunes added in v0.2.1

func RandStringRunes(n int) string

Types

type Config added in v0.4.1

type Config struct {
	XMLName   xml.Name `xml:"config"`
	Text      string   `xml:",chardata"`
	PdfConfig struct {
		Text               string `xml:",chardata"`
		Watermark          string `xml:"watermark"`
		Acroform           string `xml:"acroform"`
		Metadata           string `xml:"metadata"`
		Javascript         string `xml:"javascript"`
		ActionsAll         string `xml:"actions_all"`
		EmbeddedFiles      string `xml:"embedded_files"`
		InternalHyperlinks string `xml:"internal_hyperlinks"`
		ExternalHyperlinks string `xml:"external_hyperlinks"`
	} `xml:"pdfConfig"`
	WordConfig struct {
		Text               string `xml:",chardata"`
		Macros             string `xml:"macros"`
		Metadata           string `xml:"metadata"`
		EmbeddedFiles      string `xml:"embedded_files"`
		ReviewComments     string `xml:"review_comments"`
		InternalHyperlinks string `xml:"internal_hyperlinks"`
		ExternalHyperlinks string `xml:"external_hyperlinks"`
	} `xml:"wordConfig"`
	PptConfig struct {
		Text               string `xml:",chardata"`
		Macros             string `xml:"macros"`
		Metadata           string `xml:"metadata"`
		EmbeddedFiles      string `xml:"embedded_files"`
		ReviewComments     string `xml:"review_comments"`
		InternalHyperlinks string `xml:"internal_hyperlinks"`
		ExternalHyperlinks string `xml:"external_hyperlinks"`
	} `xml:"pptConfig"`
	XlsConfig struct {
		Text               string `xml:",chardata"`
		Macros             string `xml:"macros"`
		Metadata           string `xml:"metadata"`
		EmbeddedFiles      string `xml:"embedded_files"`
		ReviewComments     string `xml:"review_comments"`
		InternalHyperlinks string `xml:"internal_hyperlinks"`
		ExternalHyperlinks string `xml:"external_hyperlinks"`
	} `xml:"xlsConfig"`
}

type ContentManagementFlags added in v0.4.1

type ContentManagementFlags struct {
	PdfContentManagement        Pdfcontentmanagement        `json:"PdfContentManagement" xml:"pdfConfig"`
	WordContentManagement       Wordcontentmanagement       `json:"WordContentManagement" xml:"wordConfig"`
	PowerPointContentManagement Powerpointcontentmanagement `json:"PowerPointContentManagement" xml:"pptConfig"`
	ExcelContentManagement      Excelcontentmanagement      `json:"ExcelContentManagement" xml:"xlsConfig"`
}

type Excelcontentmanagement added in v0.4.1

type Excelcontentmanagement struct {
	Metadata            json.Number `json:"Metadata" xml:"metadata"`
	InternalHyperlinks  json.Number `json:"InternalHyperlinks" xml:"internal_hyperlinks"`
	ExternalHyperlinks  json.Number `json:"ExternalHyperlinks" xml:"external_hyperlinks"`
	EmbeddedFiles       json.Number `json:"EmbeddedFiles" xml:"embedded_files"`
	EmbeddedImages      json.Number `json:"EmbeddedImages" xml:"embedded_images"`
	Dynamicdataexchange json.Number `json:"DynamicDataExchange" xml:"dynamic_data_exchange"`
	Macros              json.Number `json:"Macros" xml:"macros"`
	Reviewcomments      json.Number `json:"ReviewComments" xml:"review_comments"`
}

type GwRebuild

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

	RebuiltFile []byte
	ReportFile  []byte
	LogFile     []byte
	GwLogFile   []byte
	Metadata    []byte
	Tracectx    context.Context
	Trace       bool
	// contains filtered or unexported fields
}

func New

func New(file, cmp []byte, fileId, fileType, randDir string, JeagerStatus bool, ctx context.Context) 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()

type Pdfcontentmanagement added in v0.4.1

type Pdfcontentmanagement struct {
	Watermark                    string      `json:"Watermark" xml:"watermark"`
	Metadata                     json.Number `json:"Metadata" xml:"metadata"`
	InternalHyperlinks           json.Number `json:"InternalHyperlinks" xml:"internal_hyperlinks"`
	ExternalHyperlinks           json.Number `json:"ExternalHyperlinks" xml:"external_hyperlinks"`
	EmbeddedFiles                json.Number `json:"EmbeddedFiles" xml:"embedded_files"`
	EmbeddedImages               json.Number `json:"EmbeddedImages" xml:"embedded_images"`
	Javascript                   json.Number `json:"Javascript" xml:"javascript"`
	Acroform                     json.Number `json:"Acroform" xml:"acroform"`
	ActionsAll                   json.Number `json:"ActionsAll" xml:"actions_all"`
	DigitalSignatures            json.Number `json:"DigitalSignatures" xml:"digital_signatures"`
	ValueOutsideReasonableLimits json.Number `json:"ValueOutsideReasonableLimits" xml:"value_outside_reasonable_limits"`
}

type Powerpointcontentmanagement added in v0.4.1

type Powerpointcontentmanagement struct {
	Metadata           json.Number `json:"Metadata" xml:"metadata"`
	InternalHyperlinks json.Number `json:"InternalHyperlinks" xml:"internal_hyperlinks"`
	ExternalHyperlinks json.Number `json:"ExternalHyperlinks" xml:"external_hyperlinks"`
	EmbeddedFiles      json.Number `json:"EmbeddedFiles" xml:"embedded_files"`
	EmbeddedImages     json.Number `json:"EmbeddedImages" xml:"embedded_images"`
	Macros             json.Number `json:"Macros" xml:"macros"`
	Reviewcomments     json.Number `json:"ReviewComments" xml:"review_comments"`
}

type Wordcontentmanagement added in v0.4.1

type Wordcontentmanagement struct {
	Metadata            json.Number `json:"Metadata" xml:"metadata"`
	InternalHyperlinks  json.Number `json:"InternalHyperlinks" xml:"internal_hyperlinks"`
	ExternalHyperlinks  json.Number `json:"ExternalHyperlinks" xml:"external_hyperlinks"`
	EmbeddedFiles       json.Number `json:"EmbeddedFiles" xml:"embedded_files"`
	EmbeddedImages      json.Number `json:"EmbeddedImages" xml:"embedded_images"`
	Dynamicdataexchange json.Number `json:"DynamicDataExchange" xml:"dynamic_data_exchange"`
	Macros              json.Number `json:"Macros" xml:"macros"`
	Reviewcomments      json.Number `json:"ReviewComments" xml:"review_comments"`
}

type XmlConfig added in v0.4.1

type XmlConfig struct {
	XMLName                     xml.Name                    `xml:"config"`
	PdfContentManagement        Pdfcontentmanagement        `xml:"pdfConfig"`
	WordContentManagement       Wordcontentmanagement       `xml:"wordConfig"`
	PowerPointContentManagement Powerpointcontentmanagement `xml:"pptConfig"`
	ExcelContentManagement      Excelcontentmanagement      `xml:"xlsConfig"`
}

Jump to

Keyboard shortcuts

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