Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadGroupDescToml ¶
ReadGroupDescToml reads a group.toml file and returns the list of Entities and descriptions in the file.
func ReadGroupToml ¶
func ReadGroupToml(f io.Reader) (*sda.EntityList, error)
ReadGroupToml reads a group.toml file and returns the list of Entity described in the file.
Types ¶
type CothoritydConfig ¶
CothoritydConfig is the Cothority daemon config
func CreateCothoritydConfig ¶
func CreateCothoritydConfig(defaultFile string) (*CothoritydConfig, string, error)
CreateCothoritydConfig will ask through the command line to create a Private / Public key, what is the listening address
func ParseCothorityd ¶
func ParseCothorityd(file string) (*CothoritydConfig, *sda.Host, error)
ParseCothorityd will try to parse the config file into a CothoritydConfig. It returns the CothoritydConfig, the Host so we can already use it and an error if occured.
func (*CothoritydConfig) Save ¶
func (hc *CothoritydConfig) Save(file string) error
Save will save this CothoritydConfig to the given file name
type GroupToml ¶
type GroupToml struct { Description string Servers []*ServerToml `toml:"servers"` }
GroupToml represents the structure of the group.toml file given to the cli.
func NewGroupToml ¶
func NewGroupToml(servers ...*ServerToml) *GroupToml
NewGroupToml creates a new GroupToml struct from the given ServerTomls. Currently used together with calling String() on the GroupToml to output a snippet which is needed to define the CoSi group
type ServerToml ¶
ServerToml is one entry in the group.toml file describing one server to use for the cothority system.
func NewServerToml ¶
NewServerToml returns a ServerToml out of a public key and some addresses => to be printed or written to a file