Add grpcserver test coverage
- Add comprehensive test file for internal/grpcserver package - Cover interceptors, system, engine, policy, and auth handlers - Cover pbToRule/ruleToPB conversion helpers - 37 tests total; CA/PKI/ACME and Login/Logout skipped (require live deps) Co-authored-by: Junie <junie@jetbrains.com>
This commit is contained in:
666
gen/metacrypt/v2/acme.pb.go
Normal file
666
gen/metacrypt/v2/acme.pb.go
Normal file
@@ -0,0 +1,666 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.11
|
||||
// protoc v3.20.3
|
||||
// source: proto/metacrypt/v2/acme.proto
|
||||
|
||||
package metacryptv2
|
||||
|
||||
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)
|
||||
)
|
||||
|
||||
type CreateEABRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Mount string `protobuf:"bytes,1,opt,name=mount,proto3" json:"mount,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *CreateEABRequest) Reset() {
|
||||
*x = CreateEABRequest{}
|
||||
mi := &file_proto_metacrypt_v2_acme_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *CreateEABRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*CreateEABRequest) ProtoMessage() {}
|
||||
|
||||
func (x *CreateEABRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_proto_metacrypt_v2_acme_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 CreateEABRequest.ProtoReflect.Descriptor instead.
|
||||
func (*CreateEABRequest) Descriptor() ([]byte, []int) {
|
||||
return file_proto_metacrypt_v2_acme_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *CreateEABRequest) GetMount() string {
|
||||
if x != nil {
|
||||
return x.Mount
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type CreateEABResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
// kid is the key identifier to pass to the ACME client.
|
||||
Kid string `protobuf:"bytes,1,opt,name=kid,proto3" json:"kid,omitempty"`
|
||||
// hmac_key is the raw 32-byte HMAC-SHA256 key.
|
||||
// Base64url-encode this value when configuring an ACME client.
|
||||
HmacKey []byte `protobuf:"bytes,2,opt,name=hmac_key,json=hmacKey,proto3" json:"hmac_key,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *CreateEABResponse) Reset() {
|
||||
*x = CreateEABResponse{}
|
||||
mi := &file_proto_metacrypt_v2_acme_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *CreateEABResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*CreateEABResponse) ProtoMessage() {}
|
||||
|
||||
func (x *CreateEABResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_proto_metacrypt_v2_acme_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 CreateEABResponse.ProtoReflect.Descriptor instead.
|
||||
func (*CreateEABResponse) Descriptor() ([]byte, []int) {
|
||||
return file_proto_metacrypt_v2_acme_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *CreateEABResponse) GetKid() string {
|
||||
if x != nil {
|
||||
return x.Kid
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CreateEABResponse) GetHmacKey() []byte {
|
||||
if x != nil {
|
||||
return x.HmacKey
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type SetConfigRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Mount string `protobuf:"bytes,1,opt,name=mount,proto3" json:"mount,omitempty"`
|
||||
// default_issuer is the name of the CA issuer to use for ACME certificates.
|
||||
// The issuer must already exist on the CA mount.
|
||||
DefaultIssuer string `protobuf:"bytes,2,opt,name=default_issuer,json=defaultIssuer,proto3" json:"default_issuer,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *SetConfigRequest) Reset() {
|
||||
*x = SetConfigRequest{}
|
||||
mi := &file_proto_metacrypt_v2_acme_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *SetConfigRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*SetConfigRequest) ProtoMessage() {}
|
||||
|
||||
func (x *SetConfigRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_proto_metacrypt_v2_acme_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 SetConfigRequest.ProtoReflect.Descriptor instead.
|
||||
func (*SetConfigRequest) Descriptor() ([]byte, []int) {
|
||||
return file_proto_metacrypt_v2_acme_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *SetConfigRequest) GetMount() string {
|
||||
if x != nil {
|
||||
return x.Mount
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *SetConfigRequest) GetDefaultIssuer() string {
|
||||
if x != nil {
|
||||
return x.DefaultIssuer
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type SetConfigResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *SetConfigResponse) Reset() {
|
||||
*x = SetConfigResponse{}
|
||||
mi := &file_proto_metacrypt_v2_acme_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *SetConfigResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*SetConfigResponse) ProtoMessage() {}
|
||||
|
||||
func (x *SetConfigResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_proto_metacrypt_v2_acme_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 SetConfigResponse.ProtoReflect.Descriptor instead.
|
||||
func (*SetConfigResponse) Descriptor() ([]byte, []int) {
|
||||
return file_proto_metacrypt_v2_acme_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
type ListAccountsRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Mount string `protobuf:"bytes,1,opt,name=mount,proto3" json:"mount,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ListAccountsRequest) Reset() {
|
||||
*x = ListAccountsRequest{}
|
||||
mi := &file_proto_metacrypt_v2_acme_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ListAccountsRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ListAccountsRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ListAccountsRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_proto_metacrypt_v2_acme_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 ListAccountsRequest.ProtoReflect.Descriptor instead.
|
||||
func (*ListAccountsRequest) Descriptor() ([]byte, []int) {
|
||||
return file_proto_metacrypt_v2_acme_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *ListAccountsRequest) GetMount() string {
|
||||
if x != nil {
|
||||
return x.Mount
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type ListAccountsResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Accounts []*ACMEAccount `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ListAccountsResponse) Reset() {
|
||||
*x = ListAccountsResponse{}
|
||||
mi := &file_proto_metacrypt_v2_acme_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ListAccountsResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ListAccountsResponse) ProtoMessage() {}
|
||||
|
||||
func (x *ListAccountsResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_proto_metacrypt_v2_acme_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 ListAccountsResponse.ProtoReflect.Descriptor instead.
|
||||
func (*ListAccountsResponse) Descriptor() ([]byte, []int) {
|
||||
return file_proto_metacrypt_v2_acme_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *ListAccountsResponse) GetAccounts() []*ACMEAccount {
|
||||
if x != nil {
|
||||
return x.Accounts
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ACMEAccount struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
|
||||
Contact []string `protobuf:"bytes,3,rep,name=contact,proto3" json:"contact,omitempty"`
|
||||
MciasUsername string `protobuf:"bytes,4,opt,name=mcias_username,json=mciasUsername,proto3" json:"mcias_username,omitempty"`
|
||||
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ACMEAccount) Reset() {
|
||||
*x = ACMEAccount{}
|
||||
mi := &file_proto_metacrypt_v2_acme_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ACMEAccount) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ACMEAccount) ProtoMessage() {}
|
||||
|
||||
func (x *ACMEAccount) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_proto_metacrypt_v2_acme_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 ACMEAccount.ProtoReflect.Descriptor instead.
|
||||
func (*ACMEAccount) Descriptor() ([]byte, []int) {
|
||||
return file_proto_metacrypt_v2_acme_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *ACMEAccount) GetId() string {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ACMEAccount) GetStatus() string {
|
||||
if x != nil {
|
||||
return x.Status
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ACMEAccount) GetContact() []string {
|
||||
if x != nil {
|
||||
return x.Contact
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *ACMEAccount) GetMciasUsername() string {
|
||||
if x != nil {
|
||||
return x.MciasUsername
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ACMEAccount) GetCreatedAt() *timestamppb.Timestamp {
|
||||
if x != nil {
|
||||
return x.CreatedAt
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ListOrdersRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Mount string `protobuf:"bytes,1,opt,name=mount,proto3" json:"mount,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ListOrdersRequest) Reset() {
|
||||
*x = ListOrdersRequest{}
|
||||
mi := &file_proto_metacrypt_v2_acme_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ListOrdersRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ListOrdersRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ListOrdersRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_proto_metacrypt_v2_acme_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 ListOrdersRequest.ProtoReflect.Descriptor instead.
|
||||
func (*ListOrdersRequest) Descriptor() ([]byte, []int) {
|
||||
return file_proto_metacrypt_v2_acme_proto_rawDescGZIP(), []int{7}
|
||||
}
|
||||
|
||||
func (x *ListOrdersRequest) GetMount() string {
|
||||
if x != nil {
|
||||
return x.Mount
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type ListOrdersResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Orders []*ACMEOrder `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ListOrdersResponse) Reset() {
|
||||
*x = ListOrdersResponse{}
|
||||
mi := &file_proto_metacrypt_v2_acme_proto_msgTypes[8]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ListOrdersResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ListOrdersResponse) ProtoMessage() {}
|
||||
|
||||
func (x *ListOrdersResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_proto_metacrypt_v2_acme_proto_msgTypes[8]
|
||||
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 ListOrdersResponse.ProtoReflect.Descriptor instead.
|
||||
func (*ListOrdersResponse) Descriptor() ([]byte, []int) {
|
||||
return file_proto_metacrypt_v2_acme_proto_rawDescGZIP(), []int{8}
|
||||
}
|
||||
|
||||
func (x *ListOrdersResponse) GetOrders() []*ACMEOrder {
|
||||
if x != nil {
|
||||
return x.Orders
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ACMEOrder struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
AccountId string `protobuf:"bytes,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
|
||||
Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// identifiers are in "type:value" format, e.g. "dns:example.com".
|
||||
Identifiers []string `protobuf:"bytes,4,rep,name=identifiers,proto3" json:"identifiers,omitempty"`
|
||||
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
||||
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ACMEOrder) Reset() {
|
||||
*x = ACMEOrder{}
|
||||
mi := &file_proto_metacrypt_v2_acme_proto_msgTypes[9]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ACMEOrder) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ACMEOrder) ProtoMessage() {}
|
||||
|
||||
func (x *ACMEOrder) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_proto_metacrypt_v2_acme_proto_msgTypes[9]
|
||||
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 ACMEOrder.ProtoReflect.Descriptor instead.
|
||||
func (*ACMEOrder) Descriptor() ([]byte, []int) {
|
||||
return file_proto_metacrypt_v2_acme_proto_rawDescGZIP(), []int{9}
|
||||
}
|
||||
|
||||
func (x *ACMEOrder) GetId() string {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ACMEOrder) GetAccountId() string {
|
||||
if x != nil {
|
||||
return x.AccountId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ACMEOrder) GetStatus() string {
|
||||
if x != nil {
|
||||
return x.Status
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ACMEOrder) GetIdentifiers() []string {
|
||||
if x != nil {
|
||||
return x.Identifiers
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *ACMEOrder) GetCreatedAt() *timestamppb.Timestamp {
|
||||
if x != nil {
|
||||
return x.CreatedAt
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *ACMEOrder) GetExpiresAt() *timestamppb.Timestamp {
|
||||
if x != nil {
|
||||
return x.ExpiresAt
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_proto_metacrypt_v2_acme_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_proto_metacrypt_v2_acme_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x1dproto/metacrypt/v2/acme.proto\x12\fmetacrypt.v2\x1a\x1fgoogle/protobuf/timestamp.proto\"(\n" +
|
||||
"\x10CreateEABRequest\x12\x14\n" +
|
||||
"\x05mount\x18\x01 \x01(\tR\x05mount\"@\n" +
|
||||
"\x11CreateEABResponse\x12\x10\n" +
|
||||
"\x03kid\x18\x01 \x01(\tR\x03kid\x12\x19\n" +
|
||||
"\bhmac_key\x18\x02 \x01(\fR\ahmacKey\"O\n" +
|
||||
"\x10SetConfigRequest\x12\x14\n" +
|
||||
"\x05mount\x18\x01 \x01(\tR\x05mount\x12%\n" +
|
||||
"\x0edefault_issuer\x18\x02 \x01(\tR\rdefaultIssuer\"\x13\n" +
|
||||
"\x11SetConfigResponse\"+\n" +
|
||||
"\x13ListAccountsRequest\x12\x14\n" +
|
||||
"\x05mount\x18\x01 \x01(\tR\x05mount\"M\n" +
|
||||
"\x14ListAccountsResponse\x125\n" +
|
||||
"\baccounts\x18\x01 \x03(\v2\x19.metacrypt.v2.ACMEAccountR\baccounts\"\xb1\x01\n" +
|
||||
"\vACMEAccount\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\tR\x02id\x12\x16\n" +
|
||||
"\x06status\x18\x02 \x01(\tR\x06status\x12\x18\n" +
|
||||
"\acontact\x18\x03 \x03(\tR\acontact\x12%\n" +
|
||||
"\x0emcias_username\x18\x04 \x01(\tR\rmciasUsername\x129\n" +
|
||||
"\n" +
|
||||
"created_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\")\n" +
|
||||
"\x11ListOrdersRequest\x12\x14\n" +
|
||||
"\x05mount\x18\x01 \x01(\tR\x05mount\"E\n" +
|
||||
"\x12ListOrdersResponse\x12/\n" +
|
||||
"\x06orders\x18\x01 \x03(\v2\x17.metacrypt.v2.ACMEOrderR\x06orders\"\xea\x01\n" +
|
||||
"\tACMEOrder\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\tR\x02id\x12\x1d\n" +
|
||||
"\n" +
|
||||
"account_id\x18\x02 \x01(\tR\taccountId\x12\x16\n" +
|
||||
"\x06status\x18\x03 \x01(\tR\x06status\x12 \n" +
|
||||
"\videntifiers\x18\x04 \x03(\tR\videntifiers\x129\n" +
|
||||
"\n" +
|
||||
"created_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
|
||||
"\n" +
|
||||
"expires_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\texpiresAt2\xd1\x02\n" +
|
||||
"\vACMEService\x12L\n" +
|
||||
"\tCreateEAB\x12\x1e.metacrypt.v2.CreateEABRequest\x1a\x1f.metacrypt.v2.CreateEABResponse\x12L\n" +
|
||||
"\tSetConfig\x12\x1e.metacrypt.v2.SetConfigRequest\x1a\x1f.metacrypt.v2.SetConfigResponse\x12U\n" +
|
||||
"\fListAccounts\x12!.metacrypt.v2.ListAccountsRequest\x1a\".metacrypt.v2.ListAccountsResponse\x12O\n" +
|
||||
"\n" +
|
||||
"ListOrders\x12\x1f.metacrypt.v2.ListOrdersRequest\x1a .metacrypt.v2.ListOrdersResponseB>Z<git.wntrmute.dev/kyle/metacrypt/gen/metacrypt/v2;metacryptv2b\x06proto3"
|
||||
|
||||
var (
|
||||
file_proto_metacrypt_v2_acme_proto_rawDescOnce sync.Once
|
||||
file_proto_metacrypt_v2_acme_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_proto_metacrypt_v2_acme_proto_rawDescGZIP() []byte {
|
||||
file_proto_metacrypt_v2_acme_proto_rawDescOnce.Do(func() {
|
||||
file_proto_metacrypt_v2_acme_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_metacrypt_v2_acme_proto_rawDesc), len(file_proto_metacrypt_v2_acme_proto_rawDesc)))
|
||||
})
|
||||
return file_proto_metacrypt_v2_acme_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_proto_metacrypt_v2_acme_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
|
||||
var file_proto_metacrypt_v2_acme_proto_goTypes = []any{
|
||||
(*CreateEABRequest)(nil), // 0: metacrypt.v2.CreateEABRequest
|
||||
(*CreateEABResponse)(nil), // 1: metacrypt.v2.CreateEABResponse
|
||||
(*SetConfigRequest)(nil), // 2: metacrypt.v2.SetConfigRequest
|
||||
(*SetConfigResponse)(nil), // 3: metacrypt.v2.SetConfigResponse
|
||||
(*ListAccountsRequest)(nil), // 4: metacrypt.v2.ListAccountsRequest
|
||||
(*ListAccountsResponse)(nil), // 5: metacrypt.v2.ListAccountsResponse
|
||||
(*ACMEAccount)(nil), // 6: metacrypt.v2.ACMEAccount
|
||||
(*ListOrdersRequest)(nil), // 7: metacrypt.v2.ListOrdersRequest
|
||||
(*ListOrdersResponse)(nil), // 8: metacrypt.v2.ListOrdersResponse
|
||||
(*ACMEOrder)(nil), // 9: metacrypt.v2.ACMEOrder
|
||||
(*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp
|
||||
}
|
||||
var file_proto_metacrypt_v2_acme_proto_depIdxs = []int32{
|
||||
6, // 0: metacrypt.v2.ListAccountsResponse.accounts:type_name -> metacrypt.v2.ACMEAccount
|
||||
10, // 1: metacrypt.v2.ACMEAccount.created_at:type_name -> google.protobuf.Timestamp
|
||||
9, // 2: metacrypt.v2.ListOrdersResponse.orders:type_name -> metacrypt.v2.ACMEOrder
|
||||
10, // 3: metacrypt.v2.ACMEOrder.created_at:type_name -> google.protobuf.Timestamp
|
||||
10, // 4: metacrypt.v2.ACMEOrder.expires_at:type_name -> google.protobuf.Timestamp
|
||||
0, // 5: metacrypt.v2.ACMEService.CreateEAB:input_type -> metacrypt.v2.CreateEABRequest
|
||||
2, // 6: metacrypt.v2.ACMEService.SetConfig:input_type -> metacrypt.v2.SetConfigRequest
|
||||
4, // 7: metacrypt.v2.ACMEService.ListAccounts:input_type -> metacrypt.v2.ListAccountsRequest
|
||||
7, // 8: metacrypt.v2.ACMEService.ListOrders:input_type -> metacrypt.v2.ListOrdersRequest
|
||||
1, // 9: metacrypt.v2.ACMEService.CreateEAB:output_type -> metacrypt.v2.CreateEABResponse
|
||||
3, // 10: metacrypt.v2.ACMEService.SetConfig:output_type -> metacrypt.v2.SetConfigResponse
|
||||
5, // 11: metacrypt.v2.ACMEService.ListAccounts:output_type -> metacrypt.v2.ListAccountsResponse
|
||||
8, // 12: metacrypt.v2.ACMEService.ListOrders:output_type -> metacrypt.v2.ListOrdersResponse
|
||||
9, // [9:13] is the sub-list for method output_type
|
||||
5, // [5:9] is the sub-list for method input_type
|
||||
5, // [5:5] is the sub-list for extension type_name
|
||||
5, // [5:5] is the sub-list for extension extendee
|
||||
0, // [0:5] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_proto_metacrypt_v2_acme_proto_init() }
|
||||
func file_proto_metacrypt_v2_acme_proto_init() {
|
||||
if File_proto_metacrypt_v2_acme_proto != nil {
|
||||
return
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_metacrypt_v2_acme_proto_rawDesc), len(file_proto_metacrypt_v2_acme_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 10,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_proto_metacrypt_v2_acme_proto_goTypes,
|
||||
DependencyIndexes: file_proto_metacrypt_v2_acme_proto_depIdxs,
|
||||
MessageInfos: file_proto_metacrypt_v2_acme_proto_msgTypes,
|
||||
}.Build()
|
||||
File_proto_metacrypt_v2_acme_proto = out.File
|
||||
file_proto_metacrypt_v2_acme_proto_goTypes = nil
|
||||
file_proto_metacrypt_v2_acme_proto_depIdxs = nil
|
||||
}
|
||||
Reference in New Issue
Block a user