Documentation ¶
Overview ¶
Copyright © 2022 Michael Rosset <mike.rosset@gmail.com>
This file is part of Zeus ¶
Zeus is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Zeus is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Copyright © 2022 Michael Rosset <mike.rosset@gmail.com>
This file is part of Zeus ¶
Zeus is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Zeus is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Copyright © 2022 Michael Rosset <mike.rosset@gmail.com>
This file is part of Zeus ¶
Zeus is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Zeus is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Copyright © 2022 Michael Rosset <mike.rosset@gmail.com>
This file is part of Zeus ¶
Zeus is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Zeus is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Index ¶
- Constants
- Variables
- func Exists(path string) bool
- func Extract(dir, path string) error
- func Fetch(dir, uri string) error
- func NewBitcoind(prefix string) *exec.Cmd
- func ParseProgram(input string) (out string)
- func Sha256sum(file string) (hash string, err error)
- func Size(path string) (int64, error)
- func TarIndex(path string) (string, error)
- func TitledName() string
- func Verify(path, hash string) bool
- type BitcoindInstaller
- type Config
- type InstallType
- type Installer
- type MirrorType
- type Program
- type Tarball
- type UpstreamFiles
Constants ¶
const ( BITCOIN_VERSION = "23.0" LND_VERSION = "0.15.3-beta" BITCOIN_URI = "https://bitcoincore.org/bin/bitcoin-core-%s" LND_URI = "https://github.com/lightningnetwork/lnd/releases/download/v%s" LAN_URI = "http://devel" )
const (
ShortName = "zeus"
)
Variables ¶
var DefaultProgram = Program{ShortName, TitledName()}
The default program struct
Functions ¶
func NewBitcoind ¶
Creates a new bitcoind Cmd with binary from prefix
func ParseProgram ¶
Returns the template INPUT as a strings
Types ¶
type BitcoindInstaller ¶
type BitcoindInstaller Installer
func NewBitcoinInstaller ¶
func NewBitcoinInstaller(arch, os, prefix string, release MirrorType) BitcoindInstaller
func (BitcoindInstaller) Config ¶
func (i BitcoindInstaller) Config() string
Returns the full path of the bitcoind config file.
func (BitcoindInstaller) PostInstall ¶
func (i BitcoindInstaller) PostInstall() error
type Config ¶
type Config struct { Server int `ini:"server"` NoListen int `ini:"nolisten"` DBCache int `ini:"dbcache"` TXIndex int `ini:"txindex"` DataDir string `ini:"datadir"` Regtest int `ini:"regtest"` }
func NewDefaultConfig ¶
Returns a new default *Config with PREFIX substitution
type Installer ¶
type Installer struct { Description string // contains filtered or unexported fields }
func NewLNDInstaller ¶
func NewLNDInstaller(arch, os, prefix string, release MirrorType) Installer