Documentation ¶
Index ¶
- Variables
- func RegisterKeyringAdminServer(s grpc.ServiceRegistrar, srv KeyringAdminServer)
- func RegisterKeyringServer(s grpc.ServiceRegistrar, srv KeyringServer)
- type Ehlo
- func (*Ehlo) Descriptor() ([]byte, []int)deprecated
- func (x *Ehlo) GetEncTimestamp() []byte
- func (x *Ehlo) GetId() uint64
- func (x *Ehlo) GetInResponseTo() uint64
- func (x *Ehlo) GetPublicKey() []byte
- func (x *Ehlo) GetSignedIdKey() []byte
- func (*Ehlo) ProtoMessage()
- func (x *Ehlo) ProtoReflect() protoreflect.Message
- func (x *Ehlo) Reset()
- func (x *Ehlo) String() string
- type Empty
- type Helo
- func (*Helo) Descriptor() ([]byte, []int)deprecated
- func (x *Helo) GetEncTimestamp() []byte
- func (x *Helo) GetId() uint64
- func (x *Helo) GetPublicKey() []byte
- func (x *Helo) GetSignedIdKey() []byte
- func (*Helo) ProtoMessage()
- func (x *Helo) ProtoReflect() protoreflect.Message
- func (x *Helo) Reset()
- func (x *Helo) String() string
- type KeyMetadata
- func (*KeyMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *KeyMetadata) GetAlgo() KeygenAlgorithm
- func (x *KeyMetadata) GetId() uint64
- func (x *KeyMetadata) GetInResponseTo() uint64
- func (x *KeyMetadata) GetKeyId() uint64
- func (x *KeyMetadata) GetSize() int32
- func (*KeyMetadata) ProtoMessage()
- func (x *KeyMetadata) ProtoReflect() protoreflect.Message
- func (x *KeyMetadata) Reset()
- func (x *KeyMetadata) String() string
- type KeyRef
- func (*KeyRef) Descriptor() ([]byte, []int)deprecated
- func (x *KeyRef) GetExpires() uint64
- func (x *KeyRef) GetId() uint64
- func (x *KeyRef) GetInResponseTo() uint64
- func (x *KeyRef) GetIssuerIdUrl() string
- func (x *KeyRef) GetIssuerUrl() string
- func (x *KeyRef) GetKeyringId() string
- func (x *KeyRef) GetLabel() string
- func (*KeyRef) ProtoMessage()
- func (x *KeyRef) ProtoReflect() protoreflect.Message
- func (x *KeyRef) Reset()
- func (x *KeyRef) String() string
- type KeySpec
- func (*KeySpec) Descriptor() ([]byte, []int)deprecated
- func (x *KeySpec) GetAlgo() KeygenAlgorithm
- func (x *KeySpec) GetId() uint64
- func (x *KeySpec) GetKeyringId() string
- func (x *KeySpec) GetLabel() string
- func (x *KeySpec) GetSize() int32
- func (*KeySpec) ProtoMessage()
- func (x *KeySpec) ProtoReflect() protoreflect.Message
- func (x *KeySpec) Reset()
- func (x *KeySpec) String() string
- type KeygenAlgorithm
- func (KeygenAlgorithm) Descriptor() protoreflect.EnumDescriptor
- func (x KeygenAlgorithm) Enum() *KeygenAlgorithm
- func (KeygenAlgorithm) EnumDescriptor() ([]byte, []int)deprecated
- func (x KeygenAlgorithm) Number() protoreflect.EnumNumber
- func (x KeygenAlgorithm) String() string
- func (KeygenAlgorithm) Type() protoreflect.EnumType
- type KeyrefList
- func (*KeyrefList) Descriptor() ([]byte, []int)deprecated
- func (x *KeyrefList) GetId() uint64
- func (x *KeyrefList) GetInResponseTo() uint64
- func (x *KeyrefList) GetLabel() []*KeyRef
- func (*KeyrefList) ProtoMessage()
- func (x *KeyrefList) ProtoReflect() protoreflect.Message
- func (x *KeyrefList) Reset()
- func (x *KeyrefList) String() string
- type KeyringAdminClient
- type KeyringAdminServer
- type KeyringClient
- type KeyringLabel
- func (*KeyringLabel) Descriptor() ([]byte, []int)deprecated
- func (x *KeyringLabel) GetId() uint64
- func (x *KeyringLabel) GetInResponseTo() uint64
- func (x *KeyringLabel) GetLabel() string
- func (*KeyringLabel) ProtoMessage()
- func (x *KeyringLabel) ProtoReflect() protoreflect.Message
- func (x *KeyringLabel) Reset()
- func (x *KeyringLabel) String() string
- type KeyringRef
- func (*KeyringRef) Descriptor() ([]byte, []int)deprecated
- func (x *KeyringRef) GetExpires() uint64
- func (x *KeyringRef) GetId() uint64
- func (x *KeyringRef) GetInResponseTo() uint64
- func (x *KeyringRef) GetIssuerIdUrl() string
- func (x *KeyringRef) GetIssuerUrl() string
- func (x *KeyringRef) GetLabel() string
- func (*KeyringRef) ProtoMessage()
- func (x *KeyringRef) ProtoReflect() protoreflect.Message
- func (x *KeyringRef) Reset()
- func (x *KeyringRef) String() string
- type KeyringServer
- type KeyringSpec
- type Msg
- func (*Msg) Descriptor() ([]byte, []int)deprecated
- func (x *Msg) GetContent() *Signable
- func (x *Msg) GetId() uint64
- func (x *Msg) GetInResponseTo() uint64
- func (x *Msg) GetKeySpec() *KeySpec
- func (x *Msg) GetSigningProfile() SigningProfile
- func (*Msg) ProtoMessage()
- func (x *Msg) ProtoReflect() protoreflect.Message
- func (x *Msg) Reset()
- func (x *Msg) String() string
- type PublicKey
- func (*PublicKey) Descriptor() ([]byte, []int)deprecated
- func (x *PublicKey) GetId() uint64
- func (x *PublicKey) GetInResponseTo() uint64
- func (x *PublicKey) GetKeyBytes() []byte
- func (x *PublicKey) GetLabel() string
- func (*PublicKey) ProtoMessage()
- func (x *PublicKey) ProtoReflect() protoreflect.Message
- func (x *PublicKey) Reset()
- func (x *PublicKey) String() string
- type Result
- func (*Result) Descriptor() ([]byte, []int)deprecated
- func (x *Result) GetError() int32
- func (x *Result) GetId() uint64
- func (x *Result) GetInResponseTo() uint64
- func (*Result) ProtoMessage()
- func (x *Result) ProtoReflect() protoreflect.Message
- func (x *Result) Reset()
- func (x *Result) String() string
- type Signable
- func (*Signable) Descriptor() ([]byte, []int)deprecated
- func (m *Signable) GetData() isSignable_Data
- func (x *Signable) GetId() uint64
- func (x *Signable) GetSignableBytes() []byte
- func (x *Signable) GetTxref() string
- func (*Signable) ProtoMessage()
- func (x *Signable) ProtoReflect() protoreflect.Message
- func (x *Signable) Reset()
- func (x *Signable) String() string
- type Signable_SignableBytes
- type Signable_Txref
- type Signed
- func (*Signed) Descriptor() ([]byte, []int)deprecated
- func (m *Signed) GetData() isSigned_Data
- func (x *Signed) GetError() int32
- func (x *Signed) GetId() uint64
- func (x *Signed) GetInResponseTo() uint64
- func (x *Signed) GetSignedBytes() []byte
- func (x *Signed) GetSignedTxRef() string
- func (*Signed) ProtoMessage()
- func (x *Signed) ProtoReflect() protoreflect.Message
- func (x *Signed) Reset()
- func (x *Signed) String() string
- type Signed_Error
- type Signed_SignedBytes
- type Signed_SignedTxRef
- type SigningProfile
- func (SigningProfile) Descriptor() protoreflect.EnumDescriptor
- func (x SigningProfile) Enum() *SigningProfile
- func (SigningProfile) EnumDescriptor() ([]byte, []int)deprecated
- func (x SigningProfile) Number() protoreflect.EnumNumber
- func (x SigningProfile) String() string
- func (SigningProfile) Type() protoreflect.EnumType
- type UnimplementedKeyringAdminServer
- func (UnimplementedKeyringAdminServer) Keys(context.Context, *KeyringSpec) (*KeyrefList, error)
- func (UnimplementedKeyringAdminServer) Label(context.Context, *Empty) (*KeyringLabel, error)
- func (UnimplementedKeyringAdminServer) NewKeyring(context.Context, *KeyringSpec) (*KeyringRef, error)
- func (UnimplementedKeyringAdminServer) Remove(context.Context, *KeySpec) (*Result, error)
- type UnimplementedKeyringServer
- func (UnimplementedKeyringServer) Hello(context.Context, *Helo) (*Ehlo, error)
- func (UnimplementedKeyringServer) Key(context.Context, *KeySpec) (*KeyRef, error)
- func (UnimplementedKeyringServer) Metadata(context.Context, *KeySpec) (*KeyMetadata, error)
- func (UnimplementedKeyringServer) NewKey(context.Context, *KeySpec) (*KeyRef, error)
- func (UnimplementedKeyringServer) PubKey(context.Context, *KeySpec) (*PublicKey, error)
- func (UnimplementedKeyringServer) Sign(context.Context, *Msg) (*Signed, error)
- type UnsafeKeyringAdminServer
- type UnsafeKeyringServer
Constants ¶
This section is empty.
Variables ¶
var ( KeygenAlgorithm_name = map[int32]string{ 0: "KEYGEN_SECP256K1", 1: "KEYGEN_SECP256R1", 2: "KEYGEN_ED25519", } KeygenAlgorithm_value = map[string]int32{ "KEYGEN_SECP256K1": 0, "KEYGEN_SECP256R1": 1, "KEYGEN_ED25519": 2, } )
Enum value maps for KeygenAlgorithm.
var ( SigningProfile_name = map[int32]string{ 0: "PROFILE_BC_ECDSA_SHA256", 1: "PROFILE_BC_ECDSA_SHA512", 2: "PROFILE_ECDSA_SHA256", 3: "PROFILE_ECDSA_NOHASH", } SigningProfile_value = map[string]int32{ "PROFILE_BC_ECDSA_SHA256": 0, "PROFILE_BC_ECDSA_SHA512": 1, "PROFILE_ECDSA_SHA256": 2, "PROFILE_ECDSA_NOHASH": 3, } )
Enum value maps for SigningProfile.
var File_keystone2_admin_proto protoreflect.FileDescriptor
var File_keystone2_proto protoreflect.FileDescriptor
var File_keystone_base_proto protoreflect.FileDescriptor
var KeyringAdmin_ServiceDesc = grpc.ServiceDesc{ ServiceName: "keystone.keyringAdmin", HandlerType: (*KeyringAdminServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "newKeyring", Handler: _KeyringAdmin_NewKeyring_Handler, }, { MethodName: "keys", Handler: _KeyringAdmin_Keys_Handler, }, { MethodName: "label", Handler: _KeyringAdmin_Label_Handler, }, { MethodName: "remove", Handler: _KeyringAdmin_Remove_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "keystone2_admin.proto", }
KeyringAdmin_ServiceDesc is the grpc.ServiceDesc for KeyringAdmin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Keyring_ServiceDesc = grpc.ServiceDesc{ ServiceName: "keystone.keyring", HandlerType: (*KeyringServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "hello", Handler: _Keyring_Hello_Handler, }, { MethodName: "newKey", Handler: _Keyring_NewKey_Handler, }, { MethodName: "pubKey", Handler: _Keyring_PubKey_Handler, }, { MethodName: "key", Handler: _Keyring_Key_Handler, }, { MethodName: "metadata", Handler: _Keyring_Metadata_Handler, }, { MethodName: "sign", Handler: _Keyring_Sign_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "keystone2.proto", }
Keyring_ServiceDesc is the grpc.ServiceDesc for Keyring service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterKeyringAdminServer ¶
func RegisterKeyringAdminServer(s grpc.ServiceRegistrar, srv KeyringAdminServer)
func RegisterKeyringServer ¶
func RegisterKeyringServer(s grpc.ServiceRegistrar, srv KeyringServer)
Types ¶
type Ehlo ¶
type Ehlo struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` InResponseTo uint64 `protobuf:"varint,2,opt,name=inResponseTo,proto3" json:"inResponseTo,omitempty"` PublicKey []byte `protobuf:"bytes,3,opt,name=publicKey,proto3" json:"publicKey,omitempty"` EncTimestamp []byte `protobuf:"bytes,4,opt,name=encTimestamp,proto3" json:"encTimestamp,omitempty"` SignedIdKey []byte `protobuf:"bytes,5,opt,name=signedIdKey,proto3" json:"signedIdKey,omitempty"` // contains filtered or unexported fields }
func (*Ehlo) Descriptor
deprecated
func (*Ehlo) GetEncTimestamp ¶
func (*Ehlo) GetInResponseTo ¶
func (*Ehlo) GetPublicKey ¶
func (*Ehlo) GetSignedIdKey ¶
func (*Ehlo) ProtoMessage ¶
func (*Ehlo) ProtoMessage()
func (*Ehlo) ProtoReflect ¶
func (x *Ehlo) ProtoReflect() protoreflect.Message
type Empty ¶
type Empty struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type Helo ¶
type Helo struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` PublicKey []byte `protobuf:"bytes,2,opt,name=publicKey,proto3" json:"publicKey,omitempty"` EncTimestamp []byte `protobuf:"bytes,3,opt,name=encTimestamp,proto3" json:"encTimestamp,omitempty"` SignedIdKey []byte `protobuf:"bytes,4,opt,name=signedIdKey,proto3" json:"signedIdKey,omitempty"` // contains filtered or unexported fields }
func (*Helo) Descriptor
deprecated
func (*Helo) GetEncTimestamp ¶
func (*Helo) GetPublicKey ¶
func (*Helo) GetSignedIdKey ¶
func (*Helo) ProtoMessage ¶
func (*Helo) ProtoMessage()
func (*Helo) ProtoReflect ¶
func (x *Helo) ProtoReflect() protoreflect.Message
type KeyMetadata ¶
type KeyMetadata struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` InResponseTo uint64 `protobuf:"varint,2,opt,name=inResponseTo,proto3" json:"inResponseTo,omitempty"` KeyId uint64 `protobuf:"varint,3,opt,name=keyId,proto3" json:"keyId,omitempty"` Size int32 `protobuf:"fixed32,4,opt,name=size,proto3" json:"size,omitempty"` Algo KeygenAlgorithm `protobuf:"varint,5,opt,name=algo,proto3,enum=keystone.KeygenAlgorithm" json:"algo,omitempty"` // contains filtered or unexported fields }
func (*KeyMetadata) Descriptor
deprecated
func (*KeyMetadata) Descriptor() ([]byte, []int)
Deprecated: Use KeyMetadata.ProtoReflect.Descriptor instead.
func (*KeyMetadata) GetAlgo ¶
func (x *KeyMetadata) GetAlgo() KeygenAlgorithm
func (*KeyMetadata) GetId ¶
func (x *KeyMetadata) GetId() uint64
func (*KeyMetadata) GetInResponseTo ¶
func (x *KeyMetadata) GetInResponseTo() uint64
func (*KeyMetadata) GetKeyId ¶
func (x *KeyMetadata) GetKeyId() uint64
func (*KeyMetadata) GetSize ¶
func (x *KeyMetadata) GetSize() int32
func (*KeyMetadata) ProtoMessage ¶
func (*KeyMetadata) ProtoMessage()
func (*KeyMetadata) ProtoReflect ¶
func (x *KeyMetadata) ProtoReflect() protoreflect.Message
func (*KeyMetadata) Reset ¶
func (x *KeyMetadata) Reset()
func (*KeyMetadata) String ¶
func (x *KeyMetadata) String() string
type KeyRef ¶
type KeyRef struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` InResponseTo uint64 `protobuf:"varint,2,opt,name=inResponseTo,proto3" json:"inResponseTo,omitempty"` Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"` KeyringId string `protobuf:"bytes,4,opt,name=keyringId,proto3" json:"keyringId,omitempty"` IssuerUrl string `protobuf:"bytes,5,opt,name=issuerUrl,proto3" json:"issuerUrl,omitempty"` Expires uint64 `protobuf:"varint,6,opt,name=expires,proto3" json:"expires,omitempty"` IssuerIdUrl string `protobuf:"bytes,7,opt,name=issuerIdUrl,proto3" json:"issuerIdUrl,omitempty"` // contains filtered or unexported fields }
func (*KeyRef) Descriptor
deprecated
func (*KeyRef) GetExpires ¶
func (*KeyRef) GetInResponseTo ¶
func (*KeyRef) GetIssuerIdUrl ¶
func (*KeyRef) GetIssuerUrl ¶
func (*KeyRef) GetKeyringId ¶
func (*KeyRef) ProtoMessage ¶
func (*KeyRef) ProtoMessage()
func (*KeyRef) ProtoReflect ¶
func (x *KeyRef) ProtoReflect() protoreflect.Message
type KeySpec ¶
type KeySpec struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` Size int32 `protobuf:"fixed32,3,opt,name=size,proto3" json:"size,omitempty"` Algo KeygenAlgorithm `protobuf:"varint,4,opt,name=algo,proto3,enum=keystone.KeygenAlgorithm" json:"algo,omitempty"` KeyringId string `protobuf:"bytes,5,opt,name=keyringId,proto3" json:"keyringId,omitempty"` // contains filtered or unexported fields }
func (*KeySpec) Descriptor
deprecated
func (*KeySpec) GetAlgo ¶
func (x *KeySpec) GetAlgo() KeygenAlgorithm
func (*KeySpec) GetKeyringId ¶
func (*KeySpec) ProtoMessage ¶
func (*KeySpec) ProtoMessage()
func (*KeySpec) ProtoReflect ¶
func (x *KeySpec) ProtoReflect() protoreflect.Message
type KeygenAlgorithm ¶
type KeygenAlgorithm int32
keygenAlgorithm is the algorithm that should be used for generating a key - typically the EC curve in use that the key is related to.
const ( KeygenAlgorithm_KEYGEN_SECP256K1 KeygenAlgorithm = 0 KeygenAlgorithm_KEYGEN_SECP256R1 KeygenAlgorithm = 1 KeygenAlgorithm_KEYGEN_ED25519 KeygenAlgorithm = 2 )
func (KeygenAlgorithm) Descriptor ¶
func (KeygenAlgorithm) Descriptor() protoreflect.EnumDescriptor
func (KeygenAlgorithm) Enum ¶
func (x KeygenAlgorithm) Enum() *KeygenAlgorithm
func (KeygenAlgorithm) EnumDescriptor
deprecated
func (KeygenAlgorithm) EnumDescriptor() ([]byte, []int)
Deprecated: Use KeygenAlgorithm.Descriptor instead.
func (KeygenAlgorithm) Number ¶
func (x KeygenAlgorithm) Number() protoreflect.EnumNumber
func (KeygenAlgorithm) String ¶
func (x KeygenAlgorithm) String() string
func (KeygenAlgorithm) Type ¶
func (KeygenAlgorithm) Type() protoreflect.EnumType
type KeyrefList ¶
type KeyrefList struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` InResponseTo uint64 `protobuf:"varint,2,opt,name=inResponseTo,proto3" json:"inResponseTo,omitempty"` Label []*KeyRef `protobuf:"bytes,3,rep,name=label,proto3" json:"label,omitempty"` // contains filtered or unexported fields }
func (*KeyrefList) Descriptor
deprecated
func (*KeyrefList) Descriptor() ([]byte, []int)
Deprecated: Use KeyrefList.ProtoReflect.Descriptor instead.
func (*KeyrefList) GetId ¶
func (x *KeyrefList) GetId() uint64
func (*KeyrefList) GetInResponseTo ¶
func (x *KeyrefList) GetInResponseTo() uint64
func (*KeyrefList) GetLabel ¶
func (x *KeyrefList) GetLabel() []*KeyRef
func (*KeyrefList) ProtoMessage ¶
func (*KeyrefList) ProtoMessage()
func (*KeyrefList) ProtoReflect ¶
func (x *KeyrefList) ProtoReflect() protoreflect.Message
func (*KeyrefList) Reset ¶
func (x *KeyrefList) Reset()
func (*KeyrefList) String ¶
func (x *KeyrefList) String() string
type KeyringAdminClient ¶
type KeyringAdminClient interface { NewKeyring(ctx context.Context, in *KeyringSpec, opts ...grpc.CallOption) (*KeyringRef, error) Keys(ctx context.Context, in *KeyringSpec, opts ...grpc.CallOption) (*KeyrefList, error) Label(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*KeyringLabel, error) Remove(ctx context.Context, in *KeySpec, opts ...grpc.CallOption) (*Result, error) }
KeyringAdminClient is the client API for KeyringAdmin service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewKeyringAdminClient ¶
func NewKeyringAdminClient(cc grpc.ClientConnInterface) KeyringAdminClient
type KeyringAdminServer ¶
type KeyringAdminServer interface { NewKeyring(context.Context, *KeyringSpec) (*KeyringRef, error) Keys(context.Context, *KeyringSpec) (*KeyrefList, error) Label(context.Context, *Empty) (*KeyringLabel, error) Remove(context.Context, *KeySpec) (*Result, error) // contains filtered or unexported methods }
KeyringAdminServer is the server API for KeyringAdmin service. All implementations must embed UnimplementedKeyringAdminServer for forward compatibility
type KeyringClient ¶
type KeyringClient interface { Hello(ctx context.Context, in *Helo, opts ...grpc.CallOption) (*Ehlo, error) NewKey(ctx context.Context, in *KeySpec, opts ...grpc.CallOption) (*KeyRef, error) PubKey(ctx context.Context, in *KeySpec, opts ...grpc.CallOption) (*PublicKey, error) Key(ctx context.Context, in *KeySpec, opts ...grpc.CallOption) (*KeyRef, error) Metadata(ctx context.Context, in *KeySpec, opts ...grpc.CallOption) (*KeyMetadata, error) Sign(ctx context.Context, in *Msg, opts ...grpc.CallOption) (*Signed, error) }
KeyringClient is the client API for Keyring service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewKeyringClient ¶
func NewKeyringClient(cc grpc.ClientConnInterface) KeyringClient
type KeyringLabel ¶
type KeyringLabel struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` InResponseTo uint64 `protobuf:"varint,2,opt,name=inResponseTo,proto3" json:"inResponseTo,omitempty"` Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"` // contains filtered or unexported fields }
func (*KeyringLabel) Descriptor
deprecated
func (*KeyringLabel) Descriptor() ([]byte, []int)
Deprecated: Use KeyringLabel.ProtoReflect.Descriptor instead.
func (*KeyringLabel) GetId ¶
func (x *KeyringLabel) GetId() uint64
func (*KeyringLabel) GetInResponseTo ¶
func (x *KeyringLabel) GetInResponseTo() uint64
func (*KeyringLabel) GetLabel ¶
func (x *KeyringLabel) GetLabel() string
func (*KeyringLabel) ProtoMessage ¶
func (*KeyringLabel) ProtoMessage()
func (*KeyringLabel) ProtoReflect ¶
func (x *KeyringLabel) ProtoReflect() protoreflect.Message
func (*KeyringLabel) Reset ¶
func (x *KeyringLabel) Reset()
func (*KeyringLabel) String ¶
func (x *KeyringLabel) String() string
type KeyringRef ¶
type KeyringRef struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` InResponseTo uint64 `protobuf:"varint,2,opt,name=inResponseTo,proto3" json:"inResponseTo,omitempty"` Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"` IssuerUrl string `protobuf:"bytes,4,opt,name=issuerUrl,proto3" json:"issuerUrl,omitempty"` Expires uint64 `protobuf:"varint,5,opt,name=expires,proto3" json:"expires,omitempty"` IssuerIdUrl string `protobuf:"bytes,6,opt,name=issuerIdUrl,proto3" json:"issuerIdUrl,omitempty"` // contains filtered or unexported fields }
func (*KeyringRef) Descriptor
deprecated
func (*KeyringRef) Descriptor() ([]byte, []int)
Deprecated: Use KeyringRef.ProtoReflect.Descriptor instead.
func (*KeyringRef) GetExpires ¶
func (x *KeyringRef) GetExpires() uint64
func (*KeyringRef) GetId ¶
func (x *KeyringRef) GetId() uint64
func (*KeyringRef) GetInResponseTo ¶
func (x *KeyringRef) GetInResponseTo() uint64
func (*KeyringRef) GetIssuerIdUrl ¶
func (x *KeyringRef) GetIssuerIdUrl() string
func (*KeyringRef) GetIssuerUrl ¶
func (x *KeyringRef) GetIssuerUrl() string
func (*KeyringRef) GetLabel ¶
func (x *KeyringRef) GetLabel() string
func (*KeyringRef) ProtoMessage ¶
func (*KeyringRef) ProtoMessage()
func (*KeyringRef) ProtoReflect ¶
func (x *KeyringRef) ProtoReflect() protoreflect.Message
func (*KeyringRef) Reset ¶
func (x *KeyringRef) Reset()
func (*KeyringRef) String ¶
func (x *KeyringRef) String() string
type KeyringServer ¶
type KeyringServer interface { Hello(context.Context, *Helo) (*Ehlo, error) NewKey(context.Context, *KeySpec) (*KeyRef, error) PubKey(context.Context, *KeySpec) (*PublicKey, error) Key(context.Context, *KeySpec) (*KeyRef, error) Metadata(context.Context, *KeySpec) (*KeyMetadata, error) Sign(context.Context, *Msg) (*Signed, error) // contains filtered or unexported methods }
KeyringServer is the server API for Keyring service. All implementations must embed UnimplementedKeyringServer for forward compatibility
type KeyringSpec ¶
type KeyringSpec struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` // contains filtered or unexported fields }
func (*KeyringSpec) Descriptor
deprecated
func (*KeyringSpec) Descriptor() ([]byte, []int)
Deprecated: Use KeyringSpec.ProtoReflect.Descriptor instead.
func (*KeyringSpec) GetId ¶
func (x *KeyringSpec) GetId() uint64
func (*KeyringSpec) GetLabel ¶
func (x *KeyringSpec) GetLabel() string
func (*KeyringSpec) ProtoMessage ¶
func (*KeyringSpec) ProtoMessage()
func (*KeyringSpec) ProtoReflect ¶
func (x *KeyringSpec) ProtoReflect() protoreflect.Message
func (*KeyringSpec) Reset ¶
func (x *KeyringSpec) Reset()
func (*KeyringSpec) String ¶
func (x *KeyringSpec) String() string
type Msg ¶
type Msg struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` InResponseTo uint64 `protobuf:"varint,2,opt,name=inResponseTo,proto3" json:"inResponseTo,omitempty"` KeySpec *KeySpec `protobuf:"bytes,3,opt,name=keySpec,proto3" json:"keySpec,omitempty"` SigningProfile SigningProfile `protobuf:"varint,4,opt,name=signingProfile,proto3,enum=keystone.SigningProfile" json:"signingProfile,omitempty"` Content *Signable `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*Msg) Descriptor
deprecated
func (*Msg) GetContent ¶
func (*Msg) GetInResponseTo ¶
func (*Msg) GetKeySpec ¶
func (*Msg) GetSigningProfile ¶
func (x *Msg) GetSigningProfile() SigningProfile
func (*Msg) ProtoMessage ¶
func (*Msg) ProtoMessage()
func (*Msg) ProtoReflect ¶
func (x *Msg) ProtoReflect() protoreflect.Message
type PublicKey ¶
type PublicKey struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` InResponseTo uint64 `protobuf:"varint,2,opt,name=inResponseTo,proto3" json:"inResponseTo,omitempty"` Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"` KeyBytes []byte `protobuf:"bytes,4,opt,name=keyBytes,proto3" json:"keyBytes,omitempty"` // contains filtered or unexported fields }
func (*PublicKey) Descriptor
deprecated
func (*PublicKey) GetInResponseTo ¶
func (*PublicKey) GetKeyBytes ¶
func (*PublicKey) ProtoMessage ¶
func (*PublicKey) ProtoMessage()
func (*PublicKey) ProtoReflect ¶
func (x *PublicKey) ProtoReflect() protoreflect.Message
type Result ¶
type Result struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` InResponseTo uint64 `protobuf:"varint,2,opt,name=inResponseTo,proto3" json:"inResponseTo,omitempty"` // error == 0 indicates success, any non-zero error is an actual error Error int32 `protobuf:"varint,3,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*Result) Descriptor
deprecated
func (*Result) GetInResponseTo ¶
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) ProtoReflect ¶
func (x *Result) ProtoReflect() protoreflect.Message
type Signable ¶
type Signable struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Types that are assignable to Data: // *Signable_SignableBytes // *Signable_Txref Data isSignable_Data `protobuf_oneof:"data"` // contains filtered or unexported fields }
func (*Signable) Descriptor
deprecated
func (*Signable) GetSignableBytes ¶
func (*Signable) ProtoMessage ¶
func (*Signable) ProtoMessage()
func (*Signable) ProtoReflect ¶
func (x *Signable) ProtoReflect() protoreflect.Message
type Signable_SignableBytes ¶
type Signable_SignableBytes struct {
SignableBytes []byte `protobuf:"bytes,2,opt,name=signableBytes,proto3,oneof"`
}
type Signable_Txref ¶
type Signable_Txref struct {
Txref string `protobuf:"bytes,3,opt,name=txref,proto3,oneof"`
}
type Signed ¶
type Signed struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` InResponseTo uint64 `protobuf:"varint,2,opt,name=inResponseTo,proto3" json:"inResponseTo,omitempty"` // Types that are assignable to Data: // *Signed_SignedBytes // *Signed_SignedTxRef // *Signed_Error Data isSigned_Data `protobuf_oneof:"data"` // contains filtered or unexported fields }
func (*Signed) Descriptor
deprecated
func (*Signed) GetInResponseTo ¶
func (*Signed) GetSignedBytes ¶
func (*Signed) GetSignedTxRef ¶
func (*Signed) ProtoMessage ¶
func (*Signed) ProtoMessage()
func (*Signed) ProtoReflect ¶
func (x *Signed) ProtoReflect() protoreflect.Message
type Signed_Error ¶
type Signed_Error struct {
Error int32 `protobuf:"varint,5,opt,name=error,proto3,oneof"`
}
type Signed_SignedBytes ¶
type Signed_SignedBytes struct {
SignedBytes []byte `protobuf:"bytes,3,opt,name=signedBytes,proto3,oneof"`
}
type Signed_SignedTxRef ¶
type Signed_SignedTxRef struct {
SignedTxRef string `protobuf:"bytes,4,opt,name=signedTxRef,proto3,oneof"`
}
type SigningProfile ¶
type SigningProfile int32
const ( // ECDSA signing, SHA256 prior to signature, low-s normalization, // and raw r, s values instead of ASN SigningProfile_PROFILE_BC_ECDSA_SHA256 SigningProfile = 0 // ECDSA signing, SHA512 prior to signature, low-s normalization, // and raw r, s values instead of google.protobuf.EmptyASN SigningProfile_PROFILE_BC_ECDSA_SHA512 SigningProfile = 1 // ECDSA signing, SHA256 prior to signature, no normalization, and // standard ASN1 encoding SigningProfile_PROFILE_ECDSA_SHA256 SigningProfile = 2 // ECDSA signing, caller is expected to hash (or not), standard ASN1 // encoding SigningProfile_PROFILE_ECDSA_NOHASH SigningProfile = 3 )
func (SigningProfile) Descriptor ¶
func (SigningProfile) Descriptor() protoreflect.EnumDescriptor
func (SigningProfile) Enum ¶
func (x SigningProfile) Enum() *SigningProfile
func (SigningProfile) EnumDescriptor
deprecated
func (SigningProfile) EnumDescriptor() ([]byte, []int)
Deprecated: Use SigningProfile.Descriptor instead.
func (SigningProfile) Number ¶
func (x SigningProfile) Number() protoreflect.EnumNumber
func (SigningProfile) String ¶
func (x SigningProfile) String() string
func (SigningProfile) Type ¶
func (SigningProfile) Type() protoreflect.EnumType
type UnimplementedKeyringAdminServer ¶
type UnimplementedKeyringAdminServer struct { }
UnimplementedKeyringAdminServer must be embedded to have forward compatible implementations.
func (UnimplementedKeyringAdminServer) Keys ¶
func (UnimplementedKeyringAdminServer) Keys(context.Context, *KeyringSpec) (*KeyrefList, error)
func (UnimplementedKeyringAdminServer) Label ¶
func (UnimplementedKeyringAdminServer) Label(context.Context, *Empty) (*KeyringLabel, error)
func (UnimplementedKeyringAdminServer) NewKeyring ¶
func (UnimplementedKeyringAdminServer) NewKeyring(context.Context, *KeyringSpec) (*KeyringRef, error)
type UnimplementedKeyringServer ¶
type UnimplementedKeyringServer struct { }
UnimplementedKeyringServer must be embedded to have forward compatible implementations.
func (UnimplementedKeyringServer) Metadata ¶
func (UnimplementedKeyringServer) Metadata(context.Context, *KeySpec) (*KeyMetadata, error)
type UnsafeKeyringAdminServer ¶
type UnsafeKeyringAdminServer interface {
// contains filtered or unexported methods
}
UnsafeKeyringAdminServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KeyringAdminServer will result in compilation errors.
type UnsafeKeyringServer ¶
type UnsafeKeyringServer interface {
// contains filtered or unexported methods
}
UnsafeKeyringServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KeyringServer will result in compilation errors.