Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToJSON ¶
func ToJSON(info *collectors.SystemInfo, pretty bool) (string, error)
ToJSON exports system info as JSON
func ToText ¶
func ToText(info *collectors.SystemInfo) string
ToText exports system info as plain text
func ToYAML ¶
func ToYAML(info *collectors.SystemInfo) (string, error)
ToYAML exports system info as YAML
Types ¶
type ImageExporter ¶
type ImageExporter struct {
// contains filtered or unexported fields
}
ImageExporter handles exporting system info as images
func NewImageExporter ¶
func NewImageExporter(info *collectors.SystemInfo, cfg *config.Config) (*ImageExporter, error)
NewImageExporter creates a new image exporter
func (*ImageExporter) ToHTML ¶
func (e *ImageExporter) ToHTML(outputPath string) error
ToHTML exports system info as an HTML file
func (*ImageExporter) ToPNG ¶
func (e *ImageExporter) ToPNG(outputPath string) error
ToPNG exports system info as a PNG image
func (*ImageExporter) ToSVG ¶
func (e *ImageExporter) ToSVG(outputPath string) error
ToSVG exports system info as an SVG image
Click to show internal directories.
Click to hide internal directories.