Documentation ¶
Overview ¶
Package pkicmn contains some commonly used functionality and definitions.
Index ¶
- Constants
- Variables
- func Contains(ases []addr.IA, as addr.IA) bool
- func ErrorAndExit(format string, a ...interface{})
- func GetAsPath(baseDir string, ia addr.IA) string
- func GetIsdPath(baseDir string, isd addr.ISD) string
- func ProcessSelector(selector string) (map[addr.ISD][]addr.IA, error)
- func QuietPrint(format string, a ...interface{})
- func WriteToFile(raw common.RawBytes, path string, perm os.FileMode) error
Constants ¶
View Source
const ( CertNameFmt = "ISD%d-AS%s-V%d.crt" CoreCertNameFmt = "ISD%d-AS%s-V%d-core.crt" TrcNameFmt = "ISD%d-V%d.trc" ErrInvalidSelector = "Invalid selector." ErrNoISDDirFound = "No ISD directories found" ErrNoASDirFound = "No AS directories found" TRCsDir = "trcs" CertsDir = "certs" KeysDir = "keys" )
Variables ¶
View Source
var ( RootDir string OutDir string Force bool Quiet bool )
Functions ¶
func ErrorAndExit ¶
func ErrorAndExit(format string, a ...interface{})
func ProcessSelector ¶
ProcessSelector processes the given selector and returns a mapping from ISD id to ASes of that ISD. In case of an ISD-only selector, i.e., a '*' or any number the lists of ASes will be empty.
func QuietPrint ¶
func QuietPrint(format string, a ...interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.