Documentation
¶
Index ¶
- func RenderBootstrapConfig(data BootstrapConfigData) (string, error)
- func RenderGatewayConfig(data GatewayConfigData) (string, error)
- func RenderGatewayService(data SystemdGatewayData) (string, error)
- func RenderIPFSClusterService(data SystemdIPFSClusterData) (string, error)
- func RenderIPFSService(data SystemdIPFSData) (string, error)
- func RenderNodeConfig(data NodeConfigData) (string, error)
- func RenderNodeService(data SystemdNodeData) (string, error)
- func RenderOlricConfig(data OlricConfigData) (string, error)
- func RenderOlricService(data SystemdOlricData) (string, error)
- func RenderRQLiteService(data SystemdRQLiteData) (string, error)
- type BootstrapConfigData
- type GatewayConfigData
- type NodeConfigData
- type OlricConfigData
- type SystemdGatewayData
- type SystemdIPFSClusterData
- type SystemdIPFSData
- type SystemdNodeData
- type SystemdOlricData
- type SystemdRQLiteData
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 ¶
OlricConfigData holds parameters for olric.yaml rendering
type SystemdGatewayData ¶
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 ¶
SystemdNodeData holds parameters for systemd Node service rendering
type SystemdOlricData ¶
SystemdOlricData holds parameters for systemd Olric service rendering