connectopus

package
v0.0.0-...-d773db1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(datadir string) (*config.Config, error)

func ParseAndCheckConfig

func ParseAndCheckConfig(cfgData, signature []byte, authKeys []proto.MarshalablePublicKey) (*config.Config, error)

func SignConfig

func SignConfig(keyFile, keyText string, cfg config.Config, updateTime bool) ([]byte, []byte, error)

Types

type BackendCfg

type BackendCfg config.Params

func (BackendCfg) Children

func (b BackendCfg) Children() map[string]reconciler.ConfigItem

func (BackendCfg) ParentEqual

func (b BackendCfg) ParentEqual(item reconciler.ConfigItem) bool

func (BackendCfg) Start

func (b BackendCfg) Start(ctx context.Context, ri *reconciler.RunningItem, done func()) (any, error)

func (BackendCfg) Type

func (b BackendCfg) Type() string

type CpctlCfg

type CpctlCfg config.Cpctl

func (CpctlCfg) Children

func (c CpctlCfg) Children() map[string]reconciler.ConfigItem

func (CpctlCfg) ParentEqual

func (c CpctlCfg) ParentEqual(item reconciler.ConfigItem) bool

func (CpctlCfg) Start

func (c CpctlCfg) Start(ctx context.Context, ri *reconciler.RunningItem, done func()) (any, error)

func (CpctlCfg) Type

func (c CpctlCfg) Type() string

type DnsCfg

type DnsCfg config.Dns

func (DnsCfg) Children

func (d DnsCfg) Children() map[string]reconciler.ConfigItem

func (DnsCfg) ParentEqual

func (d DnsCfg) ParentEqual(item reconciler.ConfigItem) bool

func (DnsCfg) Start

func (d DnsCfg) Start(ctx context.Context, ri *reconciler.RunningItem, done func()) (any, error)

func (DnsCfg) Type

func (d DnsCfg) Type() string

type NamespaceCfg

type NamespaceCfg config.Namespace

func (NamespaceCfg) Children

func (nc NamespaceCfg) Children() map[string]reconciler.ConfigItem

func (NamespaceCfg) ParentEqual

func (nc NamespaceCfg) ParentEqual(item reconciler.ConfigItem) bool

func (NamespaceCfg) Start

func (nc NamespaceCfg) Start(ctx context.Context, ri *reconciler.RunningItem, done func()) (any, error)

func (NamespaceCfg) Type

func (nc NamespaceCfg) Type() string

type NamespaceServiceCfg

type NamespaceServiceCfg struct {
	// contains filtered or unexported fields
}

func (NamespaceServiceCfg) Children

func (nsc NamespaceServiceCfg) Children() map[string]reconciler.ConfigItem

func (NamespaceServiceCfg) ParentEqual

func (nsc NamespaceServiceCfg) ParentEqual(item reconciler.ConfigItem) bool

func (NamespaceServiceCfg) Start

func (nsc NamespaceServiceCfg) Start(ctx context.Context, ri *reconciler.RunningItem, done func()) (any, error)

func (NamespaceServiceCfg) Type

func (nsc NamespaceServiceCfg) Type() string

type Node

func RunNode

func RunNode(ctx context.Context, datadir string, identity string) (*Node, error)

func (*Node) ParseAndCheckConfig

func (n *Node) ParseAndCheckConfig(cfgData []byte, signature []byte) (*config.Config, error)

func (*Node) ReconcileNode

func (n *Node) ReconcileNode(_ []byte, _ []byte, cfg *config.Config) error

type NodeCfg

type NodeCfg struct {
	*config.Config
	// contains filtered or unexported fields
}

func (NodeCfg) Children

func (nc NodeCfg) Children() map[string]reconciler.ConfigItem

func (NodeCfg) ParentEqual

func (nc NodeCfg) ParentEqual(item reconciler.ConfigItem) bool

func (NodeCfg) Start

func (nc NodeCfg) Start(ctx context.Context, ri *reconciler.RunningItem, done func()) (any, error)

func (NodeCfg) Type

func (nc NodeCfg) Type() string

type ServiceCfg

type ServiceCfg config.Service

func (ServiceCfg) Children

func (s ServiceCfg) Children() map[string]reconciler.ConfigItem

func (ServiceCfg) ParentEqual

func (s ServiceCfg) ParentEqual(item reconciler.ConfigItem) bool

func (ServiceCfg) Start

func (s ServiceCfg) Start(ctx context.Context, ri *reconciler.RunningItem, done func()) (any, error)

func (ServiceCfg) Type

func (s ServiceCfg) Type() string

type TunDevCfg

type TunDevCfg config.TunDev

func (TunDevCfg) Children

func (t TunDevCfg) Children() map[string]reconciler.ConfigItem

func (TunDevCfg) ParentEqual

func (t TunDevCfg) ParentEqual(item reconciler.ConfigItem) bool

func (TunDevCfg) Start

func (t TunDevCfg) Start(ctx context.Context, ri *reconciler.RunningItem, done func()) (any, error)

func (TunDevCfg) Type

func (t TunDevCfg) Type() string

Jump to

Keyboard shortcuts

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