spkconfig

package
v0.0.0-...-2edc924 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PathToDefaultSPKParamsFile path to config file with default SPK parameters.
	PathToDefaultSPKParamsFile = "./default.yaml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BMCDetails

type BMCDetails struct {
	Username   string `json:"username"`
	Password   string `json:"password"`
	BMCAddress string `json:"bmc"`
}

BMCDetails structure to hold BMC details.

type NodesBMCMap

type NodesBMCMap map[string]BMCDetails

NodesBMCMap holds info about BMC connection for a specific node.

func (*NodesBMCMap) Decode

func (nad *NodesBMCMap) Decode(value string) error

Decode - method for envconfig package to parse JSON encoded environment variables.

type SPKConfig

type SPKConfig struct {
	*systemtestsconfig.SystemTestsConfig
	Namespace         string `yaml:"spk_workload_ns" envconfig:"ECO_SYSTEM_SPK_WORKLOAD_NS"`
	IngressTCPIPv4URL string `yaml:"spk_ingress_tcp_ipv4_url" envconfig:"ECO_SYSTEM_SPK_INGRESS_TCP_IPV4_URL"`
	IngressUDPIPv4URL string `yaml:"spk_ingress_udp_ipv4_url" envconfig:"ECO_SYSTEM_SPK_INGRESS_UDP_IPV4_URL"`
	IngressTCPIPv6URL string `yaml:"spk_ingress_tcp_ipv6_url" envconfig:"ECO_SYSTEM_SPK_INGRESS_TCP_IPV6_URL"`
	IngressUDPIPv6URL string `yaml:"spk_ingress_udp_ipv6_url" envconfig:"ECO_SYSTEM_SPK_INGRESS_UDP_IPV6_URL"`
	//nolint:lll
	WorkloadDCIDeploymentName string      `yaml:"spk_dci_workload_deployment_name" envconfig:"ECO_SYSTEM_SPK_WORKLOAD_DCI_DEPLOYEMNT_NAME"`
	NodesCredentialsMap       NodesBMCMap `yaml:"spk_nodes_bmc_map" envconfig:"ECO_SYSTEM_SPK_NODES_CREDENTIALS_MAP"`
	//nolint:lll
	WorkloadContainerImage string `yaml:"spk_workload_deployment_image" envconfig:"ECO_SYSTEM_SPK_WORKLOAD_DEPLOYMENT_IMAGE"`
	BackendContainerImage  string `yaml:"spk_backend_deployment_image" envconfig:"ECO_SYSTEM_SPK_BACKEND_DEPLOYMENT_IMAGE"`
	WorkloadDeploymentName string `yaml:"spk_workload_deployment_name" envconfig:"ECO_SYSTEM_SPK_WORKLOAD_DEPLOYMENT_NAME"`
	WorkloadTestURL        string `yaml:"spk_workload_test_url" envconfig:"ECO_SYSTEM_SPK_WORKLOAD_TEST_URL"`
	WorkloadTestPort       string `yaml:"spk_workload_test_port" envconfig:"ECO_SYSTEM_SPK_WORKLOAD_TEST_PORT"`
	SPKDataNS              string `yaml:"spk_data_ns" envconfig:"ECO_SYSTEM_SPK_DATA_NS"`
	SPKDnsNS               string `yaml:"spk_dns_ns" envconfig:"ECO_SYSTEM_SPK_DNS_NS"`
	SPKUtilitiesNS         string `yaml:"spk_utilities_ns" envconfig:"ECO_SYSTEM_SPK_UTILITIES_NS"`
	SPKCoreDNSNS           string `yaml:"spk_coredns_ns" envconfig:"ECO_SYSTEM_COREDNS_NS"`
	SPKDataTMMDeployName   string `yaml:"spk_data_tmm_deploy_name" envconfig:"ECO_SYSTEM_SPK_DATA_TMM_DEPLOY_NAME"`
	SPKDnsTMMDeployName    string `yaml:"spk_dns_tmm_deploy_name" envconfig:"ECO_SYSTEM_SPK_DNS_TMM_DEPLOY_NAME"`
	//nolint:lll
	SPKDataIngressDeployName string `yaml:"spk_data_ingress_deploy_name" envconfig:"ECO_SYSTEM_SPK_DATA_INGRESS_DEPLOY_NAME"`
	SPKDnsIngressDeployName  string `yaml:"spk_dns_ingress_deploy_name" envconfig:"ECO_SYSTEM_SPK_DNS_INGRESS_DEPLOY_NAME"`
	//nolint:lll
	BackendUDPContainerImage string `yaml:"spk_backend_udp_deployment_image" envconfig:"ECO_SYSTEM_SPK_BACKEND_UDP_DEPLOYMENT_IMAGE"`
}

SPKConfig type keeps SPK configuration.

func NewSPKConfig

func NewSPKConfig() *SPKConfig

NewSPKConfig returns instance of SPKConfig config type.

Jump to

Keyboard shortcuts

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