config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PrivateKeyFileName is the filename used by private key files.
	PrivateKeyFileName = "key.pem"
	// CertificateFileName is the filename used by certificate files.
	CertificateFileName = "cert.pem"
	// DockerRunFile is the filename of the docker-run script.
	DockerRunFile = "docker-run.sh"
	// GWCTLInitFile is the filename of the gwctl-init script.
	GWCTLInitFile = "gwctl-init.sh"
	// K8SYAMLFile is the filename of the kubernetes deployment yaml file.
	K8SYAMLFile = "k8s.yaml"
	// K8SSecretYAMLFile is the filename of the kubernetes secrets yaml file.
	K8SSecretYAMLFile = "cl-secret.yaml" //nolint:gosec // G101(Potential hardcoded credentials): Enable secret usage in filenames.
	// K8SClusterLinkInstanceYAMLFile is the filename of the ClusterLink instance CRD file that will use by the operator.
	K8SClusterLinkInstanceYAMLFile = "cl-instance.yaml"
	// PersistencyDirectoryName is the directory name containing container persisted files.
	PersistencyDirectoryName = "persist"

	// ControlplaneDirectoryName is the directory name containing controlplane server configuration.
	ControlplaneDirectoryName = "controlplane"
	// DataplaneDirectoryName is the directory name containing dataplane server configuration.
	DataplaneDirectoryName = "dataplane"
	// GWCTLDirectoryName is the directory name containing gwctl certificates.
	GWCTLDirectoryName = "gwctl"

	// GHCR is the path to the GitHub container registry.
	GHCR = "ghcr.io/clusterlink-net"
	// DefaultRegistry is the default container registry used.
	DefaultRegistry = GHCR
)

Variables

This section is empty.

Functions

func ControlplaneDirectory

func ControlplaneDirectory(peer string) string

ControlplaneDirectory returns the path for a controlplane server.

func DataplaneDirectory

func DataplaneDirectory(peer string) string

DataplaneDirectory returns the path for a dataplane server.

func FabricDirectory

func FabricDirectory() string

FabricDirectory returns the base path of the fabric.

func GWCTLDirectory

func GWCTLDirectory(peer string) string

GWCTLDirectory returns the path for a gwctl instance.

func PeerDirectory

func PeerDirectory(peer string) string

PeerDirectory returns the base path for a specific peer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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