templates

package
v0.69.13 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderBootstrapConfig

func RenderBootstrapConfig(data BootstrapConfigData) (string, error)

RenderBootstrapConfig renders the bootstrap config template with the given data

func RenderGatewayConfig

func RenderGatewayConfig(data GatewayConfigData) (string, error)

RenderGatewayConfig renders the gateway config template with the given data

func RenderGatewayService

func RenderGatewayService(data SystemdGatewayData) (string, error)

RenderGatewayService renders the DeBros Gateway systemd service template

func RenderIPFSClusterService

func RenderIPFSClusterService(data SystemdIPFSClusterData) (string, error)

RenderIPFSClusterService renders the IPFS Cluster systemd service template

func RenderIPFSService

func RenderIPFSService(data SystemdIPFSData) (string, error)

RenderIPFSService renders the IPFS systemd service template

func RenderNodeConfig

func RenderNodeConfig(data NodeConfigData) (string, error)

RenderNodeConfig renders the node config template with the given data

func RenderNodeService

func RenderNodeService(data SystemdNodeData) (string, error)

RenderNodeService renders the DeBros Node systemd service template

func RenderOlricConfig

func RenderOlricConfig(data OlricConfigData) (string, error)

RenderOlricConfig renders the olric config template with the given data

func RenderOlricService

func RenderOlricService(data SystemdOlricData) (string, error)

RenderOlricService renders the Olric systemd service template

func RenderRQLiteService

func RenderRQLiteService(data SystemdRQLiteData) (string, error)

RenderRQLiteService renders the RQLite systemd service template

Types

type BootstrapConfigData

type BootstrapConfigData struct {
	NodeID            string
	P2PPort           int
	DataDir           string
	RQLiteHTTPPort    int
	RQLiteRaftPort    int
	ClusterAPIPort    int
	IPFSAPIPort       int      // Default: 4501
	BootstrapPeers    []string // List of bootstrap peer multiaddrs
	RQLiteJoinAddress string   // Optional: join address for secondary bootstraps
	HTTPAdvAddress    string   // Advertised HTTP address (IP:port)
	RaftAdvAddress    string   // Advertised Raft address (IP:port)
}

BootstrapConfigData holds parameters for bootstrap.yaml rendering

type GatewayConfigData

type GatewayConfigData struct {
	ListenPort     int
	BootstrapPeers []string
	OlricServers   []string
	ClusterAPIPort int
	IPFSAPIPort    int // Default: 4501
	EnableHTTPS    bool
	DomainName     string
	TLSCacheDir    string
	RQLiteDSN      string
}

GatewayConfigData holds parameters for gateway.yaml rendering

type NodeConfigData

type NodeConfigData struct {
	NodeID            string
	P2PPort           int
	DataDir           string
	RQLiteHTTPPort    int
	RQLiteRaftPort    int
	RQLiteJoinAddress string
	BootstrapPeers    []string
	ClusterAPIPort    int
	IPFSAPIPort       int    // Default: 4501+
	HTTPAdvAddress    string // Advertised HTTP address (IP:port)
	RaftAdvAddress    string // Advertised Raft address (IP:port)
}

NodeConfigData holds parameters for node.yaml rendering

type OlricConfigData

type OlricConfigData struct {
	BindAddr       string
	HTTPPort       int
	MemberlistPort int
}

OlricConfigData holds parameters for olric.yaml rendering

type SystemdGatewayData

type SystemdGatewayData struct {
	HomeDir   string
	DebrosDir string
}

SystemdGatewayData holds parameters for systemd Gateway service rendering

type SystemdIPFSClusterData

type SystemdIPFSClusterData struct {
	NodeType    string
	HomeDir     string
	ClusterPath string
	DebrosDir   string
}

SystemdIPFSClusterData holds parameters for systemd IPFS Cluster service rendering

type SystemdIPFSData

type SystemdIPFSData struct {
	NodeType     string
	HomeDir      string
	IPFSRepoPath string
	SecretsDir   string
	DebrosDir    string
}

SystemdIPFSData holds parameters for systemd IPFS service rendering

type SystemdNodeData

type SystemdNodeData struct {
	NodeType   string
	HomeDir    string
	ConfigFile string
	DebrosDir  string
}

SystemdNodeData holds parameters for systemd Node service rendering

type SystemdOlricData

type SystemdOlricData struct {
	HomeDir    string
	ConfigPath string
	DebrosDir  string
}

SystemdOlricData holds parameters for systemd Olric service rendering

type SystemdRQLiteData

type SystemdRQLiteData struct {
	NodeType  string
	HomeDir   string
	HTTPPort  int
	RaftPort  int
	DataDir   string
	JoinAddr  string
	DebrosDir string
}

SystemdRQLiteData holds parameters for systemd RQLite service rendering

Jump to

Keyboard shortcuts

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