package
0.12.0
Repository: https://github.com/scionproto/scion.git
Documentation: pkg.go.dev

# Functions

FormatAddrPort formats an Addr with a port to the format [<ISD>-<AS>,<Host>]:<Port>.
FormatAS formats the AS number.
FormatIA formats the ISD-AS.
FormatISD formats the ISD number.
HostIP returns a Host address representing ip, with type HostTypeIP.
HostSvc returns a Host address representing svc, with type HostTypeSVC.
IAFrom creates an IA from the ISD and AS number.
MustIAFrom creates an IA from the ISD and AS number.
MustParseAddr calls ParseAddr(s) and panics on error.
MustParseAS parses s and returns the corresponding addr.AS object.
MustParseHost calls ParseHost(s) and panics on error.
MustParseIA parses s and returns the corresponding addr.IA object.
MustParseISD parses s and returns the corresponding addr.ISD object.
ParseAddr parses s as an address in the format <ISD>-<AS>,<Host>, returning the result as an Addr.
ParseAddrPort parses s as a SCION address with a port, in the format [<ISD>-<AS>,<Host>]:<Port>.
ParseAS parses an AS from a decimal (in the case of the 32bit BGP AS number space) or ipv6-style hex (in the case of SCION-only AS numbers) string.
ParseFormattedAS parses an AS number that was formatted with the FormatAS function.
ParseFormattedIA parses an IA that was formatted with the FormatIA function.
ParseFormattedISD parses an ISD number that was formatted with the FormatISD function.
ParseHost parses s as either a service address or an IP address, returning the result as a Host address.
ParseIA parses an IA from a string of the format 'isd-as'.
ParseISD parses an ISD from a decimal string.
ParseSVC returns the SVC address corresponding to str.
WithDefaultPrefix enables the default prefix which depends on the type.
WithFileSeparator returns an option that sets the separator to underscore.
WithSeparator sets the separator to use for formatting AS numbers.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

ErrUnsupportedSVCAddress indicates an unsupported SVC address.

# Structs

Addr is a full SCION address, composed of ISD, AS and Host part.
Host represents the AS-local host identifier of a SCION address.

# Type aliases

AS is the Autonomous System identifier.
No description provided by the author
HostAddrType discriminates between different types of Host addresses.
IA represents the ISD (ISolation Domain) and AS (Autonomous System) Id of a given SCION AS.
ISD is the ISolation Domain identifier.
SVC is a SCION service address.