Versions in this module Expand all Collapse all v0 v0.6.0 Jul 27, 2026 v0.5.0 Jul 7, 2026 Changes in this version + const JSON + const UNSET + const YAML + func AddResource(fileName string, gossConfig GossConfig, resourceName, key string, ...) error + func AddResources(fileName, resourceName string, keys []string, c *util.Config) error + func AutoAddResource(fileName string, gossConfig GossConfig, key string, c *util.Config, ...) error + func AutoAddResources(fileName string, keys []string, c *util.Config) error + func NewTemplateFilter(varsFiles []string, varsInline string, discovered map[string]bool) (func([]byte) ([]byte, error), error) + func RenderJSON(c *util.Config) (string, error) + func Serve(c *util.Config) error + func Validate(c *util.Config) (code int, err error) + func ValidateConfig(c *util.Config, gossConfig *GossConfig) (code int, err error) + func ValidateResults(c *util.Config) (results <-chan []resource.TestResult, err error) + func WriteJSON(filePath string, gossConfig GossConfig) error + type DiscoveryConfig struct + Addrs resource.AddrMap + Commands resource.CommandMap + DNS resource.DNSMap + Files resource.FileMap + Groups resource.GroupMap + HTTPs resource.HTTPMap + Interfaces resource.InterfaceMap + KernelParams resource.KernelParamMap + Matchings resource.MatchingMap + Mounts resource.MountMap + Packages resource.PackageMap + Ports resource.PortMap + Processes resource.ProcessMap + Registries resource.RegistryMap + Services resource.ServiceMap + Users resource.UserMap + func (c *DiscoveryConfig) Entries() ([]DiscoveryEntry, error) + func (c *DiscoveryConfig) IsEmpty() bool + func (c *DiscoveryConfig) Merge(g2 DiscoveryConfig) + type DiscoveryEntry struct + Register string + Resource resource.Resource + type GossConfig struct + Addrs resource.AddrMap + Commands resource.CommandMap + DNS resource.DNSMap + Discovery DiscoveryConfig + Files resource.FileMap + Gossfiles resource.GossfileMap + Groups resource.GroupMap + HTTPs resource.HTTPMap + Interfaces resource.InterfaceMap + KernelParams resource.KernelParamMap + Matchings resource.MatchingMap + Mounts resource.MountMap + Packages resource.PackageMap + Ports resource.PortMap + Processes resource.ProcessMap + Registries resource.RegistryMap + Services resource.ServiceMap + Users resource.UserMap + func NewGossConfig() *GossConfig + func ReadJSON(filePath string) (GossConfig, error) + func ReadJSONData(data []byte, detectFormat bool) (GossConfig, error) + func (c *GossConfig) Merge(g2 GossConfig) + func (c *GossConfig) Resources() []resource.Resource + type TemplateFilter func([]byte) ([]byte, error) + func NewPeekTemplateFilter(varsFiles []string, varsInline string) (TemplateFilter, error) + type TmplVars struct + Discovered map[string]any + Vars map[string]any + func (t *TmplVars) Env() map[string]string