Documentation
¶
Index ¶
- Variables
- type Key
- func (*Key) Descriptor() ([]byte, []int)deprecated
- func (x *Key) GetCreatedAt() int64
- func (x *Key) GetKeyType() string
- func (x *Key) GetMetadata() []byte
- func (x *Key) GetName() string
- func (x *Key) GetPrivateKey() []byte
- func (*Key) ProtoMessage()
- func (x *Key) ProtoReflect() protoreflect.Message
- func (x *Key) Reset()
- func (x *Key) String() string
- type Keystore
Constants ¶
This section is empty.
Variables ¶
View Source
var File_keystore_serialization_keystore_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Key ¶
type Key struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
PrivateKey []byte `protobuf:"bytes,2,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
CreatedAt int64 `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
KeyType string `protobuf:"bytes,4,opt,name=key_type,json=keyType,proto3" json:"key_type,omitempty"`
Metadata []byte `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
// contains filtered or unexported fields
}
func (*Key) Descriptor
deprecated
func (*Key) GetCreatedAt ¶
func (*Key) GetKeyType ¶
func (*Key) GetMetadata ¶
func (*Key) GetPrivateKey ¶
func (*Key) ProtoMessage ¶
func (*Key) ProtoMessage()
func (*Key) ProtoReflect ¶
func (x *Key) ProtoReflect() protoreflect.Message
type Keystore ¶
type Keystore struct {
Keys []*Key `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
// contains filtered or unexported fields
}
Keystore holds a list of keys. We use protobuf to serialize the whole keystore before encryption.
func (*Keystore) Descriptor
deprecated
func (*Keystore) ProtoMessage ¶
func (*Keystore) ProtoMessage()
func (*Keystore) ProtoReflect ¶
func (x *Keystore) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.