Help us shape the future of Go! Take the 2026 Go Developer Survey

configs

package
v0.0.0-...-5bac6fb Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNodeSetup

func GetNodeSetup(path string, configName string) (*NodeSetup, *NodeSetup, error)

Types

type InvitroSetupConfig

type InvitroSetupConfig struct {
	MasterNode  string
	LoaderNode  string
	WorkerNodes []string
	AllNodes    []string

	SetupCfg   *SetupConfig
	PromConfig *PrometheusConfig
}

func CommonConfigSetup

func CommonConfigSetup(configDir string, configName string) (*InvitroSetupConfig, error)

type NodeSetup

type NodeSetup struct {
	NodeSetup struct {
		MasterNode []string `json:"MASTER_NODE"`
		LoaderNode []string `json:"LOADER_NODE"`
		WorkerNode []string `json:"WORKER_NODE"`
	} `json:"NODE_SETUP"`
	NodeLabel map[string][]string `json:"NODE_LABEL"`
	NodeURL   []string            `json:"NODE_URL"`
}

type PrometheusConfig

type PrometheusConfig struct {
	MetricsServerVersion    string `json:"MetricsServerVersion"`
	PromChartVersion        string `json:"PromChartVersion"`
	PushgatewayChartVersion string `json:"PushgatewayChartVersion"`
	PromValuePath           string `json:"PromValuePath"`
	KnativePromURL          string `json:"KnativePromURL"`
}

func GetPromConfig

func GetPromConfig(path string) (*PrometheusConfig, error)

type SetupConfig

type SetupConfig struct {
	HiveRepo         string `json:"VHIVE_REPO"`
	HiveBranch       string `json:"VHIVE_BRANCH"`
	LoaderRepo       string `json:"LOADER_REPO"`
	LoaderBranch     string `json:"LOADER_BRANCH"`
	ClusterMode      string `json:"CLUSTER_MODE"`
	PodsPerNode      int    `json:"PODS_PER_NODE"`
	DeployPrometheus bool   `json:"DEPLOY_PROMETHEUS"`
}

func GetSetupJSON

func GetSetupJSON(path string) (*SetupConfig, error)

Jump to

Keyboard shortcuts

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