config

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 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"
	// DefaultFabric is the default fabric name.
	DefaultFabric = "default_fabric"
	// 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, fabric, path string) string

ControlplaneDirectory returns the path for a controlplane server.

func DataplaneDirectory

func DataplaneDirectory(peer, fabric, path string) string

DataplaneDirectory returns the path for a dataplane server.

func FabricCertificate

func FabricCertificate(name, path string) string

FabricCertificate returns the fabric certificate name.

func FabricDirectory

func FabricDirectory(name, path string) string

FabricDirectory returns the base path of the fabric.

func FabricKey

func FabricKey(name, path string) string

FabricKey returns the fabric key name.

func GWCTLDirectory

func GWCTLDirectory(peer, fabric, path string) string

GWCTLDirectory returns the path for a gwctl instance.

func PeerDirectory

func PeerDirectory(peer, fabric, path 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