config

package
v0.0.0-...-221c3f5 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SERV_LOG        = "utmstack_updater.log"
	SERV_AGENT_NAME = "UTMStackAgent"
)

Variables

View Source
var (
	DependUrl        = "https://%s:%s/private/dependencies/agent/%s"
	AgentManagerPort = "9000"
	LogAuthProxyPort = "50051"
	DependenciesPort = "9001"

	VersionPath = filepath.Join(fs.GetExecutablePath(), "version.json")
)

Functions

func ServiceFile

func ServiceFile(suffix string) string

ServiceFile returns the agent binary name with OS and architecture suffix. Format: utmstack_agent_service_<os>_<arch>[.exe] Examples:

  • utmstack_agent_service_linux_amd64
  • utmstack_agent_service_windows_amd64.exe
  • utmstack_agent_service_darwin_arm64

Types

type Config

type Config struct {
	Server             string `json:"server" yaml:"server"`
	SkipCertValidation bool   `json:"insecure" yaml:"insecure"`
}

func GetCurrentConfig

func GetCurrentConfig() (*Config, error)

Jump to

Keyboard shortcuts

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