Documentation ¶
Overview ¶
auto-generated (see utils/README.md)
Index ¶
- Constants
- func CF(tn uint64) (uint16, error)
- func TN(cf uint16) uint64
- type CMW
- func (o *CMW) Deserialize(b []byte) error
- func (o CMW) GetIndicator() Indicator
- func (o CMW) GetType() string
- func (o CMW) GetValue() []byte
- func (o CMW) MarshalCBOR() ([]byte, error)
- func (o CMW) MarshalCBORTag() ([]byte, error)
- func (o CMW) MarshalJSON() ([]byte, error)
- func (o CMW) Serialize(s Serialization) ([]byte, error)
- func (o *CMW) SetContentFormat(v uint16)
- func (o *CMW) SetIndicators(indicators ...Indicator)
- func (o *CMW) SetMediaType(v string)
- func (o *CMW) SetTagNumber(v uint64)
- func (o *CMW) SetValue(v []byte)
- func (o *CMW) UnmarshalCBOR(b []byte) error
- func (o *CMW) UnmarshalCBORTag(b []byte) error
- func (o *CMW) UnmarshalJSON(b []byte) error
- type Indicator
- type Serialization
- type Type
- func (o Type) IsSet() bool
- func (o Type) MarshalCBOR() ([]byte, error)
- func (o Type) MarshalJSON() ([]byte, error)
- func (o *Type) Set(v any) error
- func (o Type) String() string
- func (o Type) TagNumber() (uint64, error)
- func (o *Type) UnmarshalCBOR(b []byte) error
- func (o *Type) UnmarshalJSON(b []byte) error
- type Value
Constants ¶
View Source
const ( JSONArray = Serialization(iota) CBORArray CBORTag Unknown )
View Source
const ( ReferenceValues = 1 << iota Endorsements Evidence AttestationResults TrustAnchors )
View Source
const ( CfMin = uint16(0) CfMax = uint16(65024) )
View Source
const ( TnMin = uint64(1668546817) TnMax = uint64(1668612095) )
View Source
const IndicatorNone = 0
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CMW ¶
type CMW struct {
// contains filtered or unexported fields
}
a CMW object holds the internal representation of a RATS conceptual message wrapper
func (CMW) GetIndicator ¶
func (CMW) MarshalCBOR ¶
func (CMW) MarshalCBORTag ¶
func (CMW) MarshalJSON ¶
func (CMW) Serialize ¶
func (o CMW) Serialize(s Serialization) ([]byte, error)
Serialize a CMW according to the provided Serialization
func (*CMW) SetContentFormat ¶
func (*CMW) SetIndicators ¶
func (*CMW) SetMediaType ¶
func (*CMW) SetTagNumber ¶
func (*CMW) UnmarshalCBOR ¶
func (*CMW) UnmarshalCBORTag ¶
func (*CMW) UnmarshalJSON ¶
type Indicator ¶
type Indicator uint
Indicator is the internal representation of the `cm-ind` bit map
type Serialization ¶
type Serialization uint
type Type ¶
type Type struct {
// contains filtered or unexported fields
}
func (Type) MarshalCBOR ¶
func (Type) MarshalJSON ¶
func (*Type) UnmarshalCBOR ¶
func (*Type) UnmarshalJSON ¶
type Value ¶
type Value []byte
func (Value) MarshalCBOR ¶
func (Value) MarshalJSON ¶
func (*Value) UnmarshalCBOR ¶
func (*Value) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.