app

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (

	// StoreFile is the path to the file holding the persisted state.
	StoreFile = "/var/lib/clink/controlplane.db"

	// 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/private/clink-controlplane.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 NewCLControlplaneCommand

func NewCLControlplaneCommand() *cobra.Command

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

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
	// CRDMode indicates a k8s CRD-based controlplane.
	// This flag will be removed once the CRD-based controlplane feature is complete and stable.
	CRDMode bool
}

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