mpr

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(slice []string, str string) bool

func Export

func Export(MPRFilePath string, outputDirectory string) error

func ExportMetadata

func ExportMetadata(MPRFilePath string, outputDirectory string) error

func SetLogger added in v1.1.0

func SetLogger(logger *logrus.Logger)

SetLogger allows the main application to set the logger, including its configuration.

Types

type MxDocument

type MxDocument struct {
	Name       string                 `yaml:"Name"`
	Type       string                 `yaml:"Type"`
	Path       string                 `yaml:"Path"`
	Attributes map[string]interface{} `yaml:"Attributes"`
}

type MxFolder

type MxFolder struct {
	Name       string                 `yaml:"Name"`
	ID         string                 `yaml:"ID"`
	ParentID   string                 `yaml:"ParentID"`
	Parent     *MxFolder              `yaml:"Parent"`
	Attributes map[string]interface{} `yaml:"Attributes"`
}

type MxMetadata

type MxMetadata struct {
	ProductVersion string `yaml:"ProductVersion"`
	BuildVersion   string `yaml:"BuildVersion"`
}

type MxModule

type MxModule struct {
	Name       string                 `yaml:"Name"`
	ID         string                 `yaml:"ID"`
	Attributes map[string]interface{} `yaml:"Attributes"`
}

type MxUnit

type MxUnit struct {
	UnitID          string                 `yaml:"UnitID"`
	ContainerID     string                 `yaml:"ContainerID"`
	ContainmentName string                 `yaml:"ContainmentName"`
	Contents        map[string]interface{} `yaml:"Contents"`
}

Jump to

Keyboard shortcuts

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