package
1.5.0
Repository: https://github.com/nethermindeth/sedge.git
Documentation: pkg.go.dev

# Functions

AssignPorts : Checks if port is occupied in a given host params :- a.
CheckContainers : Check if containers of generated docker-compose script are running params :- a.
CheckErr : Helper function for tests.
CheckUrlOrPath : Verifies if provided source string is an url or filepath returning relevant error if neither params :- a.
Contains : Checks if a string slice contains a string params :- a.
ContainsOnly : Checks if a string slice contains only strings of a given string slice params :- a.
CopyFile: Copies the file from src to dst, if the directory of the dst doesn't exist then is created before the copy.
CurrentVersion : Export the current version of Sedge params :- None returns :- a.
DownloadOrCopy : Get content of the source url or filepath provided params :- a.
ENodesValidator validates a list of EL boot nodes and returns an error if any of them is invalid.
ENRValidator validates a list of CL boot nodes and returns an error if any of them is invalid.
Filter : Filter a slice given a predicate params :- a.
GetDistroName : Get the name and version of the linux distribution of the host machine.
GetRequest : Make a GET request to the given URL.
GetUrlOrPathContent : Get content of the source url or filepath provided params :- a.
HandleUrlOrPath : Get a source string and call related handler if the source params :- a.
IsAddress : Checks if a string is an Ethereum address params :- a.
IsLatestVersion : Check if we are running the latest version that was released on GitHub params :- None returns :- a.
TODO: Add unit tests LoadDockerComposeServices get the services from a Sedge valid docker-compose script.
ParseEnv parse a .env file and return a map of the environment variables.
No description provided by the author
SkipLines : Skips lines starting with `symbol` params :- a.
SupportedNetworks : Get supported networks names.
UriValidator validates a URI and returns true if it is valid.
ValidateCompose validate a docker-compose script according to the docker-compose specification.
ZipString : Zip string slices params :- a.

# Variables

No description provided by the author
No description provided by the author
Version represents the current version of Sedge.

# Structs

DepositCLI : Struct Data for eth2.0-deposit-cli command template.
DistroInfo : Struct Contains name, architecture and version of the linux distribution of the host machine.
ValidatorKeyData : Struct Data for Keystore generation.