app

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// CAFile is the path to the certificate authority file.
	CAFile = "/etc/ssl/certs/clink_ca.pem"
	// CertificateFile is the path to the certificate file.
	CertificateFile = "/etc/ssl/certs/clink-controlplane.pem"
	// KeyFile is the path to the private-key file.
	KeyFile = "/etc/ssl/key/clink-controlplane.pem"

	// PeerTLSDirectory is the path to the directory holding the peer TLS certificates.
	PeerTLSDirectory = "/etc/ssl/certs/clink"
	// PeerCertificateFile is the name to the peer certificate file.
	PeerCertificateFile = "cert.pem"
	// PeerKeyFile is the name of the peer private-key file.
	PeerKeyFile = "key.pem"
	// FabricCertificateFile is the name of the fabric CA file.
	FabricCertificateFile = "ca.pem"

	// NamespaceEnvVariable is the environment variable
	// which should hold the clusterlink system namespace name.
	NamespaceEnvVariable = "CL_NAMESPACE"
	// SystemNamespace represents the default clusterlink system namespace.
	SystemNamespace = "clusterlink-system"
)

Variables

This section is empty.

Functions

func FabricCertificateFilePath added in v0.3.0

func FabricCertificateFilePath() string

FabricCertificateFilePath returns the path to the fabric CA file.

func NewCLControlplaneCommand

func NewCLControlplaneCommand() *cobra.Command

NewCLControlplaneCommand creates a *cobra.Command object with default parameters.

func PeerCertificateFilePath added in v0.3.0

func PeerCertificateFilePath() string

PeerCertificateFilePath returns the path to the peer certificate file.

func PeerKeyFilePath added in v0.3.0

func PeerKeyFilePath() string

PeerKeyFilePath returns the path to the peer private key file.

Types

type Options

type Options struct {
	// LogFile is the path to file where logs will be written.
	LogFile string
	// LogLevel is the log level.
	LogLevel string
}

Options contains everything necessary to create and run a controlplane.

func (*Options) AddFlags

func (o *Options) AddFlags(fs *pflag.FlagSet)

AddFlags adds flags to fs and binds them to options.

func (*Options) Run

func (o *Options) Run() error

Run the various controlplane servers.

Jump to

Keyboard shortcuts

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