Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Certificate ¶
type Certificate struct { Type ProtocolType Usage CertificateUsage HashAlgo algorithmTypes.Hash Data []byte }
Certificate contains a certificate and its meta data (type, usage and hash algorithm identifier)
func (Certificate) CompareTo ¶
func (c Certificate) CompareTo(cert Certificate) int
CompareTo compares two certificateObject objects and returns 0 if they are equal, 1 if c is greater than cert and -1 if c is smaller than cert
func (Certificate) String ¶
func (c Certificate) String() string
String implements Stringer interface
type CertificateUsage ¶
type CertificateUsage int
CertificateUsage is an identifier for a certificate usage. The ID is chosen according to the RAINS Protocol Specification.
const ( CUTrustAnchor CertificateUsage = 2 CUEndEntity CertificateUsage = 3 )
func (CertificateUsage) String ¶
func (i CertificateUsage) String() string
type Name ¶
Name contains a name associated with a name as an alias. Types specifies for which object connection the alias is valid
type NamesetExpr ¶
type NamesetExpr string
NamesetExpr encodes a modified POSIX Extended Regular Expression format
type Object ¶
type Object struct { Type Type Value interface{} }
Object contains a Value of to the specified Type
func CertificateObject ¶
func CertificateObject() Object
Certificate returns a certificate object with valid content
func ServiceObject ¶
func ServiceObject() Object
ServiceObject returns a service information object with valid content
func SortedObjects ¶
func SortedObjects() []Object
func (Object) CompareTo ¶
CompareTo compares two objects and returns 0 if they are equal, 1 if o is greater than object and -1 if o is smaller than object
func (Object) MarshalCBOR ¶
func (obj Object) MarshalCBOR(w *cbor.CBORWriter) error
MarshalCBOR implements a CBORMarshaler.
func (*Object) UnmarshalArray ¶
UnmarshalArray takes in a CBOR decoded array and populates the object.
type ProtocolType ¶
type ProtocolType int
ProtocolType is an identifier for a protocol. The ID is chosen according to the RAINS Protocol Specification.
const ( PTUnspecified ProtocolType = 0 PTTLS ProtocolType = 1 )
func (ProtocolType) String ¶
func (i ProtocolType) String() string
type SCIONAddress ¶
func ParseSCIONAddress ¶
func ParseSCIONAddress(address string) (*SCIONAddress, error)
func SCIONAddressFromRaw ¶
func SCIONAddressFromRaw(buf []byte) (*SCIONAddress, error)
func (*SCIONAddress) Pack ¶
func (a *SCIONAddress) Pack() []byte
func (*SCIONAddress) String ¶
func (sa *SCIONAddress) String() string
type ServiceInfo ¶
ServiceInfo contains information how to access a named service
func (ServiceInfo) CompareTo ¶
func (s ServiceInfo) CompareTo(serviceInfo ServiceInfo) int
CompareTo compares two serviceInfo objects and returns 0 if they are equal, 1 if s is greater than serviceInfo and -1 if s is smaller than serviceInfo
type Type ¶
type Type int
Type identifier for object connection. ID chosen according to RAINS Protocol Specification
func ParseTypes ¶
ParseTypes returns the object type(s) specified in qType