Documentation ¶
Index ¶
- Variables
- type IpnsEntry
- func (*IpnsEntry) Descriptor() ([]byte, []int)
- func (m *IpnsEntry) GetData() []byte
- func (m *IpnsEntry) GetPubKey() []byte
- func (m *IpnsEntry) GetSequence() uint64
- func (m *IpnsEntry) GetSignatureV1() []byte
- func (m *IpnsEntry) GetSignatureV2() []byte
- func (m *IpnsEntry) GetTtl() uint64
- func (m *IpnsEntry) GetValidity() []byte
- func (m *IpnsEntry) GetValidityType() IpnsEntry_ValidityType
- func (m *IpnsEntry) GetValue() []byte
- func (m *IpnsEntry) Marshal() (dAtA []byte, err error)
- func (m *IpnsEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *IpnsEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IpnsEntry) ProtoMessage()
- func (m *IpnsEntry) Reset()
- func (m *IpnsEntry) Size() (n int)
- func (m *IpnsEntry) String() string
- func (m *IpnsEntry) Unmarshal(dAtA []byte) error
- func (m *IpnsEntry) XXX_DiscardUnknown()
- func (m *IpnsEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IpnsEntry) XXX_Merge(src proto.Message)
- func (m *IpnsEntry) XXX_Size() int
- func (m *IpnsEntry) XXX_Unmarshal(b []byte) error
- type IpnsEntry_ValidityType
- type IpnsSignatureV2Checker
- func (*IpnsSignatureV2Checker) Descriptor() ([]byte, []int)
- func (m *IpnsSignatureV2Checker) GetPubKey() []byte
- func (m *IpnsSignatureV2Checker) GetSignatureV2() []byte
- func (m *IpnsSignatureV2Checker) Marshal() (dAtA []byte, err error)
- func (m *IpnsSignatureV2Checker) MarshalTo(dAtA []byte) (int, error)
- func (m *IpnsSignatureV2Checker) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IpnsSignatureV2Checker) ProtoMessage()
- func (m *IpnsSignatureV2Checker) Reset()
- func (m *IpnsSignatureV2Checker) Size() (n int)
- func (m *IpnsSignatureV2Checker) String() string
- func (m *IpnsSignatureV2Checker) Unmarshal(dAtA []byte) error
- func (m *IpnsSignatureV2Checker) XXX_DiscardUnknown()
- func (m *IpnsSignatureV2Checker) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IpnsSignatureV2Checker) XXX_Merge(src proto.Message)
- func (m *IpnsSignatureV2Checker) XXX_Size() int
- func (m *IpnsSignatureV2Checker) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthIpns = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowIpns = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupIpns = fmt.Errorf("proto: unexpected end of group") )
View Source
var IpnsEntry_ValidityType_name = map[int32]string{
0: "EOL",
}
View Source
var IpnsEntry_ValidityType_value = map[string]int32{
"EOL": 0,
}
Functions ¶
This section is empty.
Types ¶
type IpnsEntry ¶
type IpnsEntry struct { Value []byte `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"` SignatureV1 []byte `protobuf:"bytes,2,opt,name=signatureV1" json:"signatureV1,omitempty"` ValidityType *IpnsEntry_ValidityType `protobuf:"varint,3,opt,name=validityType,enum=ipns.v1.pb.IpnsEntry_ValidityType" json:"validityType,omitempty"` Validity []byte `protobuf:"bytes,4,opt,name=validity" json:"validity,omitempty"` Sequence *uint64 `protobuf:"varint,5,opt,name=sequence" json:"sequence,omitempty"` Ttl *uint64 `protobuf:"varint,6,opt,name=ttl" json:"ttl,omitempty"` // in order for nodes to properly validate a record upon receipt, they need the public // key associated with it. For old RSA keys, its easiest if we just send this as part of // the record itself. For newer ed25519 keys, the public key can be embedded in the // peerID, making this field unnecessary. PubKey []byte `protobuf:"bytes,7,opt,name=pubKey" json:"pubKey,omitempty"` SignatureV2 []byte `protobuf:"bytes,8,opt,name=signatureV2" json:"signatureV2,omitempty"` Data []byte `protobuf:"bytes,9,opt,name=data" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*IpnsEntry) Descriptor ¶
func (*IpnsEntry) GetSequence ¶
func (*IpnsEntry) GetSignatureV1 ¶
func (*IpnsEntry) GetSignatureV2 ¶
func (*IpnsEntry) GetValidity ¶
func (*IpnsEntry) GetValidityType ¶
func (m *IpnsEntry) GetValidityType() IpnsEntry_ValidityType
func (*IpnsEntry) MarshalToSizedBuffer ¶
func (*IpnsEntry) ProtoMessage ¶
func (*IpnsEntry) ProtoMessage()
func (*IpnsEntry) XXX_DiscardUnknown ¶
func (m *IpnsEntry) XXX_DiscardUnknown()
func (*IpnsEntry) XXX_Marshal ¶
func (*IpnsEntry) XXX_Unmarshal ¶
type IpnsEntry_ValidityType ¶
type IpnsEntry_ValidityType int32
const ( // setting an EOL says "this record is valid until..." IpnsEntry_EOL IpnsEntry_ValidityType = 0 )
func (IpnsEntry_ValidityType) Enum ¶
func (x IpnsEntry_ValidityType) Enum() *IpnsEntry_ValidityType
func (IpnsEntry_ValidityType) EnumDescriptor ¶
func (IpnsEntry_ValidityType) EnumDescriptor() ([]byte, []int)
func (IpnsEntry_ValidityType) String ¶
func (x IpnsEntry_ValidityType) String() string
func (*IpnsEntry_ValidityType) UnmarshalJSON ¶
func (x *IpnsEntry_ValidityType) UnmarshalJSON(data []byte) error
type IpnsSignatureV2Checker ¶
type IpnsSignatureV2Checker struct { PubKey []byte `protobuf:"bytes,7,opt,name=pubKey" json:"pubKey,omitempty"` SignatureV2 []byte `protobuf:"bytes,8,opt,name=signatureV2" json:"signatureV2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*IpnsSignatureV2Checker) Descriptor ¶
func (*IpnsSignatureV2Checker) Descriptor() ([]byte, []int)
func (*IpnsSignatureV2Checker) GetPubKey ¶
func (m *IpnsSignatureV2Checker) GetPubKey() []byte
func (*IpnsSignatureV2Checker) GetSignatureV2 ¶
func (m *IpnsSignatureV2Checker) GetSignatureV2() []byte
func (*IpnsSignatureV2Checker) Marshal ¶
func (m *IpnsSignatureV2Checker) Marshal() (dAtA []byte, err error)
func (*IpnsSignatureV2Checker) MarshalTo ¶
func (m *IpnsSignatureV2Checker) MarshalTo(dAtA []byte) (int, error)
func (*IpnsSignatureV2Checker) MarshalToSizedBuffer ¶
func (m *IpnsSignatureV2Checker) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*IpnsSignatureV2Checker) ProtoMessage ¶
func (*IpnsSignatureV2Checker) ProtoMessage()
func (*IpnsSignatureV2Checker) Reset ¶
func (m *IpnsSignatureV2Checker) Reset()
func (*IpnsSignatureV2Checker) Size ¶
func (m *IpnsSignatureV2Checker) Size() (n int)
func (*IpnsSignatureV2Checker) String ¶
func (m *IpnsSignatureV2Checker) String() string
func (*IpnsSignatureV2Checker) Unmarshal ¶
func (m *IpnsSignatureV2Checker) Unmarshal(dAtA []byte) error
func (*IpnsSignatureV2Checker) XXX_DiscardUnknown ¶
func (m *IpnsSignatureV2Checker) XXX_DiscardUnknown()
func (*IpnsSignatureV2Checker) XXX_Marshal ¶
func (m *IpnsSignatureV2Checker) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IpnsSignatureV2Checker) XXX_Merge ¶
func (m *IpnsSignatureV2Checker) XXX_Merge(src proto.Message)
func (*IpnsSignatureV2Checker) XXX_Size ¶
func (m *IpnsSignatureV2Checker) XXX_Size() int
func (*IpnsSignatureV2Checker) XXX_Unmarshal ¶
func (m *IpnsSignatureV2Checker) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.