utils

package
v0.0.0-...-5927b00 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateServerConfiguration

func GenerateServerConfiguration(address, privateKeyFile, configFile, serverName string) error

func GetServerAddr

func GetServerAddr(server *config.Server) (*snet.Addr, error)

func InitSCIONConnection

func InitSCIONConnection(scionAddressString string) (*snet.Addr, error)

func LoadChain

func LoadChain(chainFilePath string) (chain *config.Chain, err error)

func LoadServerConfiguration

func LoadServerConfiguration(configurationPath string) (*config.Server, error)

func LoadServersConfigurationList

func LoadServersConfigurationList(configurationPath string) (servers []config.Server, err error)

func ReadPrivateKey

func ReadPrivateKey(privateKeyFile string) (ed25519.PrivateKey, error)

func SaveChain

func SaveChain(chainFile string, chain *config.Chain, maxLength int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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