config

package
v0.0.0-...-798ae07 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2023 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadRuntimeConfig

func LoadRuntimeConfig()

Types

type ControlPlaneRuntimeConfig

type ControlPlaneRuntimeConfig struct {
	// Define a custom CRI gRPC socket, other than the ones that are defined by default already.
	// This socket location will take precendence over the default cri-o/containerd/dockershim socket paths
	// baked into the binary.
	CRISocket string `json:"cri_socket" yaml:"criSocket" toml:"criSocket"`
	// Another location for the keystore to be loaded in by the control plane. Will take precedence over any of the other
	// config locations that are baked into the binary.
	KeyStorePath string `json:"key_store" yaml:"keyStorePath" toml:"keyStorePath"`
	// Location for the priviledged node controller process to create a unix socket for IPC communication.
	// Defaults at runtime to /var/run/morfic/morfic_node.sock
	NodeControllerSocket string `json:"node_controller_socket" yaml:"nodeControllerSocket" toml:"nodeControllerSocket"`
}
var (
	// The global unmarshalled runtime configuration for use within the control plane for it's internal operations
	// and defaults. This tries to offload as many constants/static data to a file so it can be edited by the user,
	// rather than keeping the data wrapped up in the binary.
	CPRF *ControlPlaneRuntimeConfig
)

type CpConfig

type CpConfig struct {

	// Wireguard tunnels managed by the control plane.
	WgTuns []WireguardTun `json:"wireguard_tunnels"`

	// Interfaces that are controlled/managed by the control plane.
	Ifaces []Interface `json:"interfaces"`
	// contains filtered or unexported fields
}

type Interface

type Interface struct {
}

Describe the configuration and state for an interface on the host.

type WireguardTun

type WireguardTun struct {
	// Mutex if the API needs to mutate the state of this link.
	sync.Mutex

	DevName string   `json:"device_name"`
	Config  wgConfig `json:"interface_config"`
}

Describes a Wireguard tunnel interface configured by the control plane.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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