ipsecconfig

package
v0.0.0-...-a275525 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type IpsecConfig

type IpsecConfig struct {
	*systemtestsconfig.SystemTestsConfig
	Iperf3ToolImage string `yaml:"iperf3tool_image" envconfig:"ECO_IPSEC_TESTS_IPERF3_IMAGE"`
	TestWorkload    struct {
		Namespace      string `yaml:"namespace" envconfig:"ECO_IPSEC_TESTWORKLOAD_NAMESPACE"`
		CreateMethod   string `yaml:"create_method" envconfig:"ECO_IPSEC_TESTWORKLOAD_CREATE_METHOD"`
		CreateShellCmd string `yaml:"create_shell_cmd" envconfig:"ECO_IPSEC_TESTWORKLOAD_CREATE_SHELLCMD"`
		DeleteShellCmd string `yaml:"delete_shell_cmd" envconfig:"ECO_IPSEC_TESTWORKLOAD_DELETE_SHELLCMD"`
	} `yaml:"ipsec_test_workload"`
	// This is the Host IP for ssh
	SecGwHostIP string `yaml:"secgw_host_ip" envconfig:"ECO_IPSEC_SECGW_HOST_IP"`
	// This is the SecGW IPSec tunnel IP
	SecGwServerIP       string `yaml:"secgw_server_ip" envconfig:"ECO_IPSEC_SECGW_SERVER_IP"`
	Iperf3ServerOcpIPs  string `yaml:"iperf3_server_ocp_ips" envconfig:"ECO_IPSEC_IPERF3_SERVER_OCP_IPS"`
	Iperf3ClientTxBytes string `yaml:"iperf3_client_tx_bytes" envconfig:"ECO_IPSEC_IPERF3_CLIENT_TX_BYTES"`
	NodePort            string `yaml:"node_port" envconfig:"ECO_IPSEC_NODE_PORT"`
	NodePortIncrement   string `yaml:"node_port_increment" envconfig:"ECO_IPSEC_NODE_PORT_INCREMENT"`
	SSHUser             string `yaml:"ssh_user" envconfig:"ECO_SSH_USER"`
	SSHPrivateKey       string `yaml:"ssh_private_key" envconfig:"ECO_SSH_PRIVATE_KEY"`
	SSHPort             string `yaml:"ssh_port" envconfig:"ECO_SSH_PORT"`
}

IpsecConfig type keeps ipsec configuration.

func NewIpsecConfig

func NewIpsecConfig() *IpsecConfig

NewIpsecConfig returns instance of IpsecConfig config type.

Jump to

Keyboard shortcuts

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