types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvironmentData

type EnvironmentData struct {
	StackmatchVersion string            `json:"stackmatch_version"`
	ScanDate          time.Time         `json:"scan_date"`
	System            SystemInfo        `json:"system"`
	Tools             map[string]string `json:"tools,omitempty"`
	PackageManagers   map[string]string `json:"package_managers,omitempty"`
	CodeEditors       map[string]string `json:"code_editors,omitempty"`
	// ConfiguredLanguages stores detected programming languages and their primary versions.
	ConfiguredLanguages map[string]string `json:"configured_languages,omitempty"`
	ConfigFiles         []string          `json:"config_files,omitempty"`
}

EnvironmentData represents the top-level structure for the scanned environment. This is the structure that will be serialized to/from JSON.

type SystemInfo

type SystemInfo struct {
	OS       string `json:"os"`
	Arch     string `json:"arch"`
	Shell    string `json:"shell,omitempty"`
	Hostname string `json:"hostname,omitempty"` // Added Hostname as it's often useful
}

SystemInfo holds basic information about the operating system and architecture.

Jump to

Keyboard shortcuts

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