Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 )
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 ContainsType ¶
ContainsType returns the first object with oType and true if objects contains at least one
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 )
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