// SPDX-License-Identifier: MIT // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.12 // protoc (unknown) // source: ermite/signature.proto package ermite import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" sync "sync" unsafe "unsafe" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) // SignatureFormat is the protocol of a commit signature. type SignatureFormat int32 const ( // Not signed, or not set. SignatureFormat_SIGNATURE_FORMAT_UNSPECIFIED SignatureFormat = 0 // Git SSH signature (gpg.format=ssh, "-----BEGIN SSH SIGNATURE-----"). SignatureFormat_SIGNATURE_FORMAT_SSH SignatureFormat = 1 // OpenPGP signature (gpg.format=openpgp, "-----BEGIN PGP SIGNATURE-----"). SignatureFormat_SIGNATURE_FORMAT_GPG SignatureFormat = 2 // X.509 (gpgsm) signature. Recognized, never verified. SignatureFormat_SIGNATURE_FORMAT_X509 SignatureFormat = 3 ) // Enum value maps for SignatureFormat. var ( SignatureFormat_name = map[int32]string{ 0: "SIGNATURE_FORMAT_UNSPECIFIED", 1: "SIGNATURE_FORMAT_SSH", 2: "SIGNATURE_FORMAT_GPG", 3: "SIGNATURE_FORMAT_X509", } SignatureFormat_value = map[string]int32{ "SIGNATURE_FORMAT_UNSPECIFIED": 0, "SIGNATURE_FORMAT_SSH": 1, "SIGNATURE_FORMAT_GPG": 2, "SIGNATURE_FORMAT_X509": 3, } ) func (x SignatureFormat) Enum() *SignatureFormat { p := new(SignatureFormat) *p = x return p } func (x SignatureFormat) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (SignatureFormat) Descriptor() protoreflect.EnumDescriptor { return file_ermite_signature_proto_enumTypes[0].Descriptor() } func (SignatureFormat) Type() protoreflect.EnumType { return &file_ermite_signature_proto_enumTypes[0] } func (x SignatureFormat) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use SignatureFormat.Descriptor instead. func (SignatureFormat) EnumDescriptor() ([]byte, []int) { return file_ermite_signature_proto_rawDescGZIP(), []int{0} } // SignatureStatus is the outcome of checking the signature of a commit. type SignatureStatus int32 const ( // The server did not check the commit (it could not be read). SignatureStatus_SIGNATURE_STATUS_UNSPECIFIED SignatureStatus = 0 // The commit carries no signature. SignatureStatus_SIGNATURE_STATUS_UNSIGNED SignatureStatus = 1 // Valid signature by a trusted key that is trusted for the committer email. SignatureStatus_SIGNATURE_STATUS_VERIFIED SignatureStatus = 2 // Well-formed signature by a key the server does not trust. SignatureStatus_SIGNATURE_STATUS_UNKNOWN_KEY SignatureStatus = 3 // The signature is malformed, does not match the commit, or uses a weak // hash (SHA-1 and older). SignatureStatus_SIGNATURE_STATUS_BAD_SIGNATURE SignatureStatus = 4 // Valid signature by a trusted key that is not trusted for the committer // email. SignatureStatus_SIGNATURE_STATUS_EMAIL_MISMATCH SignatureStatus = 5 // The OpenPGP key or signature had expired when the signature was made. SignatureStatus_SIGNATURE_STATUS_EXPIRED SignatureStatus = 6 // The OpenPGP key is revoked. SignatureStatus_SIGNATURE_STATUS_REVOKED SignatureStatus = 7 // The format is not verified by the server (X.509). SignatureStatus_SIGNATURE_STATUS_UNSUPPORTED SignatureStatus = 8 ) // Enum value maps for SignatureStatus. var ( SignatureStatus_name = map[int32]string{ 0: "SIGNATURE_STATUS_UNSPECIFIED", 1: "SIGNATURE_STATUS_UNSIGNED", 2: "SIGNATURE_STATUS_VERIFIED", 3: "SIGNATURE_STATUS_UNKNOWN_KEY", 4: "SIGNATURE_STATUS_BAD_SIGNATURE", 5: "SIGNATURE_STATUS_EMAIL_MISMATCH", 6: "SIGNATURE_STATUS_EXPIRED", 7: "SIGNATURE_STATUS_REVOKED", 8: "SIGNATURE_STATUS_UNSUPPORTED", } SignatureStatus_value = map[string]int32{ "SIGNATURE_STATUS_UNSPECIFIED": 0, "SIGNATURE_STATUS_UNSIGNED": 1, "SIGNATURE_STATUS_VERIFIED": 2, "SIGNATURE_STATUS_UNKNOWN_KEY": 3, "SIGNATURE_STATUS_BAD_SIGNATURE": 4, "SIGNATURE_STATUS_EMAIL_MISMATCH": 5, "SIGNATURE_STATUS_EXPIRED": 6, "SIGNATURE_STATUS_REVOKED": 7, "SIGNATURE_STATUS_UNSUPPORTED": 8, } ) func (x SignatureStatus) Enum() *SignatureStatus { p := new(SignatureStatus) *p = x return p } func (x SignatureStatus) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (SignatureStatus) Descriptor() protoreflect.EnumDescriptor { return file_ermite_signature_proto_enumTypes[1].Descriptor() } func (SignatureStatus) Type() protoreflect.EnumType { return &file_ermite_signature_proto_enumTypes[1] } func (x SignatureStatus) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use SignatureStatus.Descriptor instead. func (SignatureStatus) EnumDescriptor() ([]byte, []int) { return file_ermite_signature_proto_rawDescGZIP(), []int{1} } // CommitVerification tells whether and how a commit is signed. type CommitVerification struct { state protoimpl.MessageState `protogen:"open.v1"` Format SignatureFormat `protobuf:"varint,1,opt,name=format,proto3,enum=ermite.SignatureFormat" json:"format,omitempty"` Status SignatureStatus `protobuf:"varint,2,opt,name=status,proto3,enum=ermite.SignatureStatus" json:"status,omitempty"` // Fingerprint of the signing key when the signature names one: // "SHA256:" for SSH, upper-case hex for OpenPGP (the 16-digit // issuer key id when the key is unknown). Fingerprint string `protobuf:"bytes,3,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` // KeyId is the id of the trusted key that matched; empty when none did. KeyId string `protobuf:"bytes,4,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` // KeyTitle is the title of the trusted key that matched. KeyTitle string `protobuf:"bytes,5,opt,name=key_title,json=keyTitle,proto3" json:"key_title,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CommitVerification) Reset() { *x = CommitVerification{} mi := &file_ermite_signature_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CommitVerification) String() string { return protoimpl.X.MessageStringOf(x) } func (*CommitVerification) ProtoMessage() {} func (x *CommitVerification) ProtoReflect() protoreflect.Message { mi := &file_ermite_signature_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use CommitVerification.ProtoReflect.Descriptor instead. func (*CommitVerification) Descriptor() ([]byte, []int) { return file_ermite_signature_proto_rawDescGZIP(), []int{0} } func (x *CommitVerification) GetFormat() SignatureFormat { if x != nil { return x.Format } return SignatureFormat_SIGNATURE_FORMAT_UNSPECIFIED } func (x *CommitVerification) GetStatus() SignatureStatus { if x != nil { return x.Status } return SignatureStatus_SIGNATURE_STATUS_UNSPECIFIED } func (x *CommitVerification) GetFingerprint() string { if x != nil { return x.Fingerprint } return "" } func (x *CommitVerification) GetKeyId() string { if x != nil { return x.KeyId } return "" } func (x *CommitVerification) GetKeyTitle() string { if x != nil { return x.KeyTitle } return "" } // TrustedKey is a public key whose signatures the server accepts for the // listed committer emails. type TrustedKey struct { state protoimpl.MessageState `protogen:"open.v1"` // Id is the key fingerprint: "SHA256:" for SSH, the primary key // fingerprint in upper-case hex for OpenPGP. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Format is SIGNATURE_FORMAT_SSH or SIGNATURE_FORMAT_GPG. Format SignatureFormat `protobuf:"varint,2,opt,name=format,proto3,enum=ermite.SignatureFormat" json:"format,omitempty"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` // PublicKey is " " for SSH, the armored public key for // OpenPGP. PublicKey string `protobuf:"bytes,4,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // Emails are the committer emails the key may sign for, lower-case. Emails []string `protobuf:"bytes,5,rep,name=emails,proto3" json:"emails,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Builtin is true for the server's own signing key // (ServerService.GetSigningKey): always trusted, cannot be removed. Builtin bool `protobuf:"varint,7,opt,name=builtin,proto3" json:"builtin,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *TrustedKey) Reset() { *x = TrustedKey{} mi := &file_ermite_signature_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *TrustedKey) String() string { return protoimpl.X.MessageStringOf(x) } func (*TrustedKey) ProtoMessage() {} func (x *TrustedKey) ProtoReflect() protoreflect.Message { mi := &file_ermite_signature_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use TrustedKey.ProtoReflect.Descriptor instead. func (*TrustedKey) Descriptor() ([]byte, []int) { return file_ermite_signature_proto_rawDescGZIP(), []int{1} } func (x *TrustedKey) GetId() string { if x != nil { return x.Id } return "" } func (x *TrustedKey) GetFormat() SignatureFormat { if x != nil { return x.Format } return SignatureFormat_SIGNATURE_FORMAT_UNSPECIFIED } func (x *TrustedKey) GetTitle() string { if x != nil { return x.Title } return "" } func (x *TrustedKey) GetPublicKey() string { if x != nil { return x.PublicKey } return "" } func (x *TrustedKey) GetEmails() []string { if x != nil { return x.Emails } return nil } func (x *TrustedKey) GetCreatedAt() *timestamppb.Timestamp { if x != nil { return x.CreatedAt } return nil } func (x *TrustedKey) GetBuiltin() bool { if x != nil { return x.Builtin } return false } // ListTrustedKeysRequest is empty. type ListTrustedKeysRequest struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ListTrustedKeysRequest) Reset() { *x = ListTrustedKeysRequest{} mi := &file_ermite_signature_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ListTrustedKeysRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListTrustedKeysRequest) ProtoMessage() {} func (x *ListTrustedKeysRequest) ProtoReflect() protoreflect.Message { mi := &file_ermite_signature_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ListTrustedKeysRequest.ProtoReflect.Descriptor instead. func (*ListTrustedKeysRequest) Descriptor() ([]byte, []int) { return file_ermite_signature_proto_rawDescGZIP(), []int{2} } // ListTrustedKeysResponse lists every trusted key. type ListTrustedKeysResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Keys []*TrustedKey `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ListTrustedKeysResponse) Reset() { *x = ListTrustedKeysResponse{} mi := &file_ermite_signature_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ListTrustedKeysResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListTrustedKeysResponse) ProtoMessage() {} func (x *ListTrustedKeysResponse) ProtoReflect() protoreflect.Message { mi := &file_ermite_signature_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ListTrustedKeysResponse.ProtoReflect.Descriptor instead. func (*ListTrustedKeysResponse) Descriptor() ([]byte, []int) { return file_ermite_signature_proto_rawDescGZIP(), []int{3} } func (x *ListTrustedKeysResponse) GetKeys() []*TrustedKey { if x != nil { return x.Keys } return nil } // AddTrustedKeyRequest describes the key to trust. type AddTrustedKeyRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // Format is SIGNATURE_FORMAT_SSH or SIGNATURE_FORMAT_GPG. Format SignatureFormat `protobuf:"varint,1,opt,name=format,proto3,enum=ermite.SignatureFormat" json:"format,omitempty"` // Title is a label, 1 to 100 bytes. Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` // PublicKey is an authorized_keys line for SSH, or an armored public key // block for OpenPGP (at most 64 KiB). PublicKey string `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // Emails are the committer emails the key may sign for, 1 to 10. Emails []string `protobuf:"bytes,4,rep,name=emails,proto3" json:"emails,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *AddTrustedKeyRequest) Reset() { *x = AddTrustedKeyRequest{} mi := &file_ermite_signature_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *AddTrustedKeyRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*AddTrustedKeyRequest) ProtoMessage() {} func (x *AddTrustedKeyRequest) ProtoReflect() protoreflect.Message { mi := &file_ermite_signature_proto_msgTypes[4] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use AddTrustedKeyRequest.ProtoReflect.Descriptor instead. func (*AddTrustedKeyRequest) Descriptor() ([]byte, []int) { return file_ermite_signature_proto_rawDescGZIP(), []int{4} } func (x *AddTrustedKeyRequest) GetFormat() SignatureFormat { if x != nil { return x.Format } return SignatureFormat_SIGNATURE_FORMAT_UNSPECIFIED } func (x *AddTrustedKeyRequest) GetTitle() string { if x != nil { return x.Title } return "" } func (x *AddTrustedKeyRequest) GetPublicKey() string { if x != nil { return x.PublicKey } return "" } func (x *AddTrustedKeyRequest) GetEmails() []string { if x != nil { return x.Emails } return nil } // AddTrustedKeyResponse returns the stored key. type AddTrustedKeyResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Key *TrustedKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *AddTrustedKeyResponse) Reset() { *x = AddTrustedKeyResponse{} mi := &file_ermite_signature_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *AddTrustedKeyResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*AddTrustedKeyResponse) ProtoMessage() {} func (x *AddTrustedKeyResponse) ProtoReflect() protoreflect.Message { mi := &file_ermite_signature_proto_msgTypes[5] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use AddTrustedKeyResponse.ProtoReflect.Descriptor instead. func (*AddTrustedKeyResponse) Descriptor() ([]byte, []int) { return file_ermite_signature_proto_rawDescGZIP(), []int{5} } func (x *AddTrustedKeyResponse) GetKey() *TrustedKey { if x != nil { return x.Key } return nil } // RemoveTrustedKeyRequest names the key to remove. type RemoveTrustedKeyRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *RemoveTrustedKeyRequest) Reset() { *x = RemoveTrustedKeyRequest{} mi := &file_ermite_signature_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *RemoveTrustedKeyRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*RemoveTrustedKeyRequest) ProtoMessage() {} func (x *RemoveTrustedKeyRequest) ProtoReflect() protoreflect.Message { mi := &file_ermite_signature_proto_msgTypes[6] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use RemoveTrustedKeyRequest.ProtoReflect.Descriptor instead. func (*RemoveTrustedKeyRequest) Descriptor() ([]byte, []int) { return file_ermite_signature_proto_rawDescGZIP(), []int{6} } func (x *RemoveTrustedKeyRequest) GetId() string { if x != nil { return x.Id } return "" } // RemoveTrustedKeyResponse is empty. type RemoveTrustedKeyResponse struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *RemoveTrustedKeyResponse) Reset() { *x = RemoveTrustedKeyResponse{} mi := &file_ermite_signature_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *RemoveTrustedKeyResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*RemoveTrustedKeyResponse) ProtoMessage() {} func (x *RemoveTrustedKeyResponse) ProtoReflect() protoreflect.Message { mi := &file_ermite_signature_proto_msgTypes[7] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use RemoveTrustedKeyResponse.ProtoReflect.Descriptor instead. func (*RemoveTrustedKeyResponse) Descriptor() ([]byte, []int) { return file_ermite_signature_proto_rawDescGZIP(), []int{7} } var File_ermite_signature_proto protoreflect.FileDescriptor const file_ermite_signature_proto_rawDesc = "" + "\n" + "\x16ermite/signature.proto\x12\x06ermite\x1a\x1fgoogle/protobuf/timestamp.proto\"\xcc\x01\n" + "\x12CommitVerification\x12/\n" + "\x06format\x18\x01 \x01(\x0e2\x17.ermite.SignatureFormatR\x06format\x12/\n" + "\x06status\x18\x02 \x01(\x0e2\x17.ermite.SignatureStatusR\x06status\x12 \n" + "\vfingerprint\x18\x03 \x01(\tR\vfingerprint\x12\x15\n" + "\x06key_id\x18\x04 \x01(\tR\x05keyId\x12\x1b\n" + "\tkey_title\x18\x05 \x01(\tR\bkeyTitle\"\xef\x01\n" + "\n" + "TrustedKey\x12\x0e\n" + "\x02id\x18\x01 \x01(\tR\x02id\x12/\n" + "\x06format\x18\x02 \x01(\x0e2\x17.ermite.SignatureFormatR\x06format\x12\x14\n" + "\x05title\x18\x03 \x01(\tR\x05title\x12\x1d\n" + "\n" + "public_key\x18\x04 \x01(\tR\tpublicKey\x12\x16\n" + "\x06emails\x18\x05 \x03(\tR\x06emails\x129\n" + "\n" + "created_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x18\n" + "\abuiltin\x18\a \x01(\bR\abuiltin\"\x18\n" + "\x16ListTrustedKeysRequest\"A\n" + "\x17ListTrustedKeysResponse\x12&\n" + "\x04keys\x18\x01 \x03(\v2\x12.ermite.TrustedKeyR\x04keys\"\x94\x01\n" + "\x14AddTrustedKeyRequest\x12/\n" + "\x06format\x18\x01 \x01(\x0e2\x17.ermite.SignatureFormatR\x06format\x12\x14\n" + "\x05title\x18\x02 \x01(\tR\x05title\x12\x1d\n" + "\n" + "public_key\x18\x03 \x01(\tR\tpublicKey\x12\x16\n" + "\x06emails\x18\x04 \x03(\tR\x06emails\"=\n" + "\x15AddTrustedKeyResponse\x12$\n" + "\x03key\x18\x01 \x01(\v2\x12.ermite.TrustedKeyR\x03key\")\n" + "\x17RemoveTrustedKeyRequest\x12\x0e\n" + "\x02id\x18\x01 \x01(\tR\x02id\"\x1a\n" + "\x18RemoveTrustedKeyResponse*\x82\x01\n" + "\x0fSignatureFormat\x12 \n" + "\x1cSIGNATURE_FORMAT_UNSPECIFIED\x10\x00\x12\x18\n" + "\x14SIGNATURE_FORMAT_SSH\x10\x01\x12\x18\n" + "\x14SIGNATURE_FORMAT_GPG\x10\x02\x12\x19\n" + "\x15SIGNATURE_FORMAT_X509\x10\x03*\xba\x02\n" + "\x0fSignatureStatus\x12 \n" + "\x1cSIGNATURE_STATUS_UNSPECIFIED\x10\x00\x12\x1d\n" + "\x19SIGNATURE_STATUS_UNSIGNED\x10\x01\x12\x1d\n" + "\x19SIGNATURE_STATUS_VERIFIED\x10\x02\x12 \n" + "\x1cSIGNATURE_STATUS_UNKNOWN_KEY\x10\x03\x12\"\n" + "\x1eSIGNATURE_STATUS_BAD_SIGNATURE\x10\x04\x12#\n" + "\x1fSIGNATURE_STATUS_EMAIL_MISMATCH\x10\x05\x12\x1c\n" + "\x18SIGNATURE_STATUS_EXPIRED\x10\x06\x12\x1c\n" + "\x18SIGNATURE_STATUS_REVOKED\x10\a\x12 \n" + "\x1cSIGNATURE_STATUS_UNSUPPORTED\x10\b2\x8c\x02\n" + "\x11TrustedKeyService\x12R\n" + "\x0fListTrustedKeys\x12\x1e.ermite.ListTrustedKeysRequest\x1a\x1f.ermite.ListTrustedKeysResponse\x12L\n" + "\rAddTrustedKey\x12\x1c.ermite.AddTrustedKeyRequest\x1a\x1d.ermite.AddTrustedKeyResponse\x12U\n" + "\x10RemoveTrustedKey\x12\x1f.ermite.RemoveTrustedKeyRequest\x1a .ermite.RemoveTrustedKeyResponseBu\n" + "\n" + "com.ermiteB\x0eSignatureProtoP\x01Z\x1fbnema.dev/ermite-api/gen/ermite\xa2\x02\x03EXX\xaa\x02\x06Ermite\xca\x02\x06Ermite\xe2\x02\x12Ermite\\GPBMetadata\xea\x02\x06Ermiteb\x06proto3" var ( file_ermite_signature_proto_rawDescOnce sync.Once file_ermite_signature_proto_rawDescData []byte ) func file_ermite_signature_proto_rawDescGZIP() []byte { file_ermite_signature_proto_rawDescOnce.Do(func() { file_ermite_signature_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ermite_signature_proto_rawDesc), len(file_ermite_signature_proto_rawDesc))) }) return file_ermite_signature_proto_rawDescData } var file_ermite_signature_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_ermite_signature_proto_msgTypes = make([]protoimpl.MessageInfo, 8) var file_ermite_signature_proto_goTypes = []any{ (SignatureFormat)(0), // 0: ermite.SignatureFormat (SignatureStatus)(0), // 1: ermite.SignatureStatus (*CommitVerification)(nil), // 2: ermite.CommitVerification (*TrustedKey)(nil), // 3: ermite.TrustedKey (*ListTrustedKeysRequest)(nil), // 4: ermite.ListTrustedKeysRequest (*ListTrustedKeysResponse)(nil), // 5: ermite.ListTrustedKeysResponse (*AddTrustedKeyRequest)(nil), // 6: ermite.AddTrustedKeyRequest (*AddTrustedKeyResponse)(nil), // 7: ermite.AddTrustedKeyResponse (*RemoveTrustedKeyRequest)(nil), // 8: ermite.RemoveTrustedKeyRequest (*RemoveTrustedKeyResponse)(nil), // 9: ermite.RemoveTrustedKeyResponse (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp } var file_ermite_signature_proto_depIdxs = []int32{ 0, // 0: ermite.CommitVerification.format:type_name -> ermite.SignatureFormat 1, // 1: ermite.CommitVerification.status:type_name -> ermite.SignatureStatus 0, // 2: ermite.TrustedKey.format:type_name -> ermite.SignatureFormat 10, // 3: ermite.TrustedKey.created_at:type_name -> google.protobuf.Timestamp 3, // 4: ermite.ListTrustedKeysResponse.keys:type_name -> ermite.TrustedKey 0, // 5: ermite.AddTrustedKeyRequest.format:type_name -> ermite.SignatureFormat 3, // 6: ermite.AddTrustedKeyResponse.key:type_name -> ermite.TrustedKey 4, // 7: ermite.TrustedKeyService.ListTrustedKeys:input_type -> ermite.ListTrustedKeysRequest 6, // 8: ermite.TrustedKeyService.AddTrustedKey:input_type -> ermite.AddTrustedKeyRequest 8, // 9: ermite.TrustedKeyService.RemoveTrustedKey:input_type -> ermite.RemoveTrustedKeyRequest 5, // 10: ermite.TrustedKeyService.ListTrustedKeys:output_type -> ermite.ListTrustedKeysResponse 7, // 11: ermite.TrustedKeyService.AddTrustedKey:output_type -> ermite.AddTrustedKeyResponse 9, // 12: ermite.TrustedKeyService.RemoveTrustedKey:output_type -> ermite.RemoveTrustedKeyResponse 10, // [10:13] is the sub-list for method output_type 7, // [7:10] is the sub-list for method input_type 7, // [7:7] is the sub-list for extension type_name 7, // [7:7] is the sub-list for extension extendee 0, // [0:7] is the sub-list for field type_name } func init() { file_ermite_signature_proto_init() } func file_ermite_signature_proto_init() { if File_ermite_signature_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_ermite_signature_proto_rawDesc), len(file_ermite_signature_proto_rawDesc)), NumEnums: 2, NumMessages: 8, NumExtensions: 0, NumServices: 1, }, GoTypes: file_ermite_signature_proto_goTypes, DependencyIndexes: file_ermite_signature_proto_depIdxs, EnumInfos: file_ermite_signature_proto_enumTypes, MessageInfos: file_ermite_signature_proto_msgTypes, }.Build() File_ermite_signature_proto = out.File file_ermite_signature_proto_goTypes = nil file_ermite_signature_proto_depIdxs = nil }