ipns_pb

package
v1.8.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2023 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*IpnsEntry) GetData

func (m *IpnsEntry) GetData() []byte

func (*IpnsEntry) GetPubKey

func (m *IpnsEntry) GetPubKey() []byte

func (*IpnsEntry) GetSequence

func (m *IpnsEntry) GetSequence() uint64

func (*IpnsEntry) GetSignatureV1

func (m *IpnsEntry) GetSignatureV1() []byte

func (*IpnsEntry) GetSignatureV2

func (m *IpnsEntry) GetSignatureV2() []byte

func (*IpnsEntry) GetTtl

func (m *IpnsEntry) GetTtl() uint64

func (*IpnsEntry) GetValidity

func (m *IpnsEntry) GetValidity() []byte

func (*IpnsEntry) GetValidityType

func (m *IpnsEntry) GetValidityType() IpnsEntry_ValidityType

func (*IpnsEntry) GetValue

func (m *IpnsEntry) GetValue() []byte

func (*IpnsEntry) Marshal

func (m *IpnsEntry) Marshal() (dAtA []byte, err error)

func (*IpnsEntry) MarshalTo

func (m *IpnsEntry) MarshalTo(dAtA []byte) (int, error)

func (*IpnsEntry) MarshalToSizedBuffer

func (m *IpnsEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IpnsEntry) ProtoMessage

func (*IpnsEntry) ProtoMessage()

func (*IpnsEntry) Reset

func (m *IpnsEntry) Reset()

func (*IpnsEntry) Size

func (m *IpnsEntry) Size() (n int)

func (*IpnsEntry) String

func (m *IpnsEntry) String() string

func (*IpnsEntry) Unmarshal

func (m *IpnsEntry) Unmarshal(dAtA []byte) error

func (*IpnsEntry) XXX_DiscardUnknown

func (m *IpnsEntry) XXX_DiscardUnknown()

func (*IpnsEntry) XXX_Marshal

func (m *IpnsEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IpnsEntry) XXX_Merge

func (m *IpnsEntry) XXX_Merge(src proto.Message)

func (*IpnsEntry) XXX_Size

func (m *IpnsEntry) XXX_Size() int

func (*IpnsEntry) XXX_Unmarshal

func (m *IpnsEntry) XXX_Unmarshal(b []byte) error

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 (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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL