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.
Click to show internal directories.
Click to hide internal directories.