Add buf lint/breaking targets and fix proto naming violations
- Add buf.yaml with STANDARD lint rules and FILE-level breaking change detection - Add proto-lint Makefile target (buf lint + buf breaking --against master) - Add lint Makefile target (golangci-lint) and include it in all - Fix proto target: use module= option so protoc writes to gen/ not proto/ - engine.proto: rename rpc Request→Execute and message types accordingly - acme.proto: drop redundant ACME prefix from SetConfig/ListAccounts/ListOrders messages - policy.proto: add CreatePolicyResponse/GetPolicyResponse wrappers instead of returning PolicyRule directly from multiple RPCs - Update grpcserver and webserver/client.go to match renamed types Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
15
Makefile
15
Makefile
@@ -1,10 +1,10 @@
|
|||||||
.PHONY: build test vet clean docker all devserver metacrypt metacrypt-web proto
|
.PHONY: build test vet lint proto-lint clean docker all devserver metacrypt metacrypt-web proto
|
||||||
|
|
||||||
LDFLAGS := -trimpath -ldflags="-s -w -X main.version=$(shell git describe --tags --always --dirty 2>/dev/null || echo dev)"
|
LDFLAGS := -trimpath -ldflags="-s -w -X main.version=$(shell git describe --tags --always --dirty 2>/dev/null || echo dev)"
|
||||||
|
|
||||||
proto:
|
proto:
|
||||||
protoc --go_out=. --go_opt=paths=source_relative \
|
protoc --go_out=. --go_opt=module=git.wntrmute.dev/kyle/metacrypt \
|
||||||
--go-grpc_out=. --go-grpc_opt=paths=source_relative \
|
--go-grpc_out=. --go-grpc_opt=module=git.wntrmute.dev/kyle/metacrypt \
|
||||||
proto/metacrypt/v1/*.proto
|
proto/metacrypt/v1/*.proto
|
||||||
|
|
||||||
metacrypt:
|
metacrypt:
|
||||||
@@ -22,6 +22,13 @@ test:
|
|||||||
vet:
|
vet:
|
||||||
go vet ./...
|
go vet ./...
|
||||||
|
|
||||||
|
lint:
|
||||||
|
golangci-lint run ./...
|
||||||
|
|
||||||
|
proto-lint:
|
||||||
|
buf lint
|
||||||
|
buf breaking --against '.git#branch=master,subdir=proto'
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f metacrypt metacrypt-web
|
rm -f metacrypt metacrypt-web
|
||||||
|
|
||||||
@@ -35,4 +42,4 @@ devserver: metacrypt metacrypt-web
|
|||||||
./metacrypt server --config srv/metacrypt.toml &
|
./metacrypt server --config srv/metacrypt.toml &
|
||||||
./metacrypt-web --config srv/metacrypt.toml
|
./metacrypt-web --config srv/metacrypt.toml
|
||||||
|
|
||||||
all: vet test metacrypt metacrypt-web
|
all: vet lint test metacrypt metacrypt-web
|
||||||
|
|||||||
17
buf.yaml
Normal file
17
buf.yaml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
version: v2
|
||||||
|
|
||||||
|
modules:
|
||||||
|
# Setting path to proto/ means buf sees files at metacrypt/v1/*.proto,
|
||||||
|
# which matches the package name metacrypt.v1 as required by PACKAGE_DIRECTORY_MATCH.
|
||||||
|
- path: proto
|
||||||
|
|
||||||
|
lint:
|
||||||
|
use:
|
||||||
|
- STANDARD
|
||||||
|
|
||||||
|
breaking:
|
||||||
|
use:
|
||||||
|
# FILE mode is the strictest: catches wire-breaking changes (removed/renumbered
|
||||||
|
# fields, changed field types) as well as source-breaking changes (removed RPCs,
|
||||||
|
# renamed messages). Appropriate for a service with external gRPC clients.
|
||||||
|
- FILE
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.36.11
|
// protoc-gen-go v1.36.11
|
||||||
// protoc v3.20.3
|
// protoc v3.20.3
|
||||||
// source: metacrypt/v1/acme.proto
|
// source: proto/metacrypt/v1/acme.proto
|
||||||
|
|
||||||
package metacryptv1
|
package metacryptv1
|
||||||
|
|
||||||
@@ -30,7 +30,7 @@ type CreateEABRequest struct {
|
|||||||
|
|
||||||
func (x *CreateEABRequest) Reset() {
|
func (x *CreateEABRequest) Reset() {
|
||||||
*x = CreateEABRequest{}
|
*x = CreateEABRequest{}
|
||||||
mi := &file_metacrypt_v1_acme_proto_msgTypes[0]
|
mi := &file_proto_metacrypt_v1_acme_proto_msgTypes[0]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -42,7 +42,7 @@ func (x *CreateEABRequest) String() string {
|
|||||||
func (*CreateEABRequest) ProtoMessage() {}
|
func (*CreateEABRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *CreateEABRequest) ProtoReflect() protoreflect.Message {
|
func (x *CreateEABRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_acme_proto_msgTypes[0]
|
mi := &file_proto_metacrypt_v1_acme_proto_msgTypes[0]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -55,7 +55,7 @@ func (x *CreateEABRequest) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use CreateEABRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use CreateEABRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*CreateEABRequest) Descriptor() ([]byte, []int) {
|
func (*CreateEABRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_acme_proto_rawDescGZIP(), []int{0}
|
return file_proto_metacrypt_v1_acme_proto_rawDescGZIP(), []int{0}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CreateEABRequest) GetMount() string {
|
func (x *CreateEABRequest) GetMount() string {
|
||||||
@@ -78,7 +78,7 @@ type CreateEABResponse struct {
|
|||||||
|
|
||||||
func (x *CreateEABResponse) Reset() {
|
func (x *CreateEABResponse) Reset() {
|
||||||
*x = CreateEABResponse{}
|
*x = CreateEABResponse{}
|
||||||
mi := &file_metacrypt_v1_acme_proto_msgTypes[1]
|
mi := &file_proto_metacrypt_v1_acme_proto_msgTypes[1]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -90,7 +90,7 @@ func (x *CreateEABResponse) String() string {
|
|||||||
func (*CreateEABResponse) ProtoMessage() {}
|
func (*CreateEABResponse) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *CreateEABResponse) ProtoReflect() protoreflect.Message {
|
func (x *CreateEABResponse) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_acme_proto_msgTypes[1]
|
mi := &file_proto_metacrypt_v1_acme_proto_msgTypes[1]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -103,7 +103,7 @@ func (x *CreateEABResponse) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use CreateEABResponse.ProtoReflect.Descriptor instead.
|
// Deprecated: Use CreateEABResponse.ProtoReflect.Descriptor instead.
|
||||||
func (*CreateEABResponse) Descriptor() ([]byte, []int) {
|
func (*CreateEABResponse) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_acme_proto_rawDescGZIP(), []int{1}
|
return file_proto_metacrypt_v1_acme_proto_rawDescGZIP(), []int{1}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CreateEABResponse) GetKid() string {
|
func (x *CreateEABResponse) GetKid() string {
|
||||||
@@ -120,7 +120,7 @@ func (x *CreateEABResponse) GetHmacKey() []byte {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
type SetACMEConfigRequest struct {
|
type SetConfigRequest struct {
|
||||||
state protoimpl.MessageState `protogen:"open.v1"`
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
Mount string `protobuf:"bytes,1,opt,name=mount,proto3" json:"mount,omitempty"`
|
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.
|
// default_issuer is the name of the CA issuer to use for ACME certificates.
|
||||||
@@ -130,21 +130,21 @@ type SetACMEConfigRequest struct {
|
|||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SetACMEConfigRequest) Reset() {
|
func (x *SetConfigRequest) Reset() {
|
||||||
*x = SetACMEConfigRequest{}
|
*x = SetConfigRequest{}
|
||||||
mi := &file_metacrypt_v1_acme_proto_msgTypes[2]
|
mi := &file_proto_metacrypt_v1_acme_proto_msgTypes[2]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SetACMEConfigRequest) String() string {
|
func (x *SetConfigRequest) String() string {
|
||||||
return protoimpl.X.MessageStringOf(x)
|
return protoimpl.X.MessageStringOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*SetACMEConfigRequest) ProtoMessage() {}
|
func (*SetConfigRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *SetACMEConfigRequest) ProtoReflect() protoreflect.Message {
|
func (x *SetConfigRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_acme_proto_msgTypes[2]
|
mi := &file_proto_metacrypt_v1_acme_proto_msgTypes[2]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -155,47 +155,47 @@ func (x *SetACMEConfigRequest) ProtoReflect() protoreflect.Message {
|
|||||||
return mi.MessageOf(x)
|
return mi.MessageOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Use SetACMEConfigRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use SetConfigRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*SetACMEConfigRequest) Descriptor() ([]byte, []int) {
|
func (*SetConfigRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_acme_proto_rawDescGZIP(), []int{2}
|
return file_proto_metacrypt_v1_acme_proto_rawDescGZIP(), []int{2}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SetACMEConfigRequest) GetMount() string {
|
func (x *SetConfigRequest) GetMount() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Mount
|
return x.Mount
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SetACMEConfigRequest) GetDefaultIssuer() string {
|
func (x *SetConfigRequest) GetDefaultIssuer() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.DefaultIssuer
|
return x.DefaultIssuer
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
type SetACMEConfigResponse struct {
|
type SetConfigResponse struct {
|
||||||
state protoimpl.MessageState `protogen:"open.v1"`
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
|
Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SetACMEConfigResponse) Reset() {
|
func (x *SetConfigResponse) Reset() {
|
||||||
*x = SetACMEConfigResponse{}
|
*x = SetConfigResponse{}
|
||||||
mi := &file_metacrypt_v1_acme_proto_msgTypes[3]
|
mi := &file_proto_metacrypt_v1_acme_proto_msgTypes[3]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SetACMEConfigResponse) String() string {
|
func (x *SetConfigResponse) String() string {
|
||||||
return protoimpl.X.MessageStringOf(x)
|
return protoimpl.X.MessageStringOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*SetACMEConfigResponse) ProtoMessage() {}
|
func (*SetConfigResponse) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *SetACMEConfigResponse) ProtoReflect() protoreflect.Message {
|
func (x *SetConfigResponse) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_acme_proto_msgTypes[3]
|
mi := &file_proto_metacrypt_v1_acme_proto_msgTypes[3]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -206,40 +206,40 @@ func (x *SetACMEConfigResponse) ProtoReflect() protoreflect.Message {
|
|||||||
return mi.MessageOf(x)
|
return mi.MessageOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Use SetACMEConfigResponse.ProtoReflect.Descriptor instead.
|
// Deprecated: Use SetConfigResponse.ProtoReflect.Descriptor instead.
|
||||||
func (*SetACMEConfigResponse) Descriptor() ([]byte, []int) {
|
func (*SetConfigResponse) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_acme_proto_rawDescGZIP(), []int{3}
|
return file_proto_metacrypt_v1_acme_proto_rawDescGZIP(), []int{3}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SetACMEConfigResponse) GetOk() bool {
|
func (x *SetConfigResponse) GetOk() bool {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Ok
|
return x.Ok
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListACMEAccountsRequest struct {
|
type ListAccountsRequest struct {
|
||||||
state protoimpl.MessageState `protogen:"open.v1"`
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
Mount string `protobuf:"bytes,1,opt,name=mount,proto3" json:"mount,omitempty"`
|
Mount string `protobuf:"bytes,1,opt,name=mount,proto3" json:"mount,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ListACMEAccountsRequest) Reset() {
|
func (x *ListAccountsRequest) Reset() {
|
||||||
*x = ListACMEAccountsRequest{}
|
*x = ListAccountsRequest{}
|
||||||
mi := &file_metacrypt_v1_acme_proto_msgTypes[4]
|
mi := &file_proto_metacrypt_v1_acme_proto_msgTypes[4]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ListACMEAccountsRequest) String() string {
|
func (x *ListAccountsRequest) String() string {
|
||||||
return protoimpl.X.MessageStringOf(x)
|
return protoimpl.X.MessageStringOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*ListACMEAccountsRequest) ProtoMessage() {}
|
func (*ListAccountsRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *ListACMEAccountsRequest) ProtoReflect() protoreflect.Message {
|
func (x *ListAccountsRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_acme_proto_msgTypes[4]
|
mi := &file_proto_metacrypt_v1_acme_proto_msgTypes[4]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -250,40 +250,40 @@ func (x *ListACMEAccountsRequest) ProtoReflect() protoreflect.Message {
|
|||||||
return mi.MessageOf(x)
|
return mi.MessageOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Use ListACMEAccountsRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use ListAccountsRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*ListACMEAccountsRequest) Descriptor() ([]byte, []int) {
|
func (*ListAccountsRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_acme_proto_rawDescGZIP(), []int{4}
|
return file_proto_metacrypt_v1_acme_proto_rawDescGZIP(), []int{4}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ListACMEAccountsRequest) GetMount() string {
|
func (x *ListAccountsRequest) GetMount() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Mount
|
return x.Mount
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListACMEAccountsResponse struct {
|
type ListAccountsResponse struct {
|
||||||
state protoimpl.MessageState `protogen:"open.v1"`
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
Accounts []*ACMEAccount `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
|
Accounts []*ACMEAccount `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ListACMEAccountsResponse) Reset() {
|
func (x *ListAccountsResponse) Reset() {
|
||||||
*x = ListACMEAccountsResponse{}
|
*x = ListAccountsResponse{}
|
||||||
mi := &file_metacrypt_v1_acme_proto_msgTypes[5]
|
mi := &file_proto_metacrypt_v1_acme_proto_msgTypes[5]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ListACMEAccountsResponse) String() string {
|
func (x *ListAccountsResponse) String() string {
|
||||||
return protoimpl.X.MessageStringOf(x)
|
return protoimpl.X.MessageStringOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*ListACMEAccountsResponse) ProtoMessage() {}
|
func (*ListAccountsResponse) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *ListACMEAccountsResponse) ProtoReflect() protoreflect.Message {
|
func (x *ListAccountsResponse) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_acme_proto_msgTypes[5]
|
mi := &file_proto_metacrypt_v1_acme_proto_msgTypes[5]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -294,12 +294,12 @@ func (x *ListACMEAccountsResponse) ProtoReflect() protoreflect.Message {
|
|||||||
return mi.MessageOf(x)
|
return mi.MessageOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Use ListACMEAccountsResponse.ProtoReflect.Descriptor instead.
|
// Deprecated: Use ListAccountsResponse.ProtoReflect.Descriptor instead.
|
||||||
func (*ListACMEAccountsResponse) Descriptor() ([]byte, []int) {
|
func (*ListAccountsResponse) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_acme_proto_rawDescGZIP(), []int{5}
|
return file_proto_metacrypt_v1_acme_proto_rawDescGZIP(), []int{5}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ListACMEAccountsResponse) GetAccounts() []*ACMEAccount {
|
func (x *ListAccountsResponse) GetAccounts() []*ACMEAccount {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Accounts
|
return x.Accounts
|
||||||
}
|
}
|
||||||
@@ -319,7 +319,7 @@ type ACMEAccount struct {
|
|||||||
|
|
||||||
func (x *ACMEAccount) Reset() {
|
func (x *ACMEAccount) Reset() {
|
||||||
*x = ACMEAccount{}
|
*x = ACMEAccount{}
|
||||||
mi := &file_metacrypt_v1_acme_proto_msgTypes[6]
|
mi := &file_proto_metacrypt_v1_acme_proto_msgTypes[6]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -331,7 +331,7 @@ func (x *ACMEAccount) String() string {
|
|||||||
func (*ACMEAccount) ProtoMessage() {}
|
func (*ACMEAccount) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *ACMEAccount) ProtoReflect() protoreflect.Message {
|
func (x *ACMEAccount) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_acme_proto_msgTypes[6]
|
mi := &file_proto_metacrypt_v1_acme_proto_msgTypes[6]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -344,7 +344,7 @@ func (x *ACMEAccount) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use ACMEAccount.ProtoReflect.Descriptor instead.
|
// Deprecated: Use ACMEAccount.ProtoReflect.Descriptor instead.
|
||||||
func (*ACMEAccount) Descriptor() ([]byte, []int) {
|
func (*ACMEAccount) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_acme_proto_rawDescGZIP(), []int{6}
|
return file_proto_metacrypt_v1_acme_proto_rawDescGZIP(), []int{6}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ACMEAccount) GetId() string {
|
func (x *ACMEAccount) GetId() string {
|
||||||
@@ -382,28 +382,28 @@ func (x *ACMEAccount) GetCreatedAt() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListACMEOrdersRequest struct {
|
type ListOrdersRequest struct {
|
||||||
state protoimpl.MessageState `protogen:"open.v1"`
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
Mount string `protobuf:"bytes,1,opt,name=mount,proto3" json:"mount,omitempty"`
|
Mount string `protobuf:"bytes,1,opt,name=mount,proto3" json:"mount,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ListACMEOrdersRequest) Reset() {
|
func (x *ListOrdersRequest) Reset() {
|
||||||
*x = ListACMEOrdersRequest{}
|
*x = ListOrdersRequest{}
|
||||||
mi := &file_metacrypt_v1_acme_proto_msgTypes[7]
|
mi := &file_proto_metacrypt_v1_acme_proto_msgTypes[7]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ListACMEOrdersRequest) String() string {
|
func (x *ListOrdersRequest) String() string {
|
||||||
return protoimpl.X.MessageStringOf(x)
|
return protoimpl.X.MessageStringOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*ListACMEOrdersRequest) ProtoMessage() {}
|
func (*ListOrdersRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *ListACMEOrdersRequest) ProtoReflect() protoreflect.Message {
|
func (x *ListOrdersRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_acme_proto_msgTypes[7]
|
mi := &file_proto_metacrypt_v1_acme_proto_msgTypes[7]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -414,40 +414,40 @@ func (x *ListACMEOrdersRequest) ProtoReflect() protoreflect.Message {
|
|||||||
return mi.MessageOf(x)
|
return mi.MessageOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Use ListACMEOrdersRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use ListOrdersRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*ListACMEOrdersRequest) Descriptor() ([]byte, []int) {
|
func (*ListOrdersRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_acme_proto_rawDescGZIP(), []int{7}
|
return file_proto_metacrypt_v1_acme_proto_rawDescGZIP(), []int{7}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ListACMEOrdersRequest) GetMount() string {
|
func (x *ListOrdersRequest) GetMount() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Mount
|
return x.Mount
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListACMEOrdersResponse struct {
|
type ListOrdersResponse struct {
|
||||||
state protoimpl.MessageState `protogen:"open.v1"`
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
Orders []*ACMEOrder `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"`
|
Orders []*ACMEOrder `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ListACMEOrdersResponse) Reset() {
|
func (x *ListOrdersResponse) Reset() {
|
||||||
*x = ListACMEOrdersResponse{}
|
*x = ListOrdersResponse{}
|
||||||
mi := &file_metacrypt_v1_acme_proto_msgTypes[8]
|
mi := &file_proto_metacrypt_v1_acme_proto_msgTypes[8]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ListACMEOrdersResponse) String() string {
|
func (x *ListOrdersResponse) String() string {
|
||||||
return protoimpl.X.MessageStringOf(x)
|
return protoimpl.X.MessageStringOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*ListACMEOrdersResponse) ProtoMessage() {}
|
func (*ListOrdersResponse) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *ListACMEOrdersResponse) ProtoReflect() protoreflect.Message {
|
func (x *ListOrdersResponse) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_acme_proto_msgTypes[8]
|
mi := &file_proto_metacrypt_v1_acme_proto_msgTypes[8]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -458,12 +458,12 @@ func (x *ListACMEOrdersResponse) ProtoReflect() protoreflect.Message {
|
|||||||
return mi.MessageOf(x)
|
return mi.MessageOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Use ListACMEOrdersResponse.ProtoReflect.Descriptor instead.
|
// Deprecated: Use ListOrdersResponse.ProtoReflect.Descriptor instead.
|
||||||
func (*ListACMEOrdersResponse) Descriptor() ([]byte, []int) {
|
func (*ListOrdersResponse) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_acme_proto_rawDescGZIP(), []int{8}
|
return file_proto_metacrypt_v1_acme_proto_rawDescGZIP(), []int{8}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ListACMEOrdersResponse) GetOrders() []*ACMEOrder {
|
func (x *ListOrdersResponse) GetOrders() []*ACMEOrder {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Orders
|
return x.Orders
|
||||||
}
|
}
|
||||||
@@ -485,7 +485,7 @@ type ACMEOrder struct {
|
|||||||
|
|
||||||
func (x *ACMEOrder) Reset() {
|
func (x *ACMEOrder) Reset() {
|
||||||
*x = ACMEOrder{}
|
*x = ACMEOrder{}
|
||||||
mi := &file_metacrypt_v1_acme_proto_msgTypes[9]
|
mi := &file_proto_metacrypt_v1_acme_proto_msgTypes[9]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -497,7 +497,7 @@ func (x *ACMEOrder) String() string {
|
|||||||
func (*ACMEOrder) ProtoMessage() {}
|
func (*ACMEOrder) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *ACMEOrder) ProtoReflect() protoreflect.Message {
|
func (x *ACMEOrder) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_acme_proto_msgTypes[9]
|
mi := &file_proto_metacrypt_v1_acme_proto_msgTypes[9]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -510,7 +510,7 @@ func (x *ACMEOrder) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use ACMEOrder.ProtoReflect.Descriptor instead.
|
// Deprecated: Use ACMEOrder.ProtoReflect.Descriptor instead.
|
||||||
func (*ACMEOrder) Descriptor() ([]byte, []int) {
|
func (*ACMEOrder) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_acme_proto_rawDescGZIP(), []int{9}
|
return file_proto_metacrypt_v1_acme_proto_rawDescGZIP(), []int{9}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ACMEOrder) GetId() string {
|
func (x *ACMEOrder) GetId() string {
|
||||||
@@ -555,24 +555,24 @@ func (x *ACMEOrder) GetExpiresAt() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
var File_metacrypt_v1_acme_proto protoreflect.FileDescriptor
|
var File_proto_metacrypt_v1_acme_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
const file_metacrypt_v1_acme_proto_rawDesc = "" +
|
const file_proto_metacrypt_v1_acme_proto_rawDesc = "" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"\x17metacrypt/v1/acme.proto\x12\fmetacrypt.v1\"(\n" +
|
"\x1dproto/metacrypt/v1/acme.proto\x12\fmetacrypt.v1\"(\n" +
|
||||||
"\x10CreateEABRequest\x12\x14\n" +
|
"\x10CreateEABRequest\x12\x14\n" +
|
||||||
"\x05mount\x18\x01 \x01(\tR\x05mount\"@\n" +
|
"\x05mount\x18\x01 \x01(\tR\x05mount\"@\n" +
|
||||||
"\x11CreateEABResponse\x12\x10\n" +
|
"\x11CreateEABResponse\x12\x10\n" +
|
||||||
"\x03kid\x18\x01 \x01(\tR\x03kid\x12\x19\n" +
|
"\x03kid\x18\x01 \x01(\tR\x03kid\x12\x19\n" +
|
||||||
"\bhmac_key\x18\x02 \x01(\fR\ahmacKey\"S\n" +
|
"\bhmac_key\x18\x02 \x01(\fR\ahmacKey\"O\n" +
|
||||||
"\x14SetACMEConfigRequest\x12\x14\n" +
|
"\x10SetConfigRequest\x12\x14\n" +
|
||||||
"\x05mount\x18\x01 \x01(\tR\x05mount\x12%\n" +
|
"\x05mount\x18\x01 \x01(\tR\x05mount\x12%\n" +
|
||||||
"\x0edefault_issuer\x18\x02 \x01(\tR\rdefaultIssuer\"'\n" +
|
"\x0edefault_issuer\x18\x02 \x01(\tR\rdefaultIssuer\"#\n" +
|
||||||
"\x15SetACMEConfigResponse\x12\x0e\n" +
|
"\x11SetConfigResponse\x12\x0e\n" +
|
||||||
"\x02ok\x18\x01 \x01(\bR\x02ok\"/\n" +
|
"\x02ok\x18\x01 \x01(\bR\x02ok\"+\n" +
|
||||||
"\x17ListACMEAccountsRequest\x12\x14\n" +
|
"\x13ListAccountsRequest\x12\x14\n" +
|
||||||
"\x05mount\x18\x01 \x01(\tR\x05mount\"Q\n" +
|
"\x05mount\x18\x01 \x01(\tR\x05mount\"M\n" +
|
||||||
"\x18ListACMEAccountsResponse\x125\n" +
|
"\x14ListAccountsResponse\x125\n" +
|
||||||
"\baccounts\x18\x01 \x03(\v2\x19.metacrypt.v1.ACMEAccountR\baccounts\"\x95\x01\n" +
|
"\baccounts\x18\x01 \x03(\v2\x19.metacrypt.v1.ACMEAccountR\baccounts\"\x95\x01\n" +
|
||||||
"\vACMEAccount\x12\x0e\n" +
|
"\vACMEAccount\x12\x0e\n" +
|
||||||
"\x02id\x18\x01 \x01(\tR\x02id\x12\x16\n" +
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x16\n" +
|
||||||
@@ -580,10 +580,10 @@ const file_metacrypt_v1_acme_proto_rawDesc = "" +
|
|||||||
"\acontact\x18\x03 \x03(\tR\acontact\x12%\n" +
|
"\acontact\x18\x03 \x03(\tR\acontact\x12%\n" +
|
||||||
"\x0emcias_username\x18\x04 \x01(\tR\rmciasUsername\x12\x1d\n" +
|
"\x0emcias_username\x18\x04 \x01(\tR\rmciasUsername\x12\x1d\n" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"created_at\x18\x05 \x01(\tR\tcreatedAt\"-\n" +
|
"created_at\x18\x05 \x01(\tR\tcreatedAt\")\n" +
|
||||||
"\x15ListACMEOrdersRequest\x12\x14\n" +
|
"\x11ListOrdersRequest\x12\x14\n" +
|
||||||
"\x05mount\x18\x01 \x01(\tR\x05mount\"I\n" +
|
"\x05mount\x18\x01 \x01(\tR\x05mount\"E\n" +
|
||||||
"\x16ListACMEOrdersResponse\x12/\n" +
|
"\x12ListOrdersResponse\x12/\n" +
|
||||||
"\x06orders\x18\x01 \x03(\v2\x17.metacrypt.v1.ACMEOrderR\x06orders\"\xb2\x01\n" +
|
"\x06orders\x18\x01 \x03(\v2\x17.metacrypt.v1.ACMEOrderR\x06orders\"\xb2\x01\n" +
|
||||||
"\tACMEOrder\x12\x0e\n" +
|
"\tACMEOrder\x12\x0e\n" +
|
||||||
"\x02id\x18\x01 \x01(\tR\x02id\x12\x1d\n" +
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x1d\n" +
|
||||||
@@ -594,50 +594,50 @@ const file_metacrypt_v1_acme_proto_rawDesc = "" +
|
|||||||
"\n" +
|
"\n" +
|
||||||
"created_at\x18\x05 \x01(\tR\tcreatedAt\x12\x1d\n" +
|
"created_at\x18\x05 \x01(\tR\tcreatedAt\x12\x1d\n" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"expires_at\x18\x06 \x01(\tR\texpiresAt2\xe9\x02\n" +
|
"expires_at\x18\x06 \x01(\tR\texpiresAt2\xd1\x02\n" +
|
||||||
"\vACMEService\x12L\n" +
|
"\vACMEService\x12L\n" +
|
||||||
"\tCreateEAB\x12\x1e.metacrypt.v1.CreateEABRequest\x1a\x1f.metacrypt.v1.CreateEABResponse\x12T\n" +
|
"\tCreateEAB\x12\x1e.metacrypt.v1.CreateEABRequest\x1a\x1f.metacrypt.v1.CreateEABResponse\x12L\n" +
|
||||||
"\tSetConfig\x12\".metacrypt.v1.SetACMEConfigRequest\x1a#.metacrypt.v1.SetACMEConfigResponse\x12]\n" +
|
"\tSetConfig\x12\x1e.metacrypt.v1.SetConfigRequest\x1a\x1f.metacrypt.v1.SetConfigResponse\x12U\n" +
|
||||||
"\fListAccounts\x12%.metacrypt.v1.ListACMEAccountsRequest\x1a&.metacrypt.v1.ListACMEAccountsResponse\x12W\n" +
|
"\fListAccounts\x12!.metacrypt.v1.ListAccountsRequest\x1a\".metacrypt.v1.ListAccountsResponse\x12O\n" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"ListOrders\x12#.metacrypt.v1.ListACMEOrdersRequest\x1a$.metacrypt.v1.ListACMEOrdersResponseB>Z<git.wntrmute.dev/kyle/metacrypt/gen/metacrypt/v1;metacryptv1b\x06proto3"
|
"ListOrders\x12\x1f.metacrypt.v1.ListOrdersRequest\x1a .metacrypt.v1.ListOrdersResponseB>Z<git.wntrmute.dev/kyle/metacrypt/gen/metacrypt/v1;metacryptv1b\x06proto3"
|
||||||
|
|
||||||
var (
|
var (
|
||||||
file_metacrypt_v1_acme_proto_rawDescOnce sync.Once
|
file_proto_metacrypt_v1_acme_proto_rawDescOnce sync.Once
|
||||||
file_metacrypt_v1_acme_proto_rawDescData []byte
|
file_proto_metacrypt_v1_acme_proto_rawDescData []byte
|
||||||
)
|
)
|
||||||
|
|
||||||
func file_metacrypt_v1_acme_proto_rawDescGZIP() []byte {
|
func file_proto_metacrypt_v1_acme_proto_rawDescGZIP() []byte {
|
||||||
file_metacrypt_v1_acme_proto_rawDescOnce.Do(func() {
|
file_proto_metacrypt_v1_acme_proto_rawDescOnce.Do(func() {
|
||||||
file_metacrypt_v1_acme_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_metacrypt_v1_acme_proto_rawDesc), len(file_metacrypt_v1_acme_proto_rawDesc)))
|
file_proto_metacrypt_v1_acme_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_metacrypt_v1_acme_proto_rawDesc), len(file_proto_metacrypt_v1_acme_proto_rawDesc)))
|
||||||
})
|
})
|
||||||
return file_metacrypt_v1_acme_proto_rawDescData
|
return file_proto_metacrypt_v1_acme_proto_rawDescData
|
||||||
}
|
}
|
||||||
|
|
||||||
var file_metacrypt_v1_acme_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
|
var file_proto_metacrypt_v1_acme_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
|
||||||
var file_metacrypt_v1_acme_proto_goTypes = []any{
|
var file_proto_metacrypt_v1_acme_proto_goTypes = []any{
|
||||||
(*CreateEABRequest)(nil), // 0: metacrypt.v1.CreateEABRequest
|
(*CreateEABRequest)(nil), // 0: metacrypt.v1.CreateEABRequest
|
||||||
(*CreateEABResponse)(nil), // 1: metacrypt.v1.CreateEABResponse
|
(*CreateEABResponse)(nil), // 1: metacrypt.v1.CreateEABResponse
|
||||||
(*SetACMEConfigRequest)(nil), // 2: metacrypt.v1.SetACMEConfigRequest
|
(*SetConfigRequest)(nil), // 2: metacrypt.v1.SetConfigRequest
|
||||||
(*SetACMEConfigResponse)(nil), // 3: metacrypt.v1.SetACMEConfigResponse
|
(*SetConfigResponse)(nil), // 3: metacrypt.v1.SetConfigResponse
|
||||||
(*ListACMEAccountsRequest)(nil), // 4: metacrypt.v1.ListACMEAccountsRequest
|
(*ListAccountsRequest)(nil), // 4: metacrypt.v1.ListAccountsRequest
|
||||||
(*ListACMEAccountsResponse)(nil), // 5: metacrypt.v1.ListACMEAccountsResponse
|
(*ListAccountsResponse)(nil), // 5: metacrypt.v1.ListAccountsResponse
|
||||||
(*ACMEAccount)(nil), // 6: metacrypt.v1.ACMEAccount
|
(*ACMEAccount)(nil), // 6: metacrypt.v1.ACMEAccount
|
||||||
(*ListACMEOrdersRequest)(nil), // 7: metacrypt.v1.ListACMEOrdersRequest
|
(*ListOrdersRequest)(nil), // 7: metacrypt.v1.ListOrdersRequest
|
||||||
(*ListACMEOrdersResponse)(nil), // 8: metacrypt.v1.ListACMEOrdersResponse
|
(*ListOrdersResponse)(nil), // 8: metacrypt.v1.ListOrdersResponse
|
||||||
(*ACMEOrder)(nil), // 9: metacrypt.v1.ACMEOrder
|
(*ACMEOrder)(nil), // 9: metacrypt.v1.ACMEOrder
|
||||||
}
|
}
|
||||||
var file_metacrypt_v1_acme_proto_depIdxs = []int32{
|
var file_proto_metacrypt_v1_acme_proto_depIdxs = []int32{
|
||||||
6, // 0: metacrypt.v1.ListACMEAccountsResponse.accounts:type_name -> metacrypt.v1.ACMEAccount
|
6, // 0: metacrypt.v1.ListAccountsResponse.accounts:type_name -> metacrypt.v1.ACMEAccount
|
||||||
9, // 1: metacrypt.v1.ListACMEOrdersResponse.orders:type_name -> metacrypt.v1.ACMEOrder
|
9, // 1: metacrypt.v1.ListOrdersResponse.orders:type_name -> metacrypt.v1.ACMEOrder
|
||||||
0, // 2: metacrypt.v1.ACMEService.CreateEAB:input_type -> metacrypt.v1.CreateEABRequest
|
0, // 2: metacrypt.v1.ACMEService.CreateEAB:input_type -> metacrypt.v1.CreateEABRequest
|
||||||
2, // 3: metacrypt.v1.ACMEService.SetConfig:input_type -> metacrypt.v1.SetACMEConfigRequest
|
2, // 3: metacrypt.v1.ACMEService.SetConfig:input_type -> metacrypt.v1.SetConfigRequest
|
||||||
4, // 4: metacrypt.v1.ACMEService.ListAccounts:input_type -> metacrypt.v1.ListACMEAccountsRequest
|
4, // 4: metacrypt.v1.ACMEService.ListAccounts:input_type -> metacrypt.v1.ListAccountsRequest
|
||||||
7, // 5: metacrypt.v1.ACMEService.ListOrders:input_type -> metacrypt.v1.ListACMEOrdersRequest
|
7, // 5: metacrypt.v1.ACMEService.ListOrders:input_type -> metacrypt.v1.ListOrdersRequest
|
||||||
1, // 6: metacrypt.v1.ACMEService.CreateEAB:output_type -> metacrypt.v1.CreateEABResponse
|
1, // 6: metacrypt.v1.ACMEService.CreateEAB:output_type -> metacrypt.v1.CreateEABResponse
|
||||||
3, // 7: metacrypt.v1.ACMEService.SetConfig:output_type -> metacrypt.v1.SetACMEConfigResponse
|
3, // 7: metacrypt.v1.ACMEService.SetConfig:output_type -> metacrypt.v1.SetConfigResponse
|
||||||
5, // 8: metacrypt.v1.ACMEService.ListAccounts:output_type -> metacrypt.v1.ListACMEAccountsResponse
|
5, // 8: metacrypt.v1.ACMEService.ListAccounts:output_type -> metacrypt.v1.ListAccountsResponse
|
||||||
8, // 9: metacrypt.v1.ACMEService.ListOrders:output_type -> metacrypt.v1.ListACMEOrdersResponse
|
8, // 9: metacrypt.v1.ACMEService.ListOrders:output_type -> metacrypt.v1.ListOrdersResponse
|
||||||
6, // [6:10] is the sub-list for method output_type
|
6, // [6:10] is the sub-list for method output_type
|
||||||
2, // [2:6] is the sub-list for method input_type
|
2, // [2:6] is the sub-list for method input_type
|
||||||
2, // [2:2] is the sub-list for extension type_name
|
2, // [2:2] is the sub-list for extension type_name
|
||||||
@@ -645,26 +645,26 @@ var file_metacrypt_v1_acme_proto_depIdxs = []int32{
|
|||||||
0, // [0:2] is the sub-list for field type_name
|
0, // [0:2] is the sub-list for field type_name
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { file_metacrypt_v1_acme_proto_init() }
|
func init() { file_proto_metacrypt_v1_acme_proto_init() }
|
||||||
func file_metacrypt_v1_acme_proto_init() {
|
func file_proto_metacrypt_v1_acme_proto_init() {
|
||||||
if File_metacrypt_v1_acme_proto != nil {
|
if File_proto_metacrypt_v1_acme_proto != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
type x struct{}
|
type x struct{}
|
||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
File: protoimpl.DescBuilder{
|
File: protoimpl.DescBuilder{
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_metacrypt_v1_acme_proto_rawDesc), len(file_metacrypt_v1_acme_proto_rawDesc)),
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_metacrypt_v1_acme_proto_rawDesc), len(file_proto_metacrypt_v1_acme_proto_rawDesc)),
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 10,
|
NumMessages: 10,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 1,
|
NumServices: 1,
|
||||||
},
|
},
|
||||||
GoTypes: file_metacrypt_v1_acme_proto_goTypes,
|
GoTypes: file_proto_metacrypt_v1_acme_proto_goTypes,
|
||||||
DependencyIndexes: file_metacrypt_v1_acme_proto_depIdxs,
|
DependencyIndexes: file_proto_metacrypt_v1_acme_proto_depIdxs,
|
||||||
MessageInfos: file_metacrypt_v1_acme_proto_msgTypes,
|
MessageInfos: file_proto_metacrypt_v1_acme_proto_msgTypes,
|
||||||
}.Build()
|
}.Build()
|
||||||
File_metacrypt_v1_acme_proto = out.File
|
File_proto_metacrypt_v1_acme_proto = out.File
|
||||||
file_metacrypt_v1_acme_proto_goTypes = nil
|
file_proto_metacrypt_v1_acme_proto_goTypes = nil
|
||||||
file_metacrypt_v1_acme_proto_depIdxs = nil
|
file_proto_metacrypt_v1_acme_proto_depIdxs = nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// versions:
|
// versions:
|
||||||
// - protoc-gen-go-grpc v1.6.1
|
// - protoc-gen-go-grpc v1.6.1
|
||||||
// - protoc v3.20.3
|
// - protoc v3.20.3
|
||||||
// source: metacrypt/v1/acme.proto
|
// source: proto/metacrypt/v1/acme.proto
|
||||||
|
|
||||||
package metacryptv1
|
package metacryptv1
|
||||||
|
|
||||||
@@ -40,11 +40,11 @@ type ACMEServiceClient interface {
|
|||||||
CreateEAB(ctx context.Context, in *CreateEABRequest, opts ...grpc.CallOption) (*CreateEABResponse, error)
|
CreateEAB(ctx context.Context, in *CreateEABRequest, opts ...grpc.CallOption) (*CreateEABResponse, error)
|
||||||
// SetConfig sets the ACME configuration for a CA mount.
|
// SetConfig sets the ACME configuration for a CA mount.
|
||||||
// Currently configures the default issuer used for ACME certificate issuance.
|
// Currently configures the default issuer used for ACME certificate issuance.
|
||||||
SetConfig(ctx context.Context, in *SetACMEConfigRequest, opts ...grpc.CallOption) (*SetACMEConfigResponse, error)
|
SetConfig(ctx context.Context, in *SetConfigRequest, opts ...grpc.CallOption) (*SetConfigResponse, error)
|
||||||
// ListAccounts returns all ACME accounts for a CA mount. Admin only.
|
// ListAccounts returns all ACME accounts for a CA mount. Admin only.
|
||||||
ListAccounts(ctx context.Context, in *ListACMEAccountsRequest, opts ...grpc.CallOption) (*ListACMEAccountsResponse, error)
|
ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error)
|
||||||
// ListOrders returns all ACME orders for a CA mount. Admin only.
|
// ListOrders returns all ACME orders for a CA mount. Admin only.
|
||||||
ListOrders(ctx context.Context, in *ListACMEOrdersRequest, opts ...grpc.CallOption) (*ListACMEOrdersResponse, error)
|
ListOrders(ctx context.Context, in *ListOrdersRequest, opts ...grpc.CallOption) (*ListOrdersResponse, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
type aCMEServiceClient struct {
|
type aCMEServiceClient struct {
|
||||||
@@ -65,9 +65,9 @@ func (c *aCMEServiceClient) CreateEAB(ctx context.Context, in *CreateEABRequest,
|
|||||||
return out, nil
|
return out, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *aCMEServiceClient) SetConfig(ctx context.Context, in *SetACMEConfigRequest, opts ...grpc.CallOption) (*SetACMEConfigResponse, error) {
|
func (c *aCMEServiceClient) SetConfig(ctx context.Context, in *SetConfigRequest, opts ...grpc.CallOption) (*SetConfigResponse, error) {
|
||||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
out := new(SetACMEConfigResponse)
|
out := new(SetConfigResponse)
|
||||||
err := c.cc.Invoke(ctx, ACMEService_SetConfig_FullMethodName, in, out, cOpts...)
|
err := c.cc.Invoke(ctx, ACMEService_SetConfig_FullMethodName, in, out, cOpts...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
@@ -75,9 +75,9 @@ func (c *aCMEServiceClient) SetConfig(ctx context.Context, in *SetACMEConfigRequ
|
|||||||
return out, nil
|
return out, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *aCMEServiceClient) ListAccounts(ctx context.Context, in *ListACMEAccountsRequest, opts ...grpc.CallOption) (*ListACMEAccountsResponse, error) {
|
func (c *aCMEServiceClient) ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error) {
|
||||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
out := new(ListACMEAccountsResponse)
|
out := new(ListAccountsResponse)
|
||||||
err := c.cc.Invoke(ctx, ACMEService_ListAccounts_FullMethodName, in, out, cOpts...)
|
err := c.cc.Invoke(ctx, ACMEService_ListAccounts_FullMethodName, in, out, cOpts...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
@@ -85,9 +85,9 @@ func (c *aCMEServiceClient) ListAccounts(ctx context.Context, in *ListACMEAccoun
|
|||||||
return out, nil
|
return out, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *aCMEServiceClient) ListOrders(ctx context.Context, in *ListACMEOrdersRequest, opts ...grpc.CallOption) (*ListACMEOrdersResponse, error) {
|
func (c *aCMEServiceClient) ListOrders(ctx context.Context, in *ListOrdersRequest, opts ...grpc.CallOption) (*ListOrdersResponse, error) {
|
||||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
out := new(ListACMEOrdersResponse)
|
out := new(ListOrdersResponse)
|
||||||
err := c.cc.Invoke(ctx, ACMEService_ListOrders_FullMethodName, in, out, cOpts...)
|
err := c.cc.Invoke(ctx, ACMEService_ListOrders_FullMethodName, in, out, cOpts...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
@@ -110,11 +110,11 @@ type ACMEServiceServer interface {
|
|||||||
CreateEAB(context.Context, *CreateEABRequest) (*CreateEABResponse, error)
|
CreateEAB(context.Context, *CreateEABRequest) (*CreateEABResponse, error)
|
||||||
// SetConfig sets the ACME configuration for a CA mount.
|
// SetConfig sets the ACME configuration for a CA mount.
|
||||||
// Currently configures the default issuer used for ACME certificate issuance.
|
// Currently configures the default issuer used for ACME certificate issuance.
|
||||||
SetConfig(context.Context, *SetACMEConfigRequest) (*SetACMEConfigResponse, error)
|
SetConfig(context.Context, *SetConfigRequest) (*SetConfigResponse, error)
|
||||||
// ListAccounts returns all ACME accounts for a CA mount. Admin only.
|
// ListAccounts returns all ACME accounts for a CA mount. Admin only.
|
||||||
ListAccounts(context.Context, *ListACMEAccountsRequest) (*ListACMEAccountsResponse, error)
|
ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error)
|
||||||
// ListOrders returns all ACME orders for a CA mount. Admin only.
|
// ListOrders returns all ACME orders for a CA mount. Admin only.
|
||||||
ListOrders(context.Context, *ListACMEOrdersRequest) (*ListACMEOrdersResponse, error)
|
ListOrders(context.Context, *ListOrdersRequest) (*ListOrdersResponse, error)
|
||||||
mustEmbedUnimplementedACMEServiceServer()
|
mustEmbedUnimplementedACMEServiceServer()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -128,13 +128,13 @@ type UnimplementedACMEServiceServer struct{}
|
|||||||
func (UnimplementedACMEServiceServer) CreateEAB(context.Context, *CreateEABRequest) (*CreateEABResponse, error) {
|
func (UnimplementedACMEServiceServer) CreateEAB(context.Context, *CreateEABRequest) (*CreateEABResponse, error) {
|
||||||
return nil, status.Error(codes.Unimplemented, "method CreateEAB not implemented")
|
return nil, status.Error(codes.Unimplemented, "method CreateEAB not implemented")
|
||||||
}
|
}
|
||||||
func (UnimplementedACMEServiceServer) SetConfig(context.Context, *SetACMEConfigRequest) (*SetACMEConfigResponse, error) {
|
func (UnimplementedACMEServiceServer) SetConfig(context.Context, *SetConfigRequest) (*SetConfigResponse, error) {
|
||||||
return nil, status.Error(codes.Unimplemented, "method SetConfig not implemented")
|
return nil, status.Error(codes.Unimplemented, "method SetConfig not implemented")
|
||||||
}
|
}
|
||||||
func (UnimplementedACMEServiceServer) ListAccounts(context.Context, *ListACMEAccountsRequest) (*ListACMEAccountsResponse, error) {
|
func (UnimplementedACMEServiceServer) ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error) {
|
||||||
return nil, status.Error(codes.Unimplemented, "method ListAccounts not implemented")
|
return nil, status.Error(codes.Unimplemented, "method ListAccounts not implemented")
|
||||||
}
|
}
|
||||||
func (UnimplementedACMEServiceServer) ListOrders(context.Context, *ListACMEOrdersRequest) (*ListACMEOrdersResponse, error) {
|
func (UnimplementedACMEServiceServer) ListOrders(context.Context, *ListOrdersRequest) (*ListOrdersResponse, error) {
|
||||||
return nil, status.Error(codes.Unimplemented, "method ListOrders not implemented")
|
return nil, status.Error(codes.Unimplemented, "method ListOrders not implemented")
|
||||||
}
|
}
|
||||||
func (UnimplementedACMEServiceServer) mustEmbedUnimplementedACMEServiceServer() {}
|
func (UnimplementedACMEServiceServer) mustEmbedUnimplementedACMEServiceServer() {}
|
||||||
@@ -177,7 +177,7 @@ func _ACMEService_CreateEAB_Handler(srv interface{}, ctx context.Context, dec fu
|
|||||||
}
|
}
|
||||||
|
|
||||||
func _ACMEService_SetConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
func _ACMEService_SetConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
in := new(SetACMEConfigRequest)
|
in := new(SetConfigRequest)
|
||||||
if err := dec(in); err != nil {
|
if err := dec(in); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@@ -189,13 +189,13 @@ func _ACMEService_SetConfig_Handler(srv interface{}, ctx context.Context, dec fu
|
|||||||
FullMethod: ACMEService_SetConfig_FullMethodName,
|
FullMethod: ACMEService_SetConfig_FullMethodName,
|
||||||
}
|
}
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
return srv.(ACMEServiceServer).SetConfig(ctx, req.(*SetACMEConfigRequest))
|
return srv.(ACMEServiceServer).SetConfig(ctx, req.(*SetConfigRequest))
|
||||||
}
|
}
|
||||||
return interceptor(ctx, in, info, handler)
|
return interceptor(ctx, in, info, handler)
|
||||||
}
|
}
|
||||||
|
|
||||||
func _ACMEService_ListAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
func _ACMEService_ListAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
in := new(ListACMEAccountsRequest)
|
in := new(ListAccountsRequest)
|
||||||
if err := dec(in); err != nil {
|
if err := dec(in); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@@ -207,13 +207,13 @@ func _ACMEService_ListAccounts_Handler(srv interface{}, ctx context.Context, dec
|
|||||||
FullMethod: ACMEService_ListAccounts_FullMethodName,
|
FullMethod: ACMEService_ListAccounts_FullMethodName,
|
||||||
}
|
}
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
return srv.(ACMEServiceServer).ListAccounts(ctx, req.(*ListACMEAccountsRequest))
|
return srv.(ACMEServiceServer).ListAccounts(ctx, req.(*ListAccountsRequest))
|
||||||
}
|
}
|
||||||
return interceptor(ctx, in, info, handler)
|
return interceptor(ctx, in, info, handler)
|
||||||
}
|
}
|
||||||
|
|
||||||
func _ACMEService_ListOrders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
func _ACMEService_ListOrders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
in := new(ListACMEOrdersRequest)
|
in := new(ListOrdersRequest)
|
||||||
if err := dec(in); err != nil {
|
if err := dec(in); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@@ -225,7 +225,7 @@ func _ACMEService_ListOrders_Handler(srv interface{}, ctx context.Context, dec f
|
|||||||
FullMethod: ACMEService_ListOrders_FullMethodName,
|
FullMethod: ACMEService_ListOrders_FullMethodName,
|
||||||
}
|
}
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
return srv.(ACMEServiceServer).ListOrders(ctx, req.(*ListACMEOrdersRequest))
|
return srv.(ACMEServiceServer).ListOrders(ctx, req.(*ListOrdersRequest))
|
||||||
}
|
}
|
||||||
return interceptor(ctx, in, info, handler)
|
return interceptor(ctx, in, info, handler)
|
||||||
}
|
}
|
||||||
@@ -255,5 +255,5 @@ var ACMEService_ServiceDesc = grpc.ServiceDesc{
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
Streams: []grpc.StreamDesc{},
|
Streams: []grpc.StreamDesc{},
|
||||||
Metadata: "metacrypt/v1/acme.proto",
|
Metadata: "proto/metacrypt/v1/acme.proto",
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.36.11
|
// protoc-gen-go v1.36.11
|
||||||
// protoc v3.20.3
|
// protoc v3.20.3
|
||||||
// source: metacrypt/v1/auth.proto
|
// source: proto/metacrypt/v1/auth.proto
|
||||||
|
|
||||||
package metacryptv1
|
package metacryptv1
|
||||||
|
|
||||||
@@ -32,7 +32,7 @@ type LoginRequest struct {
|
|||||||
|
|
||||||
func (x *LoginRequest) Reset() {
|
func (x *LoginRequest) Reset() {
|
||||||
*x = LoginRequest{}
|
*x = LoginRequest{}
|
||||||
mi := &file_metacrypt_v1_auth_proto_msgTypes[0]
|
mi := &file_proto_metacrypt_v1_auth_proto_msgTypes[0]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -44,7 +44,7 @@ func (x *LoginRequest) String() string {
|
|||||||
func (*LoginRequest) ProtoMessage() {}
|
func (*LoginRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *LoginRequest) ProtoReflect() protoreflect.Message {
|
func (x *LoginRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_auth_proto_msgTypes[0]
|
mi := &file_proto_metacrypt_v1_auth_proto_msgTypes[0]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -57,7 +57,7 @@ func (x *LoginRequest) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*LoginRequest) Descriptor() ([]byte, []int) {
|
func (*LoginRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_auth_proto_rawDescGZIP(), []int{0}
|
return file_proto_metacrypt_v1_auth_proto_rawDescGZIP(), []int{0}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *LoginRequest) GetUsername() string {
|
func (x *LoginRequest) GetUsername() string {
|
||||||
@@ -91,7 +91,7 @@ type LoginResponse struct {
|
|||||||
|
|
||||||
func (x *LoginResponse) Reset() {
|
func (x *LoginResponse) Reset() {
|
||||||
*x = LoginResponse{}
|
*x = LoginResponse{}
|
||||||
mi := &file_metacrypt_v1_auth_proto_msgTypes[1]
|
mi := &file_proto_metacrypt_v1_auth_proto_msgTypes[1]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -103,7 +103,7 @@ func (x *LoginResponse) String() string {
|
|||||||
func (*LoginResponse) ProtoMessage() {}
|
func (*LoginResponse) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *LoginResponse) ProtoReflect() protoreflect.Message {
|
func (x *LoginResponse) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_auth_proto_msgTypes[1]
|
mi := &file_proto_metacrypt_v1_auth_proto_msgTypes[1]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -116,7 +116,7 @@ func (x *LoginResponse) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
|
// Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
|
||||||
func (*LoginResponse) Descriptor() ([]byte, []int) {
|
func (*LoginResponse) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_auth_proto_rawDescGZIP(), []int{1}
|
return file_proto_metacrypt_v1_auth_proto_rawDescGZIP(), []int{1}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *LoginResponse) GetToken() string {
|
func (x *LoginResponse) GetToken() string {
|
||||||
@@ -141,7 +141,7 @@ type LogoutRequest struct {
|
|||||||
|
|
||||||
func (x *LogoutRequest) Reset() {
|
func (x *LogoutRequest) Reset() {
|
||||||
*x = LogoutRequest{}
|
*x = LogoutRequest{}
|
||||||
mi := &file_metacrypt_v1_auth_proto_msgTypes[2]
|
mi := &file_proto_metacrypt_v1_auth_proto_msgTypes[2]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -153,7 +153,7 @@ func (x *LogoutRequest) String() string {
|
|||||||
func (*LogoutRequest) ProtoMessage() {}
|
func (*LogoutRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *LogoutRequest) ProtoReflect() protoreflect.Message {
|
func (x *LogoutRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_auth_proto_msgTypes[2]
|
mi := &file_proto_metacrypt_v1_auth_proto_msgTypes[2]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -166,7 +166,7 @@ func (x *LogoutRequest) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use LogoutRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use LogoutRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*LogoutRequest) Descriptor() ([]byte, []int) {
|
func (*LogoutRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_auth_proto_rawDescGZIP(), []int{2}
|
return file_proto_metacrypt_v1_auth_proto_rawDescGZIP(), []int{2}
|
||||||
}
|
}
|
||||||
|
|
||||||
type LogoutResponse struct {
|
type LogoutResponse struct {
|
||||||
@@ -177,7 +177,7 @@ type LogoutResponse struct {
|
|||||||
|
|
||||||
func (x *LogoutResponse) Reset() {
|
func (x *LogoutResponse) Reset() {
|
||||||
*x = LogoutResponse{}
|
*x = LogoutResponse{}
|
||||||
mi := &file_metacrypt_v1_auth_proto_msgTypes[3]
|
mi := &file_proto_metacrypt_v1_auth_proto_msgTypes[3]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -189,7 +189,7 @@ func (x *LogoutResponse) String() string {
|
|||||||
func (*LogoutResponse) ProtoMessage() {}
|
func (*LogoutResponse) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *LogoutResponse) ProtoReflect() protoreflect.Message {
|
func (x *LogoutResponse) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_auth_proto_msgTypes[3]
|
mi := &file_proto_metacrypt_v1_auth_proto_msgTypes[3]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -202,7 +202,7 @@ func (x *LogoutResponse) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use LogoutResponse.ProtoReflect.Descriptor instead.
|
// Deprecated: Use LogoutResponse.ProtoReflect.Descriptor instead.
|
||||||
func (*LogoutResponse) Descriptor() ([]byte, []int) {
|
func (*LogoutResponse) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_auth_proto_rawDescGZIP(), []int{3}
|
return file_proto_metacrypt_v1_auth_proto_rawDescGZIP(), []int{3}
|
||||||
}
|
}
|
||||||
|
|
||||||
type TokenInfoRequest struct {
|
type TokenInfoRequest struct {
|
||||||
@@ -213,7 +213,7 @@ type TokenInfoRequest struct {
|
|||||||
|
|
||||||
func (x *TokenInfoRequest) Reset() {
|
func (x *TokenInfoRequest) Reset() {
|
||||||
*x = TokenInfoRequest{}
|
*x = TokenInfoRequest{}
|
||||||
mi := &file_metacrypt_v1_auth_proto_msgTypes[4]
|
mi := &file_proto_metacrypt_v1_auth_proto_msgTypes[4]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -225,7 +225,7 @@ func (x *TokenInfoRequest) String() string {
|
|||||||
func (*TokenInfoRequest) ProtoMessage() {}
|
func (*TokenInfoRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *TokenInfoRequest) ProtoReflect() protoreflect.Message {
|
func (x *TokenInfoRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_auth_proto_msgTypes[4]
|
mi := &file_proto_metacrypt_v1_auth_proto_msgTypes[4]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -238,7 +238,7 @@ func (x *TokenInfoRequest) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use TokenInfoRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use TokenInfoRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*TokenInfoRequest) Descriptor() ([]byte, []int) {
|
func (*TokenInfoRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_auth_proto_rawDescGZIP(), []int{4}
|
return file_proto_metacrypt_v1_auth_proto_rawDescGZIP(), []int{4}
|
||||||
}
|
}
|
||||||
|
|
||||||
type TokenInfoResponse struct {
|
type TokenInfoResponse struct {
|
||||||
@@ -252,7 +252,7 @@ type TokenInfoResponse struct {
|
|||||||
|
|
||||||
func (x *TokenInfoResponse) Reset() {
|
func (x *TokenInfoResponse) Reset() {
|
||||||
*x = TokenInfoResponse{}
|
*x = TokenInfoResponse{}
|
||||||
mi := &file_metacrypt_v1_auth_proto_msgTypes[5]
|
mi := &file_proto_metacrypt_v1_auth_proto_msgTypes[5]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -264,7 +264,7 @@ func (x *TokenInfoResponse) String() string {
|
|||||||
func (*TokenInfoResponse) ProtoMessage() {}
|
func (*TokenInfoResponse) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *TokenInfoResponse) ProtoReflect() protoreflect.Message {
|
func (x *TokenInfoResponse) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_auth_proto_msgTypes[5]
|
mi := &file_proto_metacrypt_v1_auth_proto_msgTypes[5]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -277,7 +277,7 @@ func (x *TokenInfoResponse) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use TokenInfoResponse.ProtoReflect.Descriptor instead.
|
// Deprecated: Use TokenInfoResponse.ProtoReflect.Descriptor instead.
|
||||||
func (*TokenInfoResponse) Descriptor() ([]byte, []int) {
|
func (*TokenInfoResponse) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_auth_proto_rawDescGZIP(), []int{5}
|
return file_proto_metacrypt_v1_auth_proto_rawDescGZIP(), []int{5}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *TokenInfoResponse) GetUsername() string {
|
func (x *TokenInfoResponse) GetUsername() string {
|
||||||
@@ -301,11 +301,11 @@ func (x *TokenInfoResponse) GetIsAdmin() bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
var File_metacrypt_v1_auth_proto protoreflect.FileDescriptor
|
var File_proto_metacrypt_v1_auth_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
const file_metacrypt_v1_auth_proto_rawDesc = "" +
|
const file_proto_metacrypt_v1_auth_proto_rawDesc = "" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"\x17metacrypt/v1/auth.proto\x12\fmetacrypt.v1\"c\n" +
|
"\x1dproto/metacrypt/v1/auth.proto\x12\fmetacrypt.v1\"c\n" +
|
||||||
"\fLoginRequest\x12\x1a\n" +
|
"\fLoginRequest\x12\x1a\n" +
|
||||||
"\busername\x18\x01 \x01(\tR\busername\x12\x1a\n" +
|
"\busername\x18\x01 \x01(\tR\busername\x12\x1a\n" +
|
||||||
"\bpassword\x18\x02 \x01(\tR\bpassword\x12\x1b\n" +
|
"\bpassword\x18\x02 \x01(\tR\bpassword\x12\x1b\n" +
|
||||||
@@ -327,19 +327,19 @@ const file_metacrypt_v1_auth_proto_rawDesc = "" +
|
|||||||
"\tTokenInfo\x12\x1e.metacrypt.v1.TokenInfoRequest\x1a\x1f.metacrypt.v1.TokenInfoResponseB>Z<git.wntrmute.dev/kyle/metacrypt/gen/metacrypt/v1;metacryptv1b\x06proto3"
|
"\tTokenInfo\x12\x1e.metacrypt.v1.TokenInfoRequest\x1a\x1f.metacrypt.v1.TokenInfoResponseB>Z<git.wntrmute.dev/kyle/metacrypt/gen/metacrypt/v1;metacryptv1b\x06proto3"
|
||||||
|
|
||||||
var (
|
var (
|
||||||
file_metacrypt_v1_auth_proto_rawDescOnce sync.Once
|
file_proto_metacrypt_v1_auth_proto_rawDescOnce sync.Once
|
||||||
file_metacrypt_v1_auth_proto_rawDescData []byte
|
file_proto_metacrypt_v1_auth_proto_rawDescData []byte
|
||||||
)
|
)
|
||||||
|
|
||||||
func file_metacrypt_v1_auth_proto_rawDescGZIP() []byte {
|
func file_proto_metacrypt_v1_auth_proto_rawDescGZIP() []byte {
|
||||||
file_metacrypt_v1_auth_proto_rawDescOnce.Do(func() {
|
file_proto_metacrypt_v1_auth_proto_rawDescOnce.Do(func() {
|
||||||
file_metacrypt_v1_auth_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_metacrypt_v1_auth_proto_rawDesc), len(file_metacrypt_v1_auth_proto_rawDesc)))
|
file_proto_metacrypt_v1_auth_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_metacrypt_v1_auth_proto_rawDesc), len(file_proto_metacrypt_v1_auth_proto_rawDesc)))
|
||||||
})
|
})
|
||||||
return file_metacrypt_v1_auth_proto_rawDescData
|
return file_proto_metacrypt_v1_auth_proto_rawDescData
|
||||||
}
|
}
|
||||||
|
|
||||||
var file_metacrypt_v1_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
var file_proto_metacrypt_v1_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
||||||
var file_metacrypt_v1_auth_proto_goTypes = []any{
|
var file_proto_metacrypt_v1_auth_proto_goTypes = []any{
|
||||||
(*LoginRequest)(nil), // 0: metacrypt.v1.LoginRequest
|
(*LoginRequest)(nil), // 0: metacrypt.v1.LoginRequest
|
||||||
(*LoginResponse)(nil), // 1: metacrypt.v1.LoginResponse
|
(*LoginResponse)(nil), // 1: metacrypt.v1.LoginResponse
|
||||||
(*LogoutRequest)(nil), // 2: metacrypt.v1.LogoutRequest
|
(*LogoutRequest)(nil), // 2: metacrypt.v1.LogoutRequest
|
||||||
@@ -347,7 +347,7 @@ var file_metacrypt_v1_auth_proto_goTypes = []any{
|
|||||||
(*TokenInfoRequest)(nil), // 4: metacrypt.v1.TokenInfoRequest
|
(*TokenInfoRequest)(nil), // 4: metacrypt.v1.TokenInfoRequest
|
||||||
(*TokenInfoResponse)(nil), // 5: metacrypt.v1.TokenInfoResponse
|
(*TokenInfoResponse)(nil), // 5: metacrypt.v1.TokenInfoResponse
|
||||||
}
|
}
|
||||||
var file_metacrypt_v1_auth_proto_depIdxs = []int32{
|
var file_proto_metacrypt_v1_auth_proto_depIdxs = []int32{
|
||||||
0, // 0: metacrypt.v1.AuthService.Login:input_type -> metacrypt.v1.LoginRequest
|
0, // 0: metacrypt.v1.AuthService.Login:input_type -> metacrypt.v1.LoginRequest
|
||||||
2, // 1: metacrypt.v1.AuthService.Logout:input_type -> metacrypt.v1.LogoutRequest
|
2, // 1: metacrypt.v1.AuthService.Logout:input_type -> metacrypt.v1.LogoutRequest
|
||||||
4, // 2: metacrypt.v1.AuthService.TokenInfo:input_type -> metacrypt.v1.TokenInfoRequest
|
4, // 2: metacrypt.v1.AuthService.TokenInfo:input_type -> metacrypt.v1.TokenInfoRequest
|
||||||
@@ -361,26 +361,26 @@ var file_metacrypt_v1_auth_proto_depIdxs = []int32{
|
|||||||
0, // [0:0] is the sub-list for field type_name
|
0, // [0:0] is the sub-list for field type_name
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { file_metacrypt_v1_auth_proto_init() }
|
func init() { file_proto_metacrypt_v1_auth_proto_init() }
|
||||||
func file_metacrypt_v1_auth_proto_init() {
|
func file_proto_metacrypt_v1_auth_proto_init() {
|
||||||
if File_metacrypt_v1_auth_proto != nil {
|
if File_proto_metacrypt_v1_auth_proto != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
type x struct{}
|
type x struct{}
|
||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
File: protoimpl.DescBuilder{
|
File: protoimpl.DescBuilder{
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_metacrypt_v1_auth_proto_rawDesc), len(file_metacrypt_v1_auth_proto_rawDesc)),
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_metacrypt_v1_auth_proto_rawDesc), len(file_proto_metacrypt_v1_auth_proto_rawDesc)),
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 6,
|
NumMessages: 6,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 1,
|
NumServices: 1,
|
||||||
},
|
},
|
||||||
GoTypes: file_metacrypt_v1_auth_proto_goTypes,
|
GoTypes: file_proto_metacrypt_v1_auth_proto_goTypes,
|
||||||
DependencyIndexes: file_metacrypt_v1_auth_proto_depIdxs,
|
DependencyIndexes: file_proto_metacrypt_v1_auth_proto_depIdxs,
|
||||||
MessageInfos: file_metacrypt_v1_auth_proto_msgTypes,
|
MessageInfos: file_proto_metacrypt_v1_auth_proto_msgTypes,
|
||||||
}.Build()
|
}.Build()
|
||||||
File_metacrypt_v1_auth_proto = out.File
|
File_proto_metacrypt_v1_auth_proto = out.File
|
||||||
file_metacrypt_v1_auth_proto_goTypes = nil
|
file_proto_metacrypt_v1_auth_proto_goTypes = nil
|
||||||
file_metacrypt_v1_auth_proto_depIdxs = nil
|
file_proto_metacrypt_v1_auth_proto_depIdxs = nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// versions:
|
// versions:
|
||||||
// - protoc-gen-go-grpc v1.6.1
|
// - protoc-gen-go-grpc v1.6.1
|
||||||
// - protoc v3.20.3
|
// - protoc v3.20.3
|
||||||
// source: metacrypt/v1/auth.proto
|
// source: proto/metacrypt/v1/auth.proto
|
||||||
|
|
||||||
package metacryptv1
|
package metacryptv1
|
||||||
|
|
||||||
@@ -193,5 +193,5 @@ var AuthService_ServiceDesc = grpc.ServiceDesc{
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
Streams: []grpc.StreamDesc{},
|
Streams: []grpc.StreamDesc{},
|
||||||
Metadata: "metacrypt/v1/auth.proto",
|
Metadata: "proto/metacrypt/v1/auth.proto",
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.36.11
|
// protoc-gen-go v1.36.11
|
||||||
// protoc v3.20.3
|
// protoc v3.20.3
|
||||||
// source: metacrypt/v1/common.proto
|
// source: proto/metacrypt/v1/common.proto
|
||||||
|
|
||||||
package metacryptv1
|
package metacryptv1
|
||||||
|
|
||||||
@@ -20,14 +20,14 @@ const (
|
|||||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||||
)
|
)
|
||||||
|
|
||||||
var File_metacrypt_v1_common_proto protoreflect.FileDescriptor
|
var File_proto_metacrypt_v1_common_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
const file_metacrypt_v1_common_proto_rawDesc = "" +
|
const file_proto_metacrypt_v1_common_proto_rawDesc = "" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"\x19metacrypt/v1/common.proto\x12\fmetacrypt.v1B>Z<git.wntrmute.dev/kyle/metacrypt/gen/metacrypt/v1;metacryptv1b\x06proto3"
|
"\x1fproto/metacrypt/v1/common.proto\x12\fmetacrypt.v1B>Z<git.wntrmute.dev/kyle/metacrypt/gen/metacrypt/v1;metacryptv1b\x06proto3"
|
||||||
|
|
||||||
var file_metacrypt_v1_common_proto_goTypes = []any{}
|
var file_proto_metacrypt_v1_common_proto_goTypes = []any{}
|
||||||
var file_metacrypt_v1_common_proto_depIdxs = []int32{
|
var file_proto_metacrypt_v1_common_proto_depIdxs = []int32{
|
||||||
0, // [0:0] is the sub-list for method output_type
|
0, // [0:0] is the sub-list for method output_type
|
||||||
0, // [0:0] is the sub-list for method input_type
|
0, // [0:0] is the sub-list for method input_type
|
||||||
0, // [0:0] is the sub-list for extension type_name
|
0, // [0:0] is the sub-list for extension type_name
|
||||||
@@ -35,25 +35,25 @@ var file_metacrypt_v1_common_proto_depIdxs = []int32{
|
|||||||
0, // [0:0] is the sub-list for field type_name
|
0, // [0:0] is the sub-list for field type_name
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { file_metacrypt_v1_common_proto_init() }
|
func init() { file_proto_metacrypt_v1_common_proto_init() }
|
||||||
func file_metacrypt_v1_common_proto_init() {
|
func file_proto_metacrypt_v1_common_proto_init() {
|
||||||
if File_metacrypt_v1_common_proto != nil {
|
if File_proto_metacrypt_v1_common_proto != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
type x struct{}
|
type x struct{}
|
||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
File: protoimpl.DescBuilder{
|
File: protoimpl.DescBuilder{
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_metacrypt_v1_common_proto_rawDesc), len(file_metacrypt_v1_common_proto_rawDesc)),
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_metacrypt_v1_common_proto_rawDesc), len(file_proto_metacrypt_v1_common_proto_rawDesc)),
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 0,
|
NumMessages: 0,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 0,
|
NumServices: 0,
|
||||||
},
|
},
|
||||||
GoTypes: file_metacrypt_v1_common_proto_goTypes,
|
GoTypes: file_proto_metacrypt_v1_common_proto_goTypes,
|
||||||
DependencyIndexes: file_metacrypt_v1_common_proto_depIdxs,
|
DependencyIndexes: file_proto_metacrypt_v1_common_proto_depIdxs,
|
||||||
}.Build()
|
}.Build()
|
||||||
File_metacrypt_v1_common_proto = out.File
|
File_proto_metacrypt_v1_common_proto = out.File
|
||||||
file_metacrypt_v1_common_proto_goTypes = nil
|
file_proto_metacrypt_v1_common_proto_goTypes = nil
|
||||||
file_metacrypt_v1_common_proto_depIdxs = nil
|
file_proto_metacrypt_v1_common_proto_depIdxs = nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.36.11
|
// protoc-gen-go v1.36.11
|
||||||
// protoc v3.20.3
|
// protoc v3.20.3
|
||||||
// source: metacrypt/v1/engine.proto
|
// source: proto/metacrypt/v1/engine.proto
|
||||||
|
|
||||||
package metacryptv1
|
package metacryptv1
|
||||||
|
|
||||||
@@ -33,7 +33,7 @@ type MountRequest struct {
|
|||||||
|
|
||||||
func (x *MountRequest) Reset() {
|
func (x *MountRequest) Reset() {
|
||||||
*x = MountRequest{}
|
*x = MountRequest{}
|
||||||
mi := &file_metacrypt_v1_engine_proto_msgTypes[0]
|
mi := &file_proto_metacrypt_v1_engine_proto_msgTypes[0]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -45,7 +45,7 @@ func (x *MountRequest) String() string {
|
|||||||
func (*MountRequest) ProtoMessage() {}
|
func (*MountRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *MountRequest) ProtoReflect() protoreflect.Message {
|
func (x *MountRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_engine_proto_msgTypes[0]
|
mi := &file_proto_metacrypt_v1_engine_proto_msgTypes[0]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -58,7 +58,7 @@ func (x *MountRequest) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use MountRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use MountRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*MountRequest) Descriptor() ([]byte, []int) {
|
func (*MountRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_engine_proto_rawDescGZIP(), []int{0}
|
return file_proto_metacrypt_v1_engine_proto_rawDescGZIP(), []int{0}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *MountRequest) GetName() string {
|
func (x *MountRequest) GetName() string {
|
||||||
@@ -90,7 +90,7 @@ type MountResponse struct {
|
|||||||
|
|
||||||
func (x *MountResponse) Reset() {
|
func (x *MountResponse) Reset() {
|
||||||
*x = MountResponse{}
|
*x = MountResponse{}
|
||||||
mi := &file_metacrypt_v1_engine_proto_msgTypes[1]
|
mi := &file_proto_metacrypt_v1_engine_proto_msgTypes[1]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -102,7 +102,7 @@ func (x *MountResponse) String() string {
|
|||||||
func (*MountResponse) ProtoMessage() {}
|
func (*MountResponse) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *MountResponse) ProtoReflect() protoreflect.Message {
|
func (x *MountResponse) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_engine_proto_msgTypes[1]
|
mi := &file_proto_metacrypt_v1_engine_proto_msgTypes[1]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -115,7 +115,7 @@ func (x *MountResponse) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use MountResponse.ProtoReflect.Descriptor instead.
|
// Deprecated: Use MountResponse.ProtoReflect.Descriptor instead.
|
||||||
func (*MountResponse) Descriptor() ([]byte, []int) {
|
func (*MountResponse) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_engine_proto_rawDescGZIP(), []int{1}
|
return file_proto_metacrypt_v1_engine_proto_rawDescGZIP(), []int{1}
|
||||||
}
|
}
|
||||||
|
|
||||||
type UnmountRequest struct {
|
type UnmountRequest struct {
|
||||||
@@ -127,7 +127,7 @@ type UnmountRequest struct {
|
|||||||
|
|
||||||
func (x *UnmountRequest) Reset() {
|
func (x *UnmountRequest) Reset() {
|
||||||
*x = UnmountRequest{}
|
*x = UnmountRequest{}
|
||||||
mi := &file_metacrypt_v1_engine_proto_msgTypes[2]
|
mi := &file_proto_metacrypt_v1_engine_proto_msgTypes[2]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -139,7 +139,7 @@ func (x *UnmountRequest) String() string {
|
|||||||
func (*UnmountRequest) ProtoMessage() {}
|
func (*UnmountRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *UnmountRequest) ProtoReflect() protoreflect.Message {
|
func (x *UnmountRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_engine_proto_msgTypes[2]
|
mi := &file_proto_metacrypt_v1_engine_proto_msgTypes[2]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -152,7 +152,7 @@ func (x *UnmountRequest) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use UnmountRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use UnmountRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*UnmountRequest) Descriptor() ([]byte, []int) {
|
func (*UnmountRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_engine_proto_rawDescGZIP(), []int{2}
|
return file_proto_metacrypt_v1_engine_proto_rawDescGZIP(), []int{2}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UnmountRequest) GetName() string {
|
func (x *UnmountRequest) GetName() string {
|
||||||
@@ -170,7 +170,7 @@ type UnmountResponse struct {
|
|||||||
|
|
||||||
func (x *UnmountResponse) Reset() {
|
func (x *UnmountResponse) Reset() {
|
||||||
*x = UnmountResponse{}
|
*x = UnmountResponse{}
|
||||||
mi := &file_metacrypt_v1_engine_proto_msgTypes[3]
|
mi := &file_proto_metacrypt_v1_engine_proto_msgTypes[3]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -182,7 +182,7 @@ func (x *UnmountResponse) String() string {
|
|||||||
func (*UnmountResponse) ProtoMessage() {}
|
func (*UnmountResponse) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *UnmountResponse) ProtoReflect() protoreflect.Message {
|
func (x *UnmountResponse) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_engine_proto_msgTypes[3]
|
mi := &file_proto_metacrypt_v1_engine_proto_msgTypes[3]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -195,7 +195,7 @@ func (x *UnmountResponse) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use UnmountResponse.ProtoReflect.Descriptor instead.
|
// Deprecated: Use UnmountResponse.ProtoReflect.Descriptor instead.
|
||||||
func (*UnmountResponse) Descriptor() ([]byte, []int) {
|
func (*UnmountResponse) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_engine_proto_rawDescGZIP(), []int{3}
|
return file_proto_metacrypt_v1_engine_proto_rawDescGZIP(), []int{3}
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListMountsRequest struct {
|
type ListMountsRequest struct {
|
||||||
@@ -206,7 +206,7 @@ type ListMountsRequest struct {
|
|||||||
|
|
||||||
func (x *ListMountsRequest) Reset() {
|
func (x *ListMountsRequest) Reset() {
|
||||||
*x = ListMountsRequest{}
|
*x = ListMountsRequest{}
|
||||||
mi := &file_metacrypt_v1_engine_proto_msgTypes[4]
|
mi := &file_proto_metacrypt_v1_engine_proto_msgTypes[4]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -218,7 +218,7 @@ func (x *ListMountsRequest) String() string {
|
|||||||
func (*ListMountsRequest) ProtoMessage() {}
|
func (*ListMountsRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *ListMountsRequest) ProtoReflect() protoreflect.Message {
|
func (x *ListMountsRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_engine_proto_msgTypes[4]
|
mi := &file_proto_metacrypt_v1_engine_proto_msgTypes[4]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -231,7 +231,7 @@ func (x *ListMountsRequest) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use ListMountsRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use ListMountsRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*ListMountsRequest) Descriptor() ([]byte, []int) {
|
func (*ListMountsRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_engine_proto_rawDescGZIP(), []int{4}
|
return file_proto_metacrypt_v1_engine_proto_rawDescGZIP(), []int{4}
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListMountsResponse struct {
|
type ListMountsResponse struct {
|
||||||
@@ -243,7 +243,7 @@ type ListMountsResponse struct {
|
|||||||
|
|
||||||
func (x *ListMountsResponse) Reset() {
|
func (x *ListMountsResponse) Reset() {
|
||||||
*x = ListMountsResponse{}
|
*x = ListMountsResponse{}
|
||||||
mi := &file_metacrypt_v1_engine_proto_msgTypes[5]
|
mi := &file_proto_metacrypt_v1_engine_proto_msgTypes[5]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -255,7 +255,7 @@ func (x *ListMountsResponse) String() string {
|
|||||||
func (*ListMountsResponse) ProtoMessage() {}
|
func (*ListMountsResponse) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *ListMountsResponse) ProtoReflect() protoreflect.Message {
|
func (x *ListMountsResponse) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_engine_proto_msgTypes[5]
|
mi := &file_proto_metacrypt_v1_engine_proto_msgTypes[5]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -268,7 +268,7 @@ func (x *ListMountsResponse) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use ListMountsResponse.ProtoReflect.Descriptor instead.
|
// Deprecated: Use ListMountsResponse.ProtoReflect.Descriptor instead.
|
||||||
func (*ListMountsResponse) Descriptor() ([]byte, []int) {
|
func (*ListMountsResponse) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_engine_proto_rawDescGZIP(), []int{5}
|
return file_proto_metacrypt_v1_engine_proto_rawDescGZIP(), []int{5}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ListMountsResponse) GetMounts() []*MountInfo {
|
func (x *ListMountsResponse) GetMounts() []*MountInfo {
|
||||||
@@ -289,7 +289,7 @@ type MountInfo struct {
|
|||||||
|
|
||||||
func (x *MountInfo) Reset() {
|
func (x *MountInfo) Reset() {
|
||||||
*x = MountInfo{}
|
*x = MountInfo{}
|
||||||
mi := &file_metacrypt_v1_engine_proto_msgTypes[6]
|
mi := &file_proto_metacrypt_v1_engine_proto_msgTypes[6]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -301,7 +301,7 @@ func (x *MountInfo) String() string {
|
|||||||
func (*MountInfo) ProtoMessage() {}
|
func (*MountInfo) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *MountInfo) ProtoReflect() protoreflect.Message {
|
func (x *MountInfo) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_engine_proto_msgTypes[6]
|
mi := &file_proto_metacrypt_v1_engine_proto_msgTypes[6]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -314,7 +314,7 @@ func (x *MountInfo) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use MountInfo.ProtoReflect.Descriptor instead.
|
// Deprecated: Use MountInfo.ProtoReflect.Descriptor instead.
|
||||||
func (*MountInfo) Descriptor() ([]byte, []int) {
|
func (*MountInfo) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_engine_proto_rawDescGZIP(), []int{6}
|
return file_proto_metacrypt_v1_engine_proto_rawDescGZIP(), []int{6}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *MountInfo) GetName() string {
|
func (x *MountInfo) GetName() string {
|
||||||
@@ -338,7 +338,7 @@ func (x *MountInfo) GetMountPath() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
type EngineRequest struct {
|
type ExecuteRequest struct {
|
||||||
state protoimpl.MessageState `protogen:"open.v1"`
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
Mount string `protobuf:"bytes,1,opt,name=mount,proto3" json:"mount,omitempty"`
|
Mount string `protobuf:"bytes,1,opt,name=mount,proto3" json:"mount,omitempty"`
|
||||||
Operation string `protobuf:"bytes,2,opt,name=operation,proto3" json:"operation,omitempty"`
|
Operation string `protobuf:"bytes,2,opt,name=operation,proto3" json:"operation,omitempty"`
|
||||||
@@ -348,21 +348,21 @@ type EngineRequest struct {
|
|||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *EngineRequest) Reset() {
|
func (x *ExecuteRequest) Reset() {
|
||||||
*x = EngineRequest{}
|
*x = ExecuteRequest{}
|
||||||
mi := &file_metacrypt_v1_engine_proto_msgTypes[7]
|
mi := &file_proto_metacrypt_v1_engine_proto_msgTypes[7]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *EngineRequest) String() string {
|
func (x *ExecuteRequest) String() string {
|
||||||
return protoimpl.X.MessageStringOf(x)
|
return protoimpl.X.MessageStringOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*EngineRequest) ProtoMessage() {}
|
func (*ExecuteRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *EngineRequest) ProtoReflect() protoreflect.Message {
|
func (x *ExecuteRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_engine_proto_msgTypes[7]
|
mi := &file_proto_metacrypt_v1_engine_proto_msgTypes[7]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -373,61 +373,61 @@ func (x *EngineRequest) ProtoReflect() protoreflect.Message {
|
|||||||
return mi.MessageOf(x)
|
return mi.MessageOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Use EngineRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use ExecuteRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*EngineRequest) Descriptor() ([]byte, []int) {
|
func (*ExecuteRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_engine_proto_rawDescGZIP(), []int{7}
|
return file_proto_metacrypt_v1_engine_proto_rawDescGZIP(), []int{7}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *EngineRequest) GetMount() string {
|
func (x *ExecuteRequest) GetMount() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Mount
|
return x.Mount
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *EngineRequest) GetOperation() string {
|
func (x *ExecuteRequest) GetOperation() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Operation
|
return x.Operation
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *EngineRequest) GetPath() string {
|
func (x *ExecuteRequest) GetPath() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Path
|
return x.Path
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *EngineRequest) GetData() *structpb.Struct {
|
func (x *ExecuteRequest) GetData() *structpb.Struct {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Data
|
return x.Data
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
type EngineResponse struct {
|
type ExecuteResponse struct {
|
||||||
state protoimpl.MessageState `protogen:"open.v1"`
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
Data *structpb.Struct `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
|
Data *structpb.Struct `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *EngineResponse) Reset() {
|
func (x *ExecuteResponse) Reset() {
|
||||||
*x = EngineResponse{}
|
*x = ExecuteResponse{}
|
||||||
mi := &file_metacrypt_v1_engine_proto_msgTypes[8]
|
mi := &file_proto_metacrypt_v1_engine_proto_msgTypes[8]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *EngineResponse) String() string {
|
func (x *ExecuteResponse) String() string {
|
||||||
return protoimpl.X.MessageStringOf(x)
|
return protoimpl.X.MessageStringOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*EngineResponse) ProtoMessage() {}
|
func (*ExecuteResponse) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *EngineResponse) ProtoReflect() protoreflect.Message {
|
func (x *ExecuteResponse) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_engine_proto_msgTypes[8]
|
mi := &file_proto_metacrypt_v1_engine_proto_msgTypes[8]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -438,23 +438,23 @@ func (x *EngineResponse) ProtoReflect() protoreflect.Message {
|
|||||||
return mi.MessageOf(x)
|
return mi.MessageOf(x)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated: Use EngineResponse.ProtoReflect.Descriptor instead.
|
// Deprecated: Use ExecuteResponse.ProtoReflect.Descriptor instead.
|
||||||
func (*EngineResponse) Descriptor() ([]byte, []int) {
|
func (*ExecuteResponse) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_engine_proto_rawDescGZIP(), []int{8}
|
return file_proto_metacrypt_v1_engine_proto_rawDescGZIP(), []int{8}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *EngineResponse) GetData() *structpb.Struct {
|
func (x *ExecuteResponse) GetData() *structpb.Struct {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Data
|
return x.Data
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
var File_metacrypt_v1_engine_proto protoreflect.FileDescriptor
|
var File_proto_metacrypt_v1_engine_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
const file_metacrypt_v1_engine_proto_rawDesc = "" +
|
const file_proto_metacrypt_v1_engine_proto_rawDesc = "" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"\x19metacrypt/v1/engine.proto\x12\fmetacrypt.v1\x1a\x1cgoogle/protobuf/struct.proto\"g\n" +
|
"\x1fproto/metacrypt/v1/engine.proto\x12\fmetacrypt.v1\x1a\x1cgoogle/protobuf/struct.proto\"g\n" +
|
||||||
"\fMountRequest\x12\x12\n" +
|
"\fMountRequest\x12\x12\n" +
|
||||||
"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
|
||||||
"\x04type\x18\x02 \x01(\tR\x04type\x12/\n" +
|
"\x04type\x18\x02 \x01(\tR\x04type\x12/\n" +
|
||||||
@@ -470,35 +470,35 @@ const file_metacrypt_v1_engine_proto_rawDesc = "" +
|
|||||||
"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
|
||||||
"\x04type\x18\x02 \x01(\tR\x04type\x12\x1d\n" +
|
"\x04type\x18\x02 \x01(\tR\x04type\x12\x1d\n" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"mount_path\x18\x03 \x01(\tR\tmountPath\"\x84\x01\n" +
|
"mount_path\x18\x03 \x01(\tR\tmountPath\"\x85\x01\n" +
|
||||||
"\rEngineRequest\x12\x14\n" +
|
"\x0eExecuteRequest\x12\x14\n" +
|
||||||
"\x05mount\x18\x01 \x01(\tR\x05mount\x12\x1c\n" +
|
"\x05mount\x18\x01 \x01(\tR\x05mount\x12\x1c\n" +
|
||||||
"\toperation\x18\x02 \x01(\tR\toperation\x12\x12\n" +
|
"\toperation\x18\x02 \x01(\tR\toperation\x12\x12\n" +
|
||||||
"\x04path\x18\x03 \x01(\tR\x04path\x12+\n" +
|
"\x04path\x18\x03 \x01(\tR\x04path\x12+\n" +
|
||||||
"\x04data\x18\x04 \x01(\v2\x17.google.protobuf.StructR\x04data\"=\n" +
|
"\x04data\x18\x04 \x01(\v2\x17.google.protobuf.StructR\x04data\">\n" +
|
||||||
"\x0eEngineResponse\x12+\n" +
|
"\x0fExecuteResponse\x12+\n" +
|
||||||
"\x04data\x18\x01 \x01(\v2\x17.google.protobuf.StructR\x04data2\xb0\x02\n" +
|
"\x04data\x18\x01 \x01(\v2\x17.google.protobuf.StructR\x04data2\xb2\x02\n" +
|
||||||
"\rEngineService\x12@\n" +
|
"\rEngineService\x12@\n" +
|
||||||
"\x05Mount\x12\x1a.metacrypt.v1.MountRequest\x1a\x1b.metacrypt.v1.MountResponse\x12F\n" +
|
"\x05Mount\x12\x1a.metacrypt.v1.MountRequest\x1a\x1b.metacrypt.v1.MountResponse\x12F\n" +
|
||||||
"\aUnmount\x12\x1c.metacrypt.v1.UnmountRequest\x1a\x1d.metacrypt.v1.UnmountResponse\x12O\n" +
|
"\aUnmount\x12\x1c.metacrypt.v1.UnmountRequest\x1a\x1d.metacrypt.v1.UnmountResponse\x12O\n" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"ListMounts\x12\x1f.metacrypt.v1.ListMountsRequest\x1a .metacrypt.v1.ListMountsResponse\x12D\n" +
|
"ListMounts\x12\x1f.metacrypt.v1.ListMountsRequest\x1a .metacrypt.v1.ListMountsResponse\x12F\n" +
|
||||||
"\aRequest\x12\x1b.metacrypt.v1.EngineRequest\x1a\x1c.metacrypt.v1.EngineResponseB>Z<git.wntrmute.dev/kyle/metacrypt/gen/metacrypt/v1;metacryptv1b\x06proto3"
|
"\aExecute\x12\x1c.metacrypt.v1.ExecuteRequest\x1a\x1d.metacrypt.v1.ExecuteResponseB>Z<git.wntrmute.dev/kyle/metacrypt/gen/metacrypt/v1;metacryptv1b\x06proto3"
|
||||||
|
|
||||||
var (
|
var (
|
||||||
file_metacrypt_v1_engine_proto_rawDescOnce sync.Once
|
file_proto_metacrypt_v1_engine_proto_rawDescOnce sync.Once
|
||||||
file_metacrypt_v1_engine_proto_rawDescData []byte
|
file_proto_metacrypt_v1_engine_proto_rawDescData []byte
|
||||||
)
|
)
|
||||||
|
|
||||||
func file_metacrypt_v1_engine_proto_rawDescGZIP() []byte {
|
func file_proto_metacrypt_v1_engine_proto_rawDescGZIP() []byte {
|
||||||
file_metacrypt_v1_engine_proto_rawDescOnce.Do(func() {
|
file_proto_metacrypt_v1_engine_proto_rawDescOnce.Do(func() {
|
||||||
file_metacrypt_v1_engine_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_metacrypt_v1_engine_proto_rawDesc), len(file_metacrypt_v1_engine_proto_rawDesc)))
|
file_proto_metacrypt_v1_engine_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_metacrypt_v1_engine_proto_rawDesc), len(file_proto_metacrypt_v1_engine_proto_rawDesc)))
|
||||||
})
|
})
|
||||||
return file_metacrypt_v1_engine_proto_rawDescData
|
return file_proto_metacrypt_v1_engine_proto_rawDescData
|
||||||
}
|
}
|
||||||
|
|
||||||
var file_metacrypt_v1_engine_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
var file_proto_metacrypt_v1_engine_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
||||||
var file_metacrypt_v1_engine_proto_goTypes = []any{
|
var file_proto_metacrypt_v1_engine_proto_goTypes = []any{
|
||||||
(*MountRequest)(nil), // 0: metacrypt.v1.MountRequest
|
(*MountRequest)(nil), // 0: metacrypt.v1.MountRequest
|
||||||
(*MountResponse)(nil), // 1: metacrypt.v1.MountResponse
|
(*MountResponse)(nil), // 1: metacrypt.v1.MountResponse
|
||||||
(*UnmountRequest)(nil), // 2: metacrypt.v1.UnmountRequest
|
(*UnmountRequest)(nil), // 2: metacrypt.v1.UnmountRequest
|
||||||
@@ -506,23 +506,23 @@ var file_metacrypt_v1_engine_proto_goTypes = []any{
|
|||||||
(*ListMountsRequest)(nil), // 4: metacrypt.v1.ListMountsRequest
|
(*ListMountsRequest)(nil), // 4: metacrypt.v1.ListMountsRequest
|
||||||
(*ListMountsResponse)(nil), // 5: metacrypt.v1.ListMountsResponse
|
(*ListMountsResponse)(nil), // 5: metacrypt.v1.ListMountsResponse
|
||||||
(*MountInfo)(nil), // 6: metacrypt.v1.MountInfo
|
(*MountInfo)(nil), // 6: metacrypt.v1.MountInfo
|
||||||
(*EngineRequest)(nil), // 7: metacrypt.v1.EngineRequest
|
(*ExecuteRequest)(nil), // 7: metacrypt.v1.ExecuteRequest
|
||||||
(*EngineResponse)(nil), // 8: metacrypt.v1.EngineResponse
|
(*ExecuteResponse)(nil), // 8: metacrypt.v1.ExecuteResponse
|
||||||
(*structpb.Struct)(nil), // 9: google.protobuf.Struct
|
(*structpb.Struct)(nil), // 9: google.protobuf.Struct
|
||||||
}
|
}
|
||||||
var file_metacrypt_v1_engine_proto_depIdxs = []int32{
|
var file_proto_metacrypt_v1_engine_proto_depIdxs = []int32{
|
||||||
9, // 0: metacrypt.v1.MountRequest.config:type_name -> google.protobuf.Struct
|
9, // 0: metacrypt.v1.MountRequest.config:type_name -> google.protobuf.Struct
|
||||||
6, // 1: metacrypt.v1.ListMountsResponse.mounts:type_name -> metacrypt.v1.MountInfo
|
6, // 1: metacrypt.v1.ListMountsResponse.mounts:type_name -> metacrypt.v1.MountInfo
|
||||||
9, // 2: metacrypt.v1.EngineRequest.data:type_name -> google.protobuf.Struct
|
9, // 2: metacrypt.v1.ExecuteRequest.data:type_name -> google.protobuf.Struct
|
||||||
9, // 3: metacrypt.v1.EngineResponse.data:type_name -> google.protobuf.Struct
|
9, // 3: metacrypt.v1.ExecuteResponse.data:type_name -> google.protobuf.Struct
|
||||||
0, // 4: metacrypt.v1.EngineService.Mount:input_type -> metacrypt.v1.MountRequest
|
0, // 4: metacrypt.v1.EngineService.Mount:input_type -> metacrypt.v1.MountRequest
|
||||||
2, // 5: metacrypt.v1.EngineService.Unmount:input_type -> metacrypt.v1.UnmountRequest
|
2, // 5: metacrypt.v1.EngineService.Unmount:input_type -> metacrypt.v1.UnmountRequest
|
||||||
4, // 6: metacrypt.v1.EngineService.ListMounts:input_type -> metacrypt.v1.ListMountsRequest
|
4, // 6: metacrypt.v1.EngineService.ListMounts:input_type -> metacrypt.v1.ListMountsRequest
|
||||||
7, // 7: metacrypt.v1.EngineService.Request:input_type -> metacrypt.v1.EngineRequest
|
7, // 7: metacrypt.v1.EngineService.Execute:input_type -> metacrypt.v1.ExecuteRequest
|
||||||
1, // 8: metacrypt.v1.EngineService.Mount:output_type -> metacrypt.v1.MountResponse
|
1, // 8: metacrypt.v1.EngineService.Mount:output_type -> metacrypt.v1.MountResponse
|
||||||
3, // 9: metacrypt.v1.EngineService.Unmount:output_type -> metacrypt.v1.UnmountResponse
|
3, // 9: metacrypt.v1.EngineService.Unmount:output_type -> metacrypt.v1.UnmountResponse
|
||||||
5, // 10: metacrypt.v1.EngineService.ListMounts:output_type -> metacrypt.v1.ListMountsResponse
|
5, // 10: metacrypt.v1.EngineService.ListMounts:output_type -> metacrypt.v1.ListMountsResponse
|
||||||
8, // 11: metacrypt.v1.EngineService.Request:output_type -> metacrypt.v1.EngineResponse
|
8, // 11: metacrypt.v1.EngineService.Execute:output_type -> metacrypt.v1.ExecuteResponse
|
||||||
8, // [8:12] is the sub-list for method output_type
|
8, // [8:12] is the sub-list for method output_type
|
||||||
4, // [4:8] is the sub-list for method input_type
|
4, // [4:8] is the sub-list for method input_type
|
||||||
4, // [4:4] is the sub-list for extension type_name
|
4, // [4:4] is the sub-list for extension type_name
|
||||||
@@ -530,26 +530,26 @@ var file_metacrypt_v1_engine_proto_depIdxs = []int32{
|
|||||||
0, // [0:4] is the sub-list for field type_name
|
0, // [0:4] is the sub-list for field type_name
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { file_metacrypt_v1_engine_proto_init() }
|
func init() { file_proto_metacrypt_v1_engine_proto_init() }
|
||||||
func file_metacrypt_v1_engine_proto_init() {
|
func file_proto_metacrypt_v1_engine_proto_init() {
|
||||||
if File_metacrypt_v1_engine_proto != nil {
|
if File_proto_metacrypt_v1_engine_proto != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
type x struct{}
|
type x struct{}
|
||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
File: protoimpl.DescBuilder{
|
File: protoimpl.DescBuilder{
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_metacrypt_v1_engine_proto_rawDesc), len(file_metacrypt_v1_engine_proto_rawDesc)),
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_metacrypt_v1_engine_proto_rawDesc), len(file_proto_metacrypt_v1_engine_proto_rawDesc)),
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 9,
|
NumMessages: 9,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 1,
|
NumServices: 1,
|
||||||
},
|
},
|
||||||
GoTypes: file_metacrypt_v1_engine_proto_goTypes,
|
GoTypes: file_proto_metacrypt_v1_engine_proto_goTypes,
|
||||||
DependencyIndexes: file_metacrypt_v1_engine_proto_depIdxs,
|
DependencyIndexes: file_proto_metacrypt_v1_engine_proto_depIdxs,
|
||||||
MessageInfos: file_metacrypt_v1_engine_proto_msgTypes,
|
MessageInfos: file_proto_metacrypt_v1_engine_proto_msgTypes,
|
||||||
}.Build()
|
}.Build()
|
||||||
File_metacrypt_v1_engine_proto = out.File
|
File_proto_metacrypt_v1_engine_proto = out.File
|
||||||
file_metacrypt_v1_engine_proto_goTypes = nil
|
file_proto_metacrypt_v1_engine_proto_goTypes = nil
|
||||||
file_metacrypt_v1_engine_proto_depIdxs = nil
|
file_proto_metacrypt_v1_engine_proto_depIdxs = nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// versions:
|
// versions:
|
||||||
// - protoc-gen-go-grpc v1.6.1
|
// - protoc-gen-go-grpc v1.6.1
|
||||||
// - protoc v3.20.3
|
// - protoc v3.20.3
|
||||||
// source: metacrypt/v1/engine.proto
|
// source: proto/metacrypt/v1/engine.proto
|
||||||
|
|
||||||
package metacryptv1
|
package metacryptv1
|
||||||
|
|
||||||
@@ -22,7 +22,7 @@ const (
|
|||||||
EngineService_Mount_FullMethodName = "/metacrypt.v1.EngineService/Mount"
|
EngineService_Mount_FullMethodName = "/metacrypt.v1.EngineService/Mount"
|
||||||
EngineService_Unmount_FullMethodName = "/metacrypt.v1.EngineService/Unmount"
|
EngineService_Unmount_FullMethodName = "/metacrypt.v1.EngineService/Unmount"
|
||||||
EngineService_ListMounts_FullMethodName = "/metacrypt.v1.EngineService/ListMounts"
|
EngineService_ListMounts_FullMethodName = "/metacrypt.v1.EngineService/ListMounts"
|
||||||
EngineService_Request_FullMethodName = "/metacrypt.v1.EngineService/Request"
|
EngineService_Execute_FullMethodName = "/metacrypt.v1.EngineService/Execute"
|
||||||
)
|
)
|
||||||
|
|
||||||
// EngineServiceClient is the client API for EngineService service.
|
// EngineServiceClient is the client API for EngineService service.
|
||||||
@@ -32,7 +32,7 @@ type EngineServiceClient interface {
|
|||||||
Mount(ctx context.Context, in *MountRequest, opts ...grpc.CallOption) (*MountResponse, error)
|
Mount(ctx context.Context, in *MountRequest, opts ...grpc.CallOption) (*MountResponse, error)
|
||||||
Unmount(ctx context.Context, in *UnmountRequest, opts ...grpc.CallOption) (*UnmountResponse, error)
|
Unmount(ctx context.Context, in *UnmountRequest, opts ...grpc.CallOption) (*UnmountResponse, error)
|
||||||
ListMounts(ctx context.Context, in *ListMountsRequest, opts ...grpc.CallOption) (*ListMountsResponse, error)
|
ListMounts(ctx context.Context, in *ListMountsRequest, opts ...grpc.CallOption) (*ListMountsResponse, error)
|
||||||
Request(ctx context.Context, in *EngineRequest, opts ...grpc.CallOption) (*EngineResponse, error)
|
Execute(ctx context.Context, in *ExecuteRequest, opts ...grpc.CallOption) (*ExecuteResponse, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
type engineServiceClient struct {
|
type engineServiceClient struct {
|
||||||
@@ -73,10 +73,10 @@ func (c *engineServiceClient) ListMounts(ctx context.Context, in *ListMountsRequ
|
|||||||
return out, nil
|
return out, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *engineServiceClient) Request(ctx context.Context, in *EngineRequest, opts ...grpc.CallOption) (*EngineResponse, error) {
|
func (c *engineServiceClient) Execute(ctx context.Context, in *ExecuteRequest, opts ...grpc.CallOption) (*ExecuteResponse, error) {
|
||||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
out := new(EngineResponse)
|
out := new(ExecuteResponse)
|
||||||
err := c.cc.Invoke(ctx, EngineService_Request_FullMethodName, in, out, cOpts...)
|
err := c.cc.Invoke(ctx, EngineService_Execute_FullMethodName, in, out, cOpts...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@@ -90,7 +90,7 @@ type EngineServiceServer interface {
|
|||||||
Mount(context.Context, *MountRequest) (*MountResponse, error)
|
Mount(context.Context, *MountRequest) (*MountResponse, error)
|
||||||
Unmount(context.Context, *UnmountRequest) (*UnmountResponse, error)
|
Unmount(context.Context, *UnmountRequest) (*UnmountResponse, error)
|
||||||
ListMounts(context.Context, *ListMountsRequest) (*ListMountsResponse, error)
|
ListMounts(context.Context, *ListMountsRequest) (*ListMountsResponse, error)
|
||||||
Request(context.Context, *EngineRequest) (*EngineResponse, error)
|
Execute(context.Context, *ExecuteRequest) (*ExecuteResponse, error)
|
||||||
mustEmbedUnimplementedEngineServiceServer()
|
mustEmbedUnimplementedEngineServiceServer()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -110,8 +110,8 @@ func (UnimplementedEngineServiceServer) Unmount(context.Context, *UnmountRequest
|
|||||||
func (UnimplementedEngineServiceServer) ListMounts(context.Context, *ListMountsRequest) (*ListMountsResponse, error) {
|
func (UnimplementedEngineServiceServer) ListMounts(context.Context, *ListMountsRequest) (*ListMountsResponse, error) {
|
||||||
return nil, status.Error(codes.Unimplemented, "method ListMounts not implemented")
|
return nil, status.Error(codes.Unimplemented, "method ListMounts not implemented")
|
||||||
}
|
}
|
||||||
func (UnimplementedEngineServiceServer) Request(context.Context, *EngineRequest) (*EngineResponse, error) {
|
func (UnimplementedEngineServiceServer) Execute(context.Context, *ExecuteRequest) (*ExecuteResponse, error) {
|
||||||
return nil, status.Error(codes.Unimplemented, "method Request not implemented")
|
return nil, status.Error(codes.Unimplemented, "method Execute not implemented")
|
||||||
}
|
}
|
||||||
func (UnimplementedEngineServiceServer) mustEmbedUnimplementedEngineServiceServer() {}
|
func (UnimplementedEngineServiceServer) mustEmbedUnimplementedEngineServiceServer() {}
|
||||||
func (UnimplementedEngineServiceServer) testEmbeddedByValue() {}
|
func (UnimplementedEngineServiceServer) testEmbeddedByValue() {}
|
||||||
@@ -188,20 +188,20 @@ func _EngineService_ListMounts_Handler(srv interface{}, ctx context.Context, dec
|
|||||||
return interceptor(ctx, in, info, handler)
|
return interceptor(ctx, in, info, handler)
|
||||||
}
|
}
|
||||||
|
|
||||||
func _EngineService_Request_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
func _EngineService_Execute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
in := new(EngineRequest)
|
in := new(ExecuteRequest)
|
||||||
if err := dec(in); err != nil {
|
if err := dec(in); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if interceptor == nil {
|
if interceptor == nil {
|
||||||
return srv.(EngineServiceServer).Request(ctx, in)
|
return srv.(EngineServiceServer).Execute(ctx, in)
|
||||||
}
|
}
|
||||||
info := &grpc.UnaryServerInfo{
|
info := &grpc.UnaryServerInfo{
|
||||||
Server: srv,
|
Server: srv,
|
||||||
FullMethod: EngineService_Request_FullMethodName,
|
FullMethod: EngineService_Execute_FullMethodName,
|
||||||
}
|
}
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
return srv.(EngineServiceServer).Request(ctx, req.(*EngineRequest))
|
return srv.(EngineServiceServer).Execute(ctx, req.(*ExecuteRequest))
|
||||||
}
|
}
|
||||||
return interceptor(ctx, in, info, handler)
|
return interceptor(ctx, in, info, handler)
|
||||||
}
|
}
|
||||||
@@ -226,10 +226,10 @@ var EngineService_ServiceDesc = grpc.ServiceDesc{
|
|||||||
Handler: _EngineService_ListMounts_Handler,
|
Handler: _EngineService_ListMounts_Handler,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
MethodName: "Request",
|
MethodName: "Execute",
|
||||||
Handler: _EngineService_Request_Handler,
|
Handler: _EngineService_Execute_Handler,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Streams: []grpc.StreamDesc{},
|
Streams: []grpc.StreamDesc{},
|
||||||
Metadata: "metacrypt/v1/engine.proto",
|
Metadata: "proto/metacrypt/v1/engine.proto",
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.36.11
|
// protoc-gen-go v1.36.11
|
||||||
// protoc v3.20.3
|
// protoc v3.20.3
|
||||||
// source: metacrypt/v1/pki.proto
|
// source: proto/metacrypt/v1/pki.proto
|
||||||
|
|
||||||
package metacryptv1
|
package metacryptv1
|
||||||
|
|
||||||
@@ -30,7 +30,7 @@ type GetRootCertRequest struct {
|
|||||||
|
|
||||||
func (x *GetRootCertRequest) Reset() {
|
func (x *GetRootCertRequest) Reset() {
|
||||||
*x = GetRootCertRequest{}
|
*x = GetRootCertRequest{}
|
||||||
mi := &file_metacrypt_v1_pki_proto_msgTypes[0]
|
mi := &file_proto_metacrypt_v1_pki_proto_msgTypes[0]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -42,7 +42,7 @@ func (x *GetRootCertRequest) String() string {
|
|||||||
func (*GetRootCertRequest) ProtoMessage() {}
|
func (*GetRootCertRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *GetRootCertRequest) ProtoReflect() protoreflect.Message {
|
func (x *GetRootCertRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_pki_proto_msgTypes[0]
|
mi := &file_proto_metacrypt_v1_pki_proto_msgTypes[0]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -55,7 +55,7 @@ func (x *GetRootCertRequest) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use GetRootCertRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use GetRootCertRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*GetRootCertRequest) Descriptor() ([]byte, []int) {
|
func (*GetRootCertRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_pki_proto_rawDescGZIP(), []int{0}
|
return file_proto_metacrypt_v1_pki_proto_rawDescGZIP(), []int{0}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GetRootCertRequest) GetMount() string {
|
func (x *GetRootCertRequest) GetMount() string {
|
||||||
@@ -74,7 +74,7 @@ type GetRootCertResponse struct {
|
|||||||
|
|
||||||
func (x *GetRootCertResponse) Reset() {
|
func (x *GetRootCertResponse) Reset() {
|
||||||
*x = GetRootCertResponse{}
|
*x = GetRootCertResponse{}
|
||||||
mi := &file_metacrypt_v1_pki_proto_msgTypes[1]
|
mi := &file_proto_metacrypt_v1_pki_proto_msgTypes[1]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -86,7 +86,7 @@ func (x *GetRootCertResponse) String() string {
|
|||||||
func (*GetRootCertResponse) ProtoMessage() {}
|
func (*GetRootCertResponse) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *GetRootCertResponse) ProtoReflect() protoreflect.Message {
|
func (x *GetRootCertResponse) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_pki_proto_msgTypes[1]
|
mi := &file_proto_metacrypt_v1_pki_proto_msgTypes[1]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -99,7 +99,7 @@ func (x *GetRootCertResponse) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use GetRootCertResponse.ProtoReflect.Descriptor instead.
|
// Deprecated: Use GetRootCertResponse.ProtoReflect.Descriptor instead.
|
||||||
func (*GetRootCertResponse) Descriptor() ([]byte, []int) {
|
func (*GetRootCertResponse) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_pki_proto_rawDescGZIP(), []int{1}
|
return file_proto_metacrypt_v1_pki_proto_rawDescGZIP(), []int{1}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GetRootCertResponse) GetCertPem() []byte {
|
func (x *GetRootCertResponse) GetCertPem() []byte {
|
||||||
@@ -119,7 +119,7 @@ type GetChainRequest struct {
|
|||||||
|
|
||||||
func (x *GetChainRequest) Reset() {
|
func (x *GetChainRequest) Reset() {
|
||||||
*x = GetChainRequest{}
|
*x = GetChainRequest{}
|
||||||
mi := &file_metacrypt_v1_pki_proto_msgTypes[2]
|
mi := &file_proto_metacrypt_v1_pki_proto_msgTypes[2]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -131,7 +131,7 @@ func (x *GetChainRequest) String() string {
|
|||||||
func (*GetChainRequest) ProtoMessage() {}
|
func (*GetChainRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *GetChainRequest) ProtoReflect() protoreflect.Message {
|
func (x *GetChainRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_pki_proto_msgTypes[2]
|
mi := &file_proto_metacrypt_v1_pki_proto_msgTypes[2]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -144,7 +144,7 @@ func (x *GetChainRequest) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use GetChainRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use GetChainRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*GetChainRequest) Descriptor() ([]byte, []int) {
|
func (*GetChainRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_pki_proto_rawDescGZIP(), []int{2}
|
return file_proto_metacrypt_v1_pki_proto_rawDescGZIP(), []int{2}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GetChainRequest) GetMount() string {
|
func (x *GetChainRequest) GetMount() string {
|
||||||
@@ -170,7 +170,7 @@ type GetChainResponse struct {
|
|||||||
|
|
||||||
func (x *GetChainResponse) Reset() {
|
func (x *GetChainResponse) Reset() {
|
||||||
*x = GetChainResponse{}
|
*x = GetChainResponse{}
|
||||||
mi := &file_metacrypt_v1_pki_proto_msgTypes[3]
|
mi := &file_proto_metacrypt_v1_pki_proto_msgTypes[3]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -182,7 +182,7 @@ func (x *GetChainResponse) String() string {
|
|||||||
func (*GetChainResponse) ProtoMessage() {}
|
func (*GetChainResponse) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *GetChainResponse) ProtoReflect() protoreflect.Message {
|
func (x *GetChainResponse) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_pki_proto_msgTypes[3]
|
mi := &file_proto_metacrypt_v1_pki_proto_msgTypes[3]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -195,7 +195,7 @@ func (x *GetChainResponse) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use GetChainResponse.ProtoReflect.Descriptor instead.
|
// Deprecated: Use GetChainResponse.ProtoReflect.Descriptor instead.
|
||||||
func (*GetChainResponse) Descriptor() ([]byte, []int) {
|
func (*GetChainResponse) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_pki_proto_rawDescGZIP(), []int{3}
|
return file_proto_metacrypt_v1_pki_proto_rawDescGZIP(), []int{3}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GetChainResponse) GetChainPem() []byte {
|
func (x *GetChainResponse) GetChainPem() []byte {
|
||||||
@@ -215,7 +215,7 @@ type GetIssuerCertRequest struct {
|
|||||||
|
|
||||||
func (x *GetIssuerCertRequest) Reset() {
|
func (x *GetIssuerCertRequest) Reset() {
|
||||||
*x = GetIssuerCertRequest{}
|
*x = GetIssuerCertRequest{}
|
||||||
mi := &file_metacrypt_v1_pki_proto_msgTypes[4]
|
mi := &file_proto_metacrypt_v1_pki_proto_msgTypes[4]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -227,7 +227,7 @@ func (x *GetIssuerCertRequest) String() string {
|
|||||||
func (*GetIssuerCertRequest) ProtoMessage() {}
|
func (*GetIssuerCertRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *GetIssuerCertRequest) ProtoReflect() protoreflect.Message {
|
func (x *GetIssuerCertRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_pki_proto_msgTypes[4]
|
mi := &file_proto_metacrypt_v1_pki_proto_msgTypes[4]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -240,7 +240,7 @@ func (x *GetIssuerCertRequest) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use GetIssuerCertRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use GetIssuerCertRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*GetIssuerCertRequest) Descriptor() ([]byte, []int) {
|
func (*GetIssuerCertRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_pki_proto_rawDescGZIP(), []int{4}
|
return file_proto_metacrypt_v1_pki_proto_rawDescGZIP(), []int{4}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GetIssuerCertRequest) GetMount() string {
|
func (x *GetIssuerCertRequest) GetMount() string {
|
||||||
@@ -266,7 +266,7 @@ type GetIssuerCertResponse struct {
|
|||||||
|
|
||||||
func (x *GetIssuerCertResponse) Reset() {
|
func (x *GetIssuerCertResponse) Reset() {
|
||||||
*x = GetIssuerCertResponse{}
|
*x = GetIssuerCertResponse{}
|
||||||
mi := &file_metacrypt_v1_pki_proto_msgTypes[5]
|
mi := &file_proto_metacrypt_v1_pki_proto_msgTypes[5]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -278,7 +278,7 @@ func (x *GetIssuerCertResponse) String() string {
|
|||||||
func (*GetIssuerCertResponse) ProtoMessage() {}
|
func (*GetIssuerCertResponse) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *GetIssuerCertResponse) ProtoReflect() protoreflect.Message {
|
func (x *GetIssuerCertResponse) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_pki_proto_msgTypes[5]
|
mi := &file_proto_metacrypt_v1_pki_proto_msgTypes[5]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -291,7 +291,7 @@ func (x *GetIssuerCertResponse) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use GetIssuerCertResponse.ProtoReflect.Descriptor instead.
|
// Deprecated: Use GetIssuerCertResponse.ProtoReflect.Descriptor instead.
|
||||||
func (*GetIssuerCertResponse) Descriptor() ([]byte, []int) {
|
func (*GetIssuerCertResponse) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_pki_proto_rawDescGZIP(), []int{5}
|
return file_proto_metacrypt_v1_pki_proto_rawDescGZIP(), []int{5}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GetIssuerCertResponse) GetCertPem() []byte {
|
func (x *GetIssuerCertResponse) GetCertPem() []byte {
|
||||||
@@ -301,11 +301,11 @@ func (x *GetIssuerCertResponse) GetCertPem() []byte {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
var File_metacrypt_v1_pki_proto protoreflect.FileDescriptor
|
var File_proto_metacrypt_v1_pki_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
const file_metacrypt_v1_pki_proto_rawDesc = "" +
|
const file_proto_metacrypt_v1_pki_proto_rawDesc = "" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"\x16metacrypt/v1/pki.proto\x12\fmetacrypt.v1\"*\n" +
|
"\x1cproto/metacrypt/v1/pki.proto\x12\fmetacrypt.v1\"*\n" +
|
||||||
"\x12GetRootCertRequest\x12\x14\n" +
|
"\x12GetRootCertRequest\x12\x14\n" +
|
||||||
"\x05mount\x18\x01 \x01(\tR\x05mount\"0\n" +
|
"\x05mount\x18\x01 \x01(\tR\x05mount\"0\n" +
|
||||||
"\x13GetRootCertResponse\x12\x19\n" +
|
"\x13GetRootCertResponse\x12\x19\n" +
|
||||||
@@ -327,19 +327,19 @@ const file_metacrypt_v1_pki_proto_rawDesc = "" +
|
|||||||
"\rGetIssuerCert\x12\".metacrypt.v1.GetIssuerCertRequest\x1a#.metacrypt.v1.GetIssuerCertResponseB>Z<git.wntrmute.dev/kyle/metacrypt/gen/metacrypt/v1;metacryptv1b\x06proto3"
|
"\rGetIssuerCert\x12\".metacrypt.v1.GetIssuerCertRequest\x1a#.metacrypt.v1.GetIssuerCertResponseB>Z<git.wntrmute.dev/kyle/metacrypt/gen/metacrypt/v1;metacryptv1b\x06proto3"
|
||||||
|
|
||||||
var (
|
var (
|
||||||
file_metacrypt_v1_pki_proto_rawDescOnce sync.Once
|
file_proto_metacrypt_v1_pki_proto_rawDescOnce sync.Once
|
||||||
file_metacrypt_v1_pki_proto_rawDescData []byte
|
file_proto_metacrypt_v1_pki_proto_rawDescData []byte
|
||||||
)
|
)
|
||||||
|
|
||||||
func file_metacrypt_v1_pki_proto_rawDescGZIP() []byte {
|
func file_proto_metacrypt_v1_pki_proto_rawDescGZIP() []byte {
|
||||||
file_metacrypt_v1_pki_proto_rawDescOnce.Do(func() {
|
file_proto_metacrypt_v1_pki_proto_rawDescOnce.Do(func() {
|
||||||
file_metacrypt_v1_pki_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_metacrypt_v1_pki_proto_rawDesc), len(file_metacrypt_v1_pki_proto_rawDesc)))
|
file_proto_metacrypt_v1_pki_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_metacrypt_v1_pki_proto_rawDesc), len(file_proto_metacrypt_v1_pki_proto_rawDesc)))
|
||||||
})
|
})
|
||||||
return file_metacrypt_v1_pki_proto_rawDescData
|
return file_proto_metacrypt_v1_pki_proto_rawDescData
|
||||||
}
|
}
|
||||||
|
|
||||||
var file_metacrypt_v1_pki_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
var file_proto_metacrypt_v1_pki_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
||||||
var file_metacrypt_v1_pki_proto_goTypes = []any{
|
var file_proto_metacrypt_v1_pki_proto_goTypes = []any{
|
||||||
(*GetRootCertRequest)(nil), // 0: metacrypt.v1.GetRootCertRequest
|
(*GetRootCertRequest)(nil), // 0: metacrypt.v1.GetRootCertRequest
|
||||||
(*GetRootCertResponse)(nil), // 1: metacrypt.v1.GetRootCertResponse
|
(*GetRootCertResponse)(nil), // 1: metacrypt.v1.GetRootCertResponse
|
||||||
(*GetChainRequest)(nil), // 2: metacrypt.v1.GetChainRequest
|
(*GetChainRequest)(nil), // 2: metacrypt.v1.GetChainRequest
|
||||||
@@ -347,7 +347,7 @@ var file_metacrypt_v1_pki_proto_goTypes = []any{
|
|||||||
(*GetIssuerCertRequest)(nil), // 4: metacrypt.v1.GetIssuerCertRequest
|
(*GetIssuerCertRequest)(nil), // 4: metacrypt.v1.GetIssuerCertRequest
|
||||||
(*GetIssuerCertResponse)(nil), // 5: metacrypt.v1.GetIssuerCertResponse
|
(*GetIssuerCertResponse)(nil), // 5: metacrypt.v1.GetIssuerCertResponse
|
||||||
}
|
}
|
||||||
var file_metacrypt_v1_pki_proto_depIdxs = []int32{
|
var file_proto_metacrypt_v1_pki_proto_depIdxs = []int32{
|
||||||
0, // 0: metacrypt.v1.PKIService.GetRootCert:input_type -> metacrypt.v1.GetRootCertRequest
|
0, // 0: metacrypt.v1.PKIService.GetRootCert:input_type -> metacrypt.v1.GetRootCertRequest
|
||||||
2, // 1: metacrypt.v1.PKIService.GetChain:input_type -> metacrypt.v1.GetChainRequest
|
2, // 1: metacrypt.v1.PKIService.GetChain:input_type -> metacrypt.v1.GetChainRequest
|
||||||
4, // 2: metacrypt.v1.PKIService.GetIssuerCert:input_type -> metacrypt.v1.GetIssuerCertRequest
|
4, // 2: metacrypt.v1.PKIService.GetIssuerCert:input_type -> metacrypt.v1.GetIssuerCertRequest
|
||||||
@@ -361,26 +361,26 @@ var file_metacrypt_v1_pki_proto_depIdxs = []int32{
|
|||||||
0, // [0:0] is the sub-list for field type_name
|
0, // [0:0] is the sub-list for field type_name
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { file_metacrypt_v1_pki_proto_init() }
|
func init() { file_proto_metacrypt_v1_pki_proto_init() }
|
||||||
func file_metacrypt_v1_pki_proto_init() {
|
func file_proto_metacrypt_v1_pki_proto_init() {
|
||||||
if File_metacrypt_v1_pki_proto != nil {
|
if File_proto_metacrypt_v1_pki_proto != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
type x struct{}
|
type x struct{}
|
||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
File: protoimpl.DescBuilder{
|
File: protoimpl.DescBuilder{
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_metacrypt_v1_pki_proto_rawDesc), len(file_metacrypt_v1_pki_proto_rawDesc)),
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_metacrypt_v1_pki_proto_rawDesc), len(file_proto_metacrypt_v1_pki_proto_rawDesc)),
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 6,
|
NumMessages: 6,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 1,
|
NumServices: 1,
|
||||||
},
|
},
|
||||||
GoTypes: file_metacrypt_v1_pki_proto_goTypes,
|
GoTypes: file_proto_metacrypt_v1_pki_proto_goTypes,
|
||||||
DependencyIndexes: file_metacrypt_v1_pki_proto_depIdxs,
|
DependencyIndexes: file_proto_metacrypt_v1_pki_proto_depIdxs,
|
||||||
MessageInfos: file_metacrypt_v1_pki_proto_msgTypes,
|
MessageInfos: file_proto_metacrypt_v1_pki_proto_msgTypes,
|
||||||
}.Build()
|
}.Build()
|
||||||
File_metacrypt_v1_pki_proto = out.File
|
File_proto_metacrypt_v1_pki_proto = out.File
|
||||||
file_metacrypt_v1_pki_proto_goTypes = nil
|
file_proto_metacrypt_v1_pki_proto_goTypes = nil
|
||||||
file_metacrypt_v1_pki_proto_depIdxs = nil
|
file_proto_metacrypt_v1_pki_proto_depIdxs = nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// versions:
|
// versions:
|
||||||
// - protoc-gen-go-grpc v1.6.1
|
// - protoc-gen-go-grpc v1.6.1
|
||||||
// - protoc v3.20.3
|
// - protoc v3.20.3
|
||||||
// source: metacrypt/v1/pki.proto
|
// source: proto/metacrypt/v1/pki.proto
|
||||||
|
|
||||||
package metacryptv1
|
package metacryptv1
|
||||||
|
|
||||||
@@ -199,5 +199,5 @@ var PKIService_ServiceDesc = grpc.ServiceDesc{
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
Streams: []grpc.StreamDesc{},
|
Streams: []grpc.StreamDesc{},
|
||||||
Metadata: "metacrypt/v1/pki.proto",
|
Metadata: "proto/metacrypt/v1/pki.proto",
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.36.11
|
// protoc-gen-go v1.36.11
|
||||||
// protoc v3.20.3
|
// protoc v3.20.3
|
||||||
// source: metacrypt/v1/policy.proto
|
// source: proto/metacrypt/v1/policy.proto
|
||||||
|
|
||||||
package metacryptv1
|
package metacryptv1
|
||||||
|
|
||||||
@@ -36,7 +36,7 @@ type PolicyRule struct {
|
|||||||
|
|
||||||
func (x *PolicyRule) Reset() {
|
func (x *PolicyRule) Reset() {
|
||||||
*x = PolicyRule{}
|
*x = PolicyRule{}
|
||||||
mi := &file_metacrypt_v1_policy_proto_msgTypes[0]
|
mi := &file_proto_metacrypt_v1_policy_proto_msgTypes[0]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -48,7 +48,7 @@ func (x *PolicyRule) String() string {
|
|||||||
func (*PolicyRule) ProtoMessage() {}
|
func (*PolicyRule) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *PolicyRule) ProtoReflect() protoreflect.Message {
|
func (x *PolicyRule) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_policy_proto_msgTypes[0]
|
mi := &file_proto_metacrypt_v1_policy_proto_msgTypes[0]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -61,7 +61,7 @@ func (x *PolicyRule) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use PolicyRule.ProtoReflect.Descriptor instead.
|
// Deprecated: Use PolicyRule.ProtoReflect.Descriptor instead.
|
||||||
func (*PolicyRule) Descriptor() ([]byte, []int) {
|
func (*PolicyRule) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_policy_proto_rawDescGZIP(), []int{0}
|
return file_proto_metacrypt_v1_policy_proto_rawDescGZIP(), []int{0}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *PolicyRule) GetId() string {
|
func (x *PolicyRule) GetId() string {
|
||||||
@@ -122,7 +122,7 @@ type CreatePolicyRequest struct {
|
|||||||
|
|
||||||
func (x *CreatePolicyRequest) Reset() {
|
func (x *CreatePolicyRequest) Reset() {
|
||||||
*x = CreatePolicyRequest{}
|
*x = CreatePolicyRequest{}
|
||||||
mi := &file_metacrypt_v1_policy_proto_msgTypes[1]
|
mi := &file_proto_metacrypt_v1_policy_proto_msgTypes[1]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -134,7 +134,7 @@ func (x *CreatePolicyRequest) String() string {
|
|||||||
func (*CreatePolicyRequest) ProtoMessage() {}
|
func (*CreatePolicyRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *CreatePolicyRequest) ProtoReflect() protoreflect.Message {
|
func (x *CreatePolicyRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_policy_proto_msgTypes[1]
|
mi := &file_proto_metacrypt_v1_policy_proto_msgTypes[1]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -147,7 +147,7 @@ func (x *CreatePolicyRequest) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use CreatePolicyRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use CreatePolicyRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*CreatePolicyRequest) Descriptor() ([]byte, []int) {
|
func (*CreatePolicyRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_policy_proto_rawDescGZIP(), []int{1}
|
return file_proto_metacrypt_v1_policy_proto_rawDescGZIP(), []int{1}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *CreatePolicyRequest) GetRule() *PolicyRule {
|
func (x *CreatePolicyRequest) GetRule() *PolicyRule {
|
||||||
@@ -157,6 +157,94 @@ func (x *CreatePolicyRequest) GetRule() *PolicyRule {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type CreatePolicyResponse struct {
|
||||||
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
|
Rule *PolicyRule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CreatePolicyResponse) Reset() {
|
||||||
|
*x = CreatePolicyResponse{}
|
||||||
|
mi := &file_proto_metacrypt_v1_policy_proto_msgTypes[2]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CreatePolicyResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*CreatePolicyResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *CreatePolicyResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_proto_metacrypt_v1_policy_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 CreatePolicyResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*CreatePolicyResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_proto_metacrypt_v1_policy_proto_rawDescGZIP(), []int{2}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CreatePolicyResponse) GetRule() *PolicyRule {
|
||||||
|
if x != nil {
|
||||||
|
return x.Rule
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetPolicyResponse struct {
|
||||||
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
|
Rule *PolicyRule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetPolicyResponse) Reset() {
|
||||||
|
*x = GetPolicyResponse{}
|
||||||
|
mi := &file_proto_metacrypt_v1_policy_proto_msgTypes[3]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetPolicyResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*GetPolicyResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *GetPolicyResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_proto_metacrypt_v1_policy_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 GetPolicyResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*GetPolicyResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_proto_metacrypt_v1_policy_proto_rawDescGZIP(), []int{3}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GetPolicyResponse) GetRule() *PolicyRule {
|
||||||
|
if x != nil {
|
||||||
|
return x.Rule
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
type ListPoliciesRequest struct {
|
type ListPoliciesRequest struct {
|
||||||
state protoimpl.MessageState `protogen:"open.v1"`
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
@@ -165,7 +253,7 @@ type ListPoliciesRequest struct {
|
|||||||
|
|
||||||
func (x *ListPoliciesRequest) Reset() {
|
func (x *ListPoliciesRequest) Reset() {
|
||||||
*x = ListPoliciesRequest{}
|
*x = ListPoliciesRequest{}
|
||||||
mi := &file_metacrypt_v1_policy_proto_msgTypes[2]
|
mi := &file_proto_metacrypt_v1_policy_proto_msgTypes[4]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -177,7 +265,7 @@ func (x *ListPoliciesRequest) String() string {
|
|||||||
func (*ListPoliciesRequest) ProtoMessage() {}
|
func (*ListPoliciesRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *ListPoliciesRequest) ProtoReflect() protoreflect.Message {
|
func (x *ListPoliciesRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_policy_proto_msgTypes[2]
|
mi := &file_proto_metacrypt_v1_policy_proto_msgTypes[4]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -190,7 +278,7 @@ func (x *ListPoliciesRequest) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use ListPoliciesRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use ListPoliciesRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*ListPoliciesRequest) Descriptor() ([]byte, []int) {
|
func (*ListPoliciesRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_policy_proto_rawDescGZIP(), []int{2}
|
return file_proto_metacrypt_v1_policy_proto_rawDescGZIP(), []int{4}
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListPoliciesResponse struct {
|
type ListPoliciesResponse struct {
|
||||||
@@ -202,7 +290,7 @@ type ListPoliciesResponse struct {
|
|||||||
|
|
||||||
func (x *ListPoliciesResponse) Reset() {
|
func (x *ListPoliciesResponse) Reset() {
|
||||||
*x = ListPoliciesResponse{}
|
*x = ListPoliciesResponse{}
|
||||||
mi := &file_metacrypt_v1_policy_proto_msgTypes[3]
|
mi := &file_proto_metacrypt_v1_policy_proto_msgTypes[5]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -214,7 +302,7 @@ func (x *ListPoliciesResponse) String() string {
|
|||||||
func (*ListPoliciesResponse) ProtoMessage() {}
|
func (*ListPoliciesResponse) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *ListPoliciesResponse) ProtoReflect() protoreflect.Message {
|
func (x *ListPoliciesResponse) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_policy_proto_msgTypes[3]
|
mi := &file_proto_metacrypt_v1_policy_proto_msgTypes[5]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -227,7 +315,7 @@ func (x *ListPoliciesResponse) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use ListPoliciesResponse.ProtoReflect.Descriptor instead.
|
// Deprecated: Use ListPoliciesResponse.ProtoReflect.Descriptor instead.
|
||||||
func (*ListPoliciesResponse) Descriptor() ([]byte, []int) {
|
func (*ListPoliciesResponse) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_policy_proto_rawDescGZIP(), []int{3}
|
return file_proto_metacrypt_v1_policy_proto_rawDescGZIP(), []int{5}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ListPoliciesResponse) GetRules() []*PolicyRule {
|
func (x *ListPoliciesResponse) GetRules() []*PolicyRule {
|
||||||
@@ -246,7 +334,7 @@ type GetPolicyRequest struct {
|
|||||||
|
|
||||||
func (x *GetPolicyRequest) Reset() {
|
func (x *GetPolicyRequest) Reset() {
|
||||||
*x = GetPolicyRequest{}
|
*x = GetPolicyRequest{}
|
||||||
mi := &file_metacrypt_v1_policy_proto_msgTypes[4]
|
mi := &file_proto_metacrypt_v1_policy_proto_msgTypes[6]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -258,7 +346,7 @@ func (x *GetPolicyRequest) String() string {
|
|||||||
func (*GetPolicyRequest) ProtoMessage() {}
|
func (*GetPolicyRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *GetPolicyRequest) ProtoReflect() protoreflect.Message {
|
func (x *GetPolicyRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_policy_proto_msgTypes[4]
|
mi := &file_proto_metacrypt_v1_policy_proto_msgTypes[6]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -271,7 +359,7 @@ func (x *GetPolicyRequest) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use GetPolicyRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use GetPolicyRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*GetPolicyRequest) Descriptor() ([]byte, []int) {
|
func (*GetPolicyRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_policy_proto_rawDescGZIP(), []int{4}
|
return file_proto_metacrypt_v1_policy_proto_rawDescGZIP(), []int{6}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GetPolicyRequest) GetId() string {
|
func (x *GetPolicyRequest) GetId() string {
|
||||||
@@ -290,7 +378,7 @@ type DeletePolicyRequest struct {
|
|||||||
|
|
||||||
func (x *DeletePolicyRequest) Reset() {
|
func (x *DeletePolicyRequest) Reset() {
|
||||||
*x = DeletePolicyRequest{}
|
*x = DeletePolicyRequest{}
|
||||||
mi := &file_metacrypt_v1_policy_proto_msgTypes[5]
|
mi := &file_proto_metacrypt_v1_policy_proto_msgTypes[7]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -302,7 +390,7 @@ func (x *DeletePolicyRequest) String() string {
|
|||||||
func (*DeletePolicyRequest) ProtoMessage() {}
|
func (*DeletePolicyRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *DeletePolicyRequest) ProtoReflect() protoreflect.Message {
|
func (x *DeletePolicyRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_policy_proto_msgTypes[5]
|
mi := &file_proto_metacrypt_v1_policy_proto_msgTypes[7]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -315,7 +403,7 @@ func (x *DeletePolicyRequest) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use DeletePolicyRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use DeletePolicyRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*DeletePolicyRequest) Descriptor() ([]byte, []int) {
|
func (*DeletePolicyRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_policy_proto_rawDescGZIP(), []int{5}
|
return file_proto_metacrypt_v1_policy_proto_rawDescGZIP(), []int{7}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DeletePolicyRequest) GetId() string {
|
func (x *DeletePolicyRequest) GetId() string {
|
||||||
@@ -333,7 +421,7 @@ type DeletePolicyResponse struct {
|
|||||||
|
|
||||||
func (x *DeletePolicyResponse) Reset() {
|
func (x *DeletePolicyResponse) Reset() {
|
||||||
*x = DeletePolicyResponse{}
|
*x = DeletePolicyResponse{}
|
||||||
mi := &file_metacrypt_v1_policy_proto_msgTypes[6]
|
mi := &file_proto_metacrypt_v1_policy_proto_msgTypes[8]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -345,7 +433,7 @@ func (x *DeletePolicyResponse) String() string {
|
|||||||
func (*DeletePolicyResponse) ProtoMessage() {}
|
func (*DeletePolicyResponse) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *DeletePolicyResponse) ProtoReflect() protoreflect.Message {
|
func (x *DeletePolicyResponse) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_policy_proto_msgTypes[6]
|
mi := &file_proto_metacrypt_v1_policy_proto_msgTypes[8]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -358,14 +446,14 @@ func (x *DeletePolicyResponse) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use DeletePolicyResponse.ProtoReflect.Descriptor instead.
|
// Deprecated: Use DeletePolicyResponse.ProtoReflect.Descriptor instead.
|
||||||
func (*DeletePolicyResponse) Descriptor() ([]byte, []int) {
|
func (*DeletePolicyResponse) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_policy_proto_rawDescGZIP(), []int{6}
|
return file_proto_metacrypt_v1_policy_proto_rawDescGZIP(), []int{8}
|
||||||
}
|
}
|
||||||
|
|
||||||
var File_metacrypt_v1_policy_proto protoreflect.FileDescriptor
|
var File_proto_metacrypt_v1_policy_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
const file_metacrypt_v1_policy_proto_rawDesc = "" +
|
const file_proto_metacrypt_v1_policy_proto_rawDesc = "" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"\x19metacrypt/v1/policy.proto\x12\fmetacrypt.v1\"\xbc\x01\n" +
|
"\x1fproto/metacrypt/v1/policy.proto\x12\fmetacrypt.v1\"\xbc\x01\n" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"PolicyRule\x12\x0e\n" +
|
"PolicyRule\x12\x0e\n" +
|
||||||
"\x02id\x18\x01 \x01(\tR\x02id\x12\x1a\n" +
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x1a\n" +
|
||||||
@@ -376,6 +464,10 @@ const file_metacrypt_v1_policy_proto_rawDesc = "" +
|
|||||||
"\tresources\x18\x06 \x03(\tR\tresources\x12\x18\n" +
|
"\tresources\x18\x06 \x03(\tR\tresources\x12\x18\n" +
|
||||||
"\aactions\x18\a \x03(\tR\aactions\"C\n" +
|
"\aactions\x18\a \x03(\tR\aactions\"C\n" +
|
||||||
"\x13CreatePolicyRequest\x12,\n" +
|
"\x13CreatePolicyRequest\x12,\n" +
|
||||||
|
"\x04rule\x18\x01 \x01(\v2\x18.metacrypt.v1.PolicyRuleR\x04rule\"D\n" +
|
||||||
|
"\x14CreatePolicyResponse\x12,\n" +
|
||||||
|
"\x04rule\x18\x01 \x01(\v2\x18.metacrypt.v1.PolicyRuleR\x04rule\"A\n" +
|
||||||
|
"\x11GetPolicyResponse\x12,\n" +
|
||||||
"\x04rule\x18\x01 \x01(\v2\x18.metacrypt.v1.PolicyRuleR\x04rule\"\x15\n" +
|
"\x04rule\x18\x01 \x01(\v2\x18.metacrypt.v1.PolicyRuleR\x04rule\"\x15\n" +
|
||||||
"\x13ListPoliciesRequest\"F\n" +
|
"\x13ListPoliciesRequest\"F\n" +
|
||||||
"\x14ListPoliciesResponse\x12.\n" +
|
"\x14ListPoliciesResponse\x12.\n" +
|
||||||
@@ -384,73 +476,77 @@ const file_metacrypt_v1_policy_proto_rawDesc = "" +
|
|||||||
"\x02id\x18\x01 \x01(\tR\x02id\"%\n" +
|
"\x02id\x18\x01 \x01(\tR\x02id\"%\n" +
|
||||||
"\x13DeletePolicyRequest\x12\x0e\n" +
|
"\x13DeletePolicyRequest\x12\x0e\n" +
|
||||||
"\x02id\x18\x01 \x01(\tR\x02id\"\x16\n" +
|
"\x02id\x18\x01 \x01(\tR\x02id\"\x16\n" +
|
||||||
"\x14DeletePolicyResponse2\xd1\x02\n" +
|
"\x14DeletePolicyResponse2\xe2\x02\n" +
|
||||||
"\rPolicyService\x12K\n" +
|
"\rPolicyService\x12U\n" +
|
||||||
"\fCreatePolicy\x12!.metacrypt.v1.CreatePolicyRequest\x1a\x18.metacrypt.v1.PolicyRule\x12U\n" +
|
"\fCreatePolicy\x12!.metacrypt.v1.CreatePolicyRequest\x1a\".metacrypt.v1.CreatePolicyResponse\x12U\n" +
|
||||||
"\fListPolicies\x12!.metacrypt.v1.ListPoliciesRequest\x1a\".metacrypt.v1.ListPoliciesResponse\x12E\n" +
|
"\fListPolicies\x12!.metacrypt.v1.ListPoliciesRequest\x1a\".metacrypt.v1.ListPoliciesResponse\x12L\n" +
|
||||||
"\tGetPolicy\x12\x1e.metacrypt.v1.GetPolicyRequest\x1a\x18.metacrypt.v1.PolicyRule\x12U\n" +
|
"\tGetPolicy\x12\x1e.metacrypt.v1.GetPolicyRequest\x1a\x1f.metacrypt.v1.GetPolicyResponse\x12U\n" +
|
||||||
"\fDeletePolicy\x12!.metacrypt.v1.DeletePolicyRequest\x1a\".metacrypt.v1.DeletePolicyResponseB>Z<git.wntrmute.dev/kyle/metacrypt/gen/metacrypt/v1;metacryptv1b\x06proto3"
|
"\fDeletePolicy\x12!.metacrypt.v1.DeletePolicyRequest\x1a\".metacrypt.v1.DeletePolicyResponseB>Z<git.wntrmute.dev/kyle/metacrypt/gen/metacrypt/v1;metacryptv1b\x06proto3"
|
||||||
|
|
||||||
var (
|
var (
|
||||||
file_metacrypt_v1_policy_proto_rawDescOnce sync.Once
|
file_proto_metacrypt_v1_policy_proto_rawDescOnce sync.Once
|
||||||
file_metacrypt_v1_policy_proto_rawDescData []byte
|
file_proto_metacrypt_v1_policy_proto_rawDescData []byte
|
||||||
)
|
)
|
||||||
|
|
||||||
func file_metacrypt_v1_policy_proto_rawDescGZIP() []byte {
|
func file_proto_metacrypt_v1_policy_proto_rawDescGZIP() []byte {
|
||||||
file_metacrypt_v1_policy_proto_rawDescOnce.Do(func() {
|
file_proto_metacrypt_v1_policy_proto_rawDescOnce.Do(func() {
|
||||||
file_metacrypt_v1_policy_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_metacrypt_v1_policy_proto_rawDesc), len(file_metacrypt_v1_policy_proto_rawDesc)))
|
file_proto_metacrypt_v1_policy_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_metacrypt_v1_policy_proto_rawDesc), len(file_proto_metacrypt_v1_policy_proto_rawDesc)))
|
||||||
})
|
})
|
||||||
return file_metacrypt_v1_policy_proto_rawDescData
|
return file_proto_metacrypt_v1_policy_proto_rawDescData
|
||||||
}
|
}
|
||||||
|
|
||||||
var file_metacrypt_v1_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
var file_proto_metacrypt_v1_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
||||||
var file_metacrypt_v1_policy_proto_goTypes = []any{
|
var file_proto_metacrypt_v1_policy_proto_goTypes = []any{
|
||||||
(*PolicyRule)(nil), // 0: metacrypt.v1.PolicyRule
|
(*PolicyRule)(nil), // 0: metacrypt.v1.PolicyRule
|
||||||
(*CreatePolicyRequest)(nil), // 1: metacrypt.v1.CreatePolicyRequest
|
(*CreatePolicyRequest)(nil), // 1: metacrypt.v1.CreatePolicyRequest
|
||||||
(*ListPoliciesRequest)(nil), // 2: metacrypt.v1.ListPoliciesRequest
|
(*CreatePolicyResponse)(nil), // 2: metacrypt.v1.CreatePolicyResponse
|
||||||
(*ListPoliciesResponse)(nil), // 3: metacrypt.v1.ListPoliciesResponse
|
(*GetPolicyResponse)(nil), // 3: metacrypt.v1.GetPolicyResponse
|
||||||
(*GetPolicyRequest)(nil), // 4: metacrypt.v1.GetPolicyRequest
|
(*ListPoliciesRequest)(nil), // 4: metacrypt.v1.ListPoliciesRequest
|
||||||
(*DeletePolicyRequest)(nil), // 5: metacrypt.v1.DeletePolicyRequest
|
(*ListPoliciesResponse)(nil), // 5: metacrypt.v1.ListPoliciesResponse
|
||||||
(*DeletePolicyResponse)(nil), // 6: metacrypt.v1.DeletePolicyResponse
|
(*GetPolicyRequest)(nil), // 6: metacrypt.v1.GetPolicyRequest
|
||||||
|
(*DeletePolicyRequest)(nil), // 7: metacrypt.v1.DeletePolicyRequest
|
||||||
|
(*DeletePolicyResponse)(nil), // 8: metacrypt.v1.DeletePolicyResponse
|
||||||
}
|
}
|
||||||
var file_metacrypt_v1_policy_proto_depIdxs = []int32{
|
var file_proto_metacrypt_v1_policy_proto_depIdxs = []int32{
|
||||||
0, // 0: metacrypt.v1.CreatePolicyRequest.rule:type_name -> metacrypt.v1.PolicyRule
|
0, // 0: metacrypt.v1.CreatePolicyRequest.rule:type_name -> metacrypt.v1.PolicyRule
|
||||||
0, // 1: metacrypt.v1.ListPoliciesResponse.rules:type_name -> metacrypt.v1.PolicyRule
|
0, // 1: metacrypt.v1.CreatePolicyResponse.rule:type_name -> metacrypt.v1.PolicyRule
|
||||||
1, // 2: metacrypt.v1.PolicyService.CreatePolicy:input_type -> metacrypt.v1.CreatePolicyRequest
|
0, // 2: metacrypt.v1.GetPolicyResponse.rule:type_name -> metacrypt.v1.PolicyRule
|
||||||
2, // 3: metacrypt.v1.PolicyService.ListPolicies:input_type -> metacrypt.v1.ListPoliciesRequest
|
0, // 3: metacrypt.v1.ListPoliciesResponse.rules:type_name -> metacrypt.v1.PolicyRule
|
||||||
4, // 4: metacrypt.v1.PolicyService.GetPolicy:input_type -> metacrypt.v1.GetPolicyRequest
|
1, // 4: metacrypt.v1.PolicyService.CreatePolicy:input_type -> metacrypt.v1.CreatePolicyRequest
|
||||||
5, // 5: metacrypt.v1.PolicyService.DeletePolicy:input_type -> metacrypt.v1.DeletePolicyRequest
|
4, // 5: metacrypt.v1.PolicyService.ListPolicies:input_type -> metacrypt.v1.ListPoliciesRequest
|
||||||
0, // 6: metacrypt.v1.PolicyService.CreatePolicy:output_type -> metacrypt.v1.PolicyRule
|
6, // 6: metacrypt.v1.PolicyService.GetPolicy:input_type -> metacrypt.v1.GetPolicyRequest
|
||||||
3, // 7: metacrypt.v1.PolicyService.ListPolicies:output_type -> metacrypt.v1.ListPoliciesResponse
|
7, // 7: metacrypt.v1.PolicyService.DeletePolicy:input_type -> metacrypt.v1.DeletePolicyRequest
|
||||||
0, // 8: metacrypt.v1.PolicyService.GetPolicy:output_type -> metacrypt.v1.PolicyRule
|
2, // 8: metacrypt.v1.PolicyService.CreatePolicy:output_type -> metacrypt.v1.CreatePolicyResponse
|
||||||
6, // 9: metacrypt.v1.PolicyService.DeletePolicy:output_type -> metacrypt.v1.DeletePolicyResponse
|
5, // 9: metacrypt.v1.PolicyService.ListPolicies:output_type -> metacrypt.v1.ListPoliciesResponse
|
||||||
6, // [6:10] is the sub-list for method output_type
|
3, // 10: metacrypt.v1.PolicyService.GetPolicy:output_type -> metacrypt.v1.GetPolicyResponse
|
||||||
2, // [2:6] is the sub-list for method input_type
|
8, // 11: metacrypt.v1.PolicyService.DeletePolicy:output_type -> metacrypt.v1.DeletePolicyResponse
|
||||||
2, // [2:2] is the sub-list for extension type_name
|
8, // [8:12] is the sub-list for method output_type
|
||||||
2, // [2:2] is the sub-list for extension extendee
|
4, // [4:8] is the sub-list for method input_type
|
||||||
0, // [0:2] is the sub-list for field type_name
|
4, // [4:4] is the sub-list for extension type_name
|
||||||
|
4, // [4:4] is the sub-list for extension extendee
|
||||||
|
0, // [0:4] is the sub-list for field type_name
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { file_metacrypt_v1_policy_proto_init() }
|
func init() { file_proto_metacrypt_v1_policy_proto_init() }
|
||||||
func file_metacrypt_v1_policy_proto_init() {
|
func file_proto_metacrypt_v1_policy_proto_init() {
|
||||||
if File_metacrypt_v1_policy_proto != nil {
|
if File_proto_metacrypt_v1_policy_proto != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
type x struct{}
|
type x struct{}
|
||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
File: protoimpl.DescBuilder{
|
File: protoimpl.DescBuilder{
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_metacrypt_v1_policy_proto_rawDesc), len(file_metacrypt_v1_policy_proto_rawDesc)),
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_metacrypt_v1_policy_proto_rawDesc), len(file_proto_metacrypt_v1_policy_proto_rawDesc)),
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 7,
|
NumMessages: 9,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 1,
|
NumServices: 1,
|
||||||
},
|
},
|
||||||
GoTypes: file_metacrypt_v1_policy_proto_goTypes,
|
GoTypes: file_proto_metacrypt_v1_policy_proto_goTypes,
|
||||||
DependencyIndexes: file_metacrypt_v1_policy_proto_depIdxs,
|
DependencyIndexes: file_proto_metacrypt_v1_policy_proto_depIdxs,
|
||||||
MessageInfos: file_metacrypt_v1_policy_proto_msgTypes,
|
MessageInfos: file_proto_metacrypt_v1_policy_proto_msgTypes,
|
||||||
}.Build()
|
}.Build()
|
||||||
File_metacrypt_v1_policy_proto = out.File
|
File_proto_metacrypt_v1_policy_proto = out.File
|
||||||
file_metacrypt_v1_policy_proto_goTypes = nil
|
file_proto_metacrypt_v1_policy_proto_goTypes = nil
|
||||||
file_metacrypt_v1_policy_proto_depIdxs = nil
|
file_proto_metacrypt_v1_policy_proto_depIdxs = nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// versions:
|
// versions:
|
||||||
// - protoc-gen-go-grpc v1.6.1
|
// - protoc-gen-go-grpc v1.6.1
|
||||||
// - protoc v3.20.3
|
// - protoc v3.20.3
|
||||||
// source: metacrypt/v1/policy.proto
|
// source: proto/metacrypt/v1/policy.proto
|
||||||
|
|
||||||
package metacryptv1
|
package metacryptv1
|
||||||
|
|
||||||
@@ -29,9 +29,9 @@ const (
|
|||||||
//
|
//
|
||||||
// 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.
|
// 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.
|
||||||
type PolicyServiceClient interface {
|
type PolicyServiceClient interface {
|
||||||
CreatePolicy(ctx context.Context, in *CreatePolicyRequest, opts ...grpc.CallOption) (*PolicyRule, error)
|
CreatePolicy(ctx context.Context, in *CreatePolicyRequest, opts ...grpc.CallOption) (*CreatePolicyResponse, error)
|
||||||
ListPolicies(ctx context.Context, in *ListPoliciesRequest, opts ...grpc.CallOption) (*ListPoliciesResponse, error)
|
ListPolicies(ctx context.Context, in *ListPoliciesRequest, opts ...grpc.CallOption) (*ListPoliciesResponse, error)
|
||||||
GetPolicy(ctx context.Context, in *GetPolicyRequest, opts ...grpc.CallOption) (*PolicyRule, error)
|
GetPolicy(ctx context.Context, in *GetPolicyRequest, opts ...grpc.CallOption) (*GetPolicyResponse, error)
|
||||||
DeletePolicy(ctx context.Context, in *DeletePolicyRequest, opts ...grpc.CallOption) (*DeletePolicyResponse, error)
|
DeletePolicy(ctx context.Context, in *DeletePolicyRequest, opts ...grpc.CallOption) (*DeletePolicyResponse, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -43,9 +43,9 @@ func NewPolicyServiceClient(cc grpc.ClientConnInterface) PolicyServiceClient {
|
|||||||
return &policyServiceClient{cc}
|
return &policyServiceClient{cc}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *policyServiceClient) CreatePolicy(ctx context.Context, in *CreatePolicyRequest, opts ...grpc.CallOption) (*PolicyRule, error) {
|
func (c *policyServiceClient) CreatePolicy(ctx context.Context, in *CreatePolicyRequest, opts ...grpc.CallOption) (*CreatePolicyResponse, error) {
|
||||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
out := new(PolicyRule)
|
out := new(CreatePolicyResponse)
|
||||||
err := c.cc.Invoke(ctx, PolicyService_CreatePolicy_FullMethodName, in, out, cOpts...)
|
err := c.cc.Invoke(ctx, PolicyService_CreatePolicy_FullMethodName, in, out, cOpts...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
@@ -63,9 +63,9 @@ func (c *policyServiceClient) ListPolicies(ctx context.Context, in *ListPolicies
|
|||||||
return out, nil
|
return out, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *policyServiceClient) GetPolicy(ctx context.Context, in *GetPolicyRequest, opts ...grpc.CallOption) (*PolicyRule, error) {
|
func (c *policyServiceClient) GetPolicy(ctx context.Context, in *GetPolicyRequest, opts ...grpc.CallOption) (*GetPolicyResponse, error) {
|
||||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
out := new(PolicyRule)
|
out := new(GetPolicyResponse)
|
||||||
err := c.cc.Invoke(ctx, PolicyService_GetPolicy_FullMethodName, in, out, cOpts...)
|
err := c.cc.Invoke(ctx, PolicyService_GetPolicy_FullMethodName, in, out, cOpts...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
@@ -87,9 +87,9 @@ func (c *policyServiceClient) DeletePolicy(ctx context.Context, in *DeletePolicy
|
|||||||
// All implementations must embed UnimplementedPolicyServiceServer
|
// All implementations must embed UnimplementedPolicyServiceServer
|
||||||
// for forward compatibility.
|
// for forward compatibility.
|
||||||
type PolicyServiceServer interface {
|
type PolicyServiceServer interface {
|
||||||
CreatePolicy(context.Context, *CreatePolicyRequest) (*PolicyRule, error)
|
CreatePolicy(context.Context, *CreatePolicyRequest) (*CreatePolicyResponse, error)
|
||||||
ListPolicies(context.Context, *ListPoliciesRequest) (*ListPoliciesResponse, error)
|
ListPolicies(context.Context, *ListPoliciesRequest) (*ListPoliciesResponse, error)
|
||||||
GetPolicy(context.Context, *GetPolicyRequest) (*PolicyRule, error)
|
GetPolicy(context.Context, *GetPolicyRequest) (*GetPolicyResponse, error)
|
||||||
DeletePolicy(context.Context, *DeletePolicyRequest) (*DeletePolicyResponse, error)
|
DeletePolicy(context.Context, *DeletePolicyRequest) (*DeletePolicyResponse, error)
|
||||||
mustEmbedUnimplementedPolicyServiceServer()
|
mustEmbedUnimplementedPolicyServiceServer()
|
||||||
}
|
}
|
||||||
@@ -101,13 +101,13 @@ type PolicyServiceServer interface {
|
|||||||
// pointer dereference when methods are called.
|
// pointer dereference when methods are called.
|
||||||
type UnimplementedPolicyServiceServer struct{}
|
type UnimplementedPolicyServiceServer struct{}
|
||||||
|
|
||||||
func (UnimplementedPolicyServiceServer) CreatePolicy(context.Context, *CreatePolicyRequest) (*PolicyRule, error) {
|
func (UnimplementedPolicyServiceServer) CreatePolicy(context.Context, *CreatePolicyRequest) (*CreatePolicyResponse, error) {
|
||||||
return nil, status.Error(codes.Unimplemented, "method CreatePolicy not implemented")
|
return nil, status.Error(codes.Unimplemented, "method CreatePolicy not implemented")
|
||||||
}
|
}
|
||||||
func (UnimplementedPolicyServiceServer) ListPolicies(context.Context, *ListPoliciesRequest) (*ListPoliciesResponse, error) {
|
func (UnimplementedPolicyServiceServer) ListPolicies(context.Context, *ListPoliciesRequest) (*ListPoliciesResponse, error) {
|
||||||
return nil, status.Error(codes.Unimplemented, "method ListPolicies not implemented")
|
return nil, status.Error(codes.Unimplemented, "method ListPolicies not implemented")
|
||||||
}
|
}
|
||||||
func (UnimplementedPolicyServiceServer) GetPolicy(context.Context, *GetPolicyRequest) (*PolicyRule, error) {
|
func (UnimplementedPolicyServiceServer) GetPolicy(context.Context, *GetPolicyRequest) (*GetPolicyResponse, error) {
|
||||||
return nil, status.Error(codes.Unimplemented, "method GetPolicy not implemented")
|
return nil, status.Error(codes.Unimplemented, "method GetPolicy not implemented")
|
||||||
}
|
}
|
||||||
func (UnimplementedPolicyServiceServer) DeletePolicy(context.Context, *DeletePolicyRequest) (*DeletePolicyResponse, error) {
|
func (UnimplementedPolicyServiceServer) DeletePolicy(context.Context, *DeletePolicyRequest) (*DeletePolicyResponse, error) {
|
||||||
@@ -231,5 +231,5 @@ var PolicyService_ServiceDesc = grpc.ServiceDesc{
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
Streams: []grpc.StreamDesc{},
|
Streams: []grpc.StreamDesc{},
|
||||||
Metadata: "metacrypt/v1/policy.proto",
|
Metadata: "proto/metacrypt/v1/policy.proto",
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.36.11
|
// protoc-gen-go v1.36.11
|
||||||
// protoc v3.20.3
|
// protoc v3.20.3
|
||||||
// source: metacrypt/v1/system.proto
|
// source: proto/metacrypt/v1/system.proto
|
||||||
|
|
||||||
package metacryptv1
|
package metacryptv1
|
||||||
|
|
||||||
@@ -29,7 +29,7 @@ type StatusRequest struct {
|
|||||||
|
|
||||||
func (x *StatusRequest) Reset() {
|
func (x *StatusRequest) Reset() {
|
||||||
*x = StatusRequest{}
|
*x = StatusRequest{}
|
||||||
mi := &file_metacrypt_v1_system_proto_msgTypes[0]
|
mi := &file_proto_metacrypt_v1_system_proto_msgTypes[0]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -41,7 +41,7 @@ func (x *StatusRequest) String() string {
|
|||||||
func (*StatusRequest) ProtoMessage() {}
|
func (*StatusRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *StatusRequest) ProtoReflect() protoreflect.Message {
|
func (x *StatusRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_system_proto_msgTypes[0]
|
mi := &file_proto_metacrypt_v1_system_proto_msgTypes[0]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -54,7 +54,7 @@ func (x *StatusRequest) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use StatusRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use StatusRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*StatusRequest) Descriptor() ([]byte, []int) {
|
func (*StatusRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_system_proto_rawDescGZIP(), []int{0}
|
return file_proto_metacrypt_v1_system_proto_rawDescGZIP(), []int{0}
|
||||||
}
|
}
|
||||||
|
|
||||||
type StatusResponse struct {
|
type StatusResponse struct {
|
||||||
@@ -66,7 +66,7 @@ type StatusResponse struct {
|
|||||||
|
|
||||||
func (x *StatusResponse) Reset() {
|
func (x *StatusResponse) Reset() {
|
||||||
*x = StatusResponse{}
|
*x = StatusResponse{}
|
||||||
mi := &file_metacrypt_v1_system_proto_msgTypes[1]
|
mi := &file_proto_metacrypt_v1_system_proto_msgTypes[1]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -78,7 +78,7 @@ func (x *StatusResponse) String() string {
|
|||||||
func (*StatusResponse) ProtoMessage() {}
|
func (*StatusResponse) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *StatusResponse) ProtoReflect() protoreflect.Message {
|
func (x *StatusResponse) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_system_proto_msgTypes[1]
|
mi := &file_proto_metacrypt_v1_system_proto_msgTypes[1]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -91,7 +91,7 @@ func (x *StatusResponse) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead.
|
// Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead.
|
||||||
func (*StatusResponse) Descriptor() ([]byte, []int) {
|
func (*StatusResponse) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_system_proto_rawDescGZIP(), []int{1}
|
return file_proto_metacrypt_v1_system_proto_rawDescGZIP(), []int{1}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *StatusResponse) GetState() string {
|
func (x *StatusResponse) GetState() string {
|
||||||
@@ -110,7 +110,7 @@ type InitRequest struct {
|
|||||||
|
|
||||||
func (x *InitRequest) Reset() {
|
func (x *InitRequest) Reset() {
|
||||||
*x = InitRequest{}
|
*x = InitRequest{}
|
||||||
mi := &file_metacrypt_v1_system_proto_msgTypes[2]
|
mi := &file_proto_metacrypt_v1_system_proto_msgTypes[2]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -122,7 +122,7 @@ func (x *InitRequest) String() string {
|
|||||||
func (*InitRequest) ProtoMessage() {}
|
func (*InitRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *InitRequest) ProtoReflect() protoreflect.Message {
|
func (x *InitRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_system_proto_msgTypes[2]
|
mi := &file_proto_metacrypt_v1_system_proto_msgTypes[2]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -135,7 +135,7 @@ func (x *InitRequest) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use InitRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use InitRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*InitRequest) Descriptor() ([]byte, []int) {
|
func (*InitRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_system_proto_rawDescGZIP(), []int{2}
|
return file_proto_metacrypt_v1_system_proto_rawDescGZIP(), []int{2}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *InitRequest) GetPassword() string {
|
func (x *InitRequest) GetPassword() string {
|
||||||
@@ -154,7 +154,7 @@ type InitResponse struct {
|
|||||||
|
|
||||||
func (x *InitResponse) Reset() {
|
func (x *InitResponse) Reset() {
|
||||||
*x = InitResponse{}
|
*x = InitResponse{}
|
||||||
mi := &file_metacrypt_v1_system_proto_msgTypes[3]
|
mi := &file_proto_metacrypt_v1_system_proto_msgTypes[3]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -166,7 +166,7 @@ func (x *InitResponse) String() string {
|
|||||||
func (*InitResponse) ProtoMessage() {}
|
func (*InitResponse) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *InitResponse) ProtoReflect() protoreflect.Message {
|
func (x *InitResponse) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_system_proto_msgTypes[3]
|
mi := &file_proto_metacrypt_v1_system_proto_msgTypes[3]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -179,7 +179,7 @@ func (x *InitResponse) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use InitResponse.ProtoReflect.Descriptor instead.
|
// Deprecated: Use InitResponse.ProtoReflect.Descriptor instead.
|
||||||
func (*InitResponse) Descriptor() ([]byte, []int) {
|
func (*InitResponse) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_system_proto_rawDescGZIP(), []int{3}
|
return file_proto_metacrypt_v1_system_proto_rawDescGZIP(), []int{3}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *InitResponse) GetState() string {
|
func (x *InitResponse) GetState() string {
|
||||||
@@ -198,7 +198,7 @@ type UnsealRequest struct {
|
|||||||
|
|
||||||
func (x *UnsealRequest) Reset() {
|
func (x *UnsealRequest) Reset() {
|
||||||
*x = UnsealRequest{}
|
*x = UnsealRequest{}
|
||||||
mi := &file_metacrypt_v1_system_proto_msgTypes[4]
|
mi := &file_proto_metacrypt_v1_system_proto_msgTypes[4]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -210,7 +210,7 @@ func (x *UnsealRequest) String() string {
|
|||||||
func (*UnsealRequest) ProtoMessage() {}
|
func (*UnsealRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *UnsealRequest) ProtoReflect() protoreflect.Message {
|
func (x *UnsealRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_system_proto_msgTypes[4]
|
mi := &file_proto_metacrypt_v1_system_proto_msgTypes[4]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -223,7 +223,7 @@ func (x *UnsealRequest) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use UnsealRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use UnsealRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*UnsealRequest) Descriptor() ([]byte, []int) {
|
func (*UnsealRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_system_proto_rawDescGZIP(), []int{4}
|
return file_proto_metacrypt_v1_system_proto_rawDescGZIP(), []int{4}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UnsealRequest) GetPassword() string {
|
func (x *UnsealRequest) GetPassword() string {
|
||||||
@@ -242,7 +242,7 @@ type UnsealResponse struct {
|
|||||||
|
|
||||||
func (x *UnsealResponse) Reset() {
|
func (x *UnsealResponse) Reset() {
|
||||||
*x = UnsealResponse{}
|
*x = UnsealResponse{}
|
||||||
mi := &file_metacrypt_v1_system_proto_msgTypes[5]
|
mi := &file_proto_metacrypt_v1_system_proto_msgTypes[5]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -254,7 +254,7 @@ func (x *UnsealResponse) String() string {
|
|||||||
func (*UnsealResponse) ProtoMessage() {}
|
func (*UnsealResponse) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *UnsealResponse) ProtoReflect() protoreflect.Message {
|
func (x *UnsealResponse) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_system_proto_msgTypes[5]
|
mi := &file_proto_metacrypt_v1_system_proto_msgTypes[5]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -267,7 +267,7 @@ func (x *UnsealResponse) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use UnsealResponse.ProtoReflect.Descriptor instead.
|
// Deprecated: Use UnsealResponse.ProtoReflect.Descriptor instead.
|
||||||
func (*UnsealResponse) Descriptor() ([]byte, []int) {
|
func (*UnsealResponse) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_system_proto_rawDescGZIP(), []int{5}
|
return file_proto_metacrypt_v1_system_proto_rawDescGZIP(), []int{5}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *UnsealResponse) GetState() string {
|
func (x *UnsealResponse) GetState() string {
|
||||||
@@ -285,7 +285,7 @@ type SealRequest struct {
|
|||||||
|
|
||||||
func (x *SealRequest) Reset() {
|
func (x *SealRequest) Reset() {
|
||||||
*x = SealRequest{}
|
*x = SealRequest{}
|
||||||
mi := &file_metacrypt_v1_system_proto_msgTypes[6]
|
mi := &file_proto_metacrypt_v1_system_proto_msgTypes[6]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -297,7 +297,7 @@ func (x *SealRequest) String() string {
|
|||||||
func (*SealRequest) ProtoMessage() {}
|
func (*SealRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *SealRequest) ProtoReflect() protoreflect.Message {
|
func (x *SealRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_system_proto_msgTypes[6]
|
mi := &file_proto_metacrypt_v1_system_proto_msgTypes[6]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -310,7 +310,7 @@ func (x *SealRequest) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use SealRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use SealRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*SealRequest) Descriptor() ([]byte, []int) {
|
func (*SealRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_system_proto_rawDescGZIP(), []int{6}
|
return file_proto_metacrypt_v1_system_proto_rawDescGZIP(), []int{6}
|
||||||
}
|
}
|
||||||
|
|
||||||
type SealResponse struct {
|
type SealResponse struct {
|
||||||
@@ -322,7 +322,7 @@ type SealResponse struct {
|
|||||||
|
|
||||||
func (x *SealResponse) Reset() {
|
func (x *SealResponse) Reset() {
|
||||||
*x = SealResponse{}
|
*x = SealResponse{}
|
||||||
mi := &file_metacrypt_v1_system_proto_msgTypes[7]
|
mi := &file_proto_metacrypt_v1_system_proto_msgTypes[7]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -334,7 +334,7 @@ func (x *SealResponse) String() string {
|
|||||||
func (*SealResponse) ProtoMessage() {}
|
func (*SealResponse) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *SealResponse) ProtoReflect() protoreflect.Message {
|
func (x *SealResponse) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_metacrypt_v1_system_proto_msgTypes[7]
|
mi := &file_proto_metacrypt_v1_system_proto_msgTypes[7]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -347,7 +347,7 @@ func (x *SealResponse) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use SealResponse.ProtoReflect.Descriptor instead.
|
// Deprecated: Use SealResponse.ProtoReflect.Descriptor instead.
|
||||||
func (*SealResponse) Descriptor() ([]byte, []int) {
|
func (*SealResponse) Descriptor() ([]byte, []int) {
|
||||||
return file_metacrypt_v1_system_proto_rawDescGZIP(), []int{7}
|
return file_proto_metacrypt_v1_system_proto_rawDescGZIP(), []int{7}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SealResponse) GetState() string {
|
func (x *SealResponse) GetState() string {
|
||||||
@@ -357,11 +357,11 @@ func (x *SealResponse) GetState() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
var File_metacrypt_v1_system_proto protoreflect.FileDescriptor
|
var File_proto_metacrypt_v1_system_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
const file_metacrypt_v1_system_proto_rawDesc = "" +
|
const file_proto_metacrypt_v1_system_proto_rawDesc = "" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"\x19metacrypt/v1/system.proto\x12\fmetacrypt.v1\"\x0f\n" +
|
"\x1fproto/metacrypt/v1/system.proto\x12\fmetacrypt.v1\"\x0f\n" +
|
||||||
"\rStatusRequest\"&\n" +
|
"\rStatusRequest\"&\n" +
|
||||||
"\x0eStatusResponse\x12\x14\n" +
|
"\x0eStatusResponse\x12\x14\n" +
|
||||||
"\x05state\x18\x01 \x01(\tR\x05state\")\n" +
|
"\x05state\x18\x01 \x01(\tR\x05state\")\n" +
|
||||||
@@ -383,19 +383,19 @@ const file_metacrypt_v1_system_proto_rawDesc = "" +
|
|||||||
"\x04Seal\x12\x19.metacrypt.v1.SealRequest\x1a\x1a.metacrypt.v1.SealResponseB>Z<git.wntrmute.dev/kyle/metacrypt/gen/metacrypt/v1;metacryptv1b\x06proto3"
|
"\x04Seal\x12\x19.metacrypt.v1.SealRequest\x1a\x1a.metacrypt.v1.SealResponseB>Z<git.wntrmute.dev/kyle/metacrypt/gen/metacrypt/v1;metacryptv1b\x06proto3"
|
||||||
|
|
||||||
var (
|
var (
|
||||||
file_metacrypt_v1_system_proto_rawDescOnce sync.Once
|
file_proto_metacrypt_v1_system_proto_rawDescOnce sync.Once
|
||||||
file_metacrypt_v1_system_proto_rawDescData []byte
|
file_proto_metacrypt_v1_system_proto_rawDescData []byte
|
||||||
)
|
)
|
||||||
|
|
||||||
func file_metacrypt_v1_system_proto_rawDescGZIP() []byte {
|
func file_proto_metacrypt_v1_system_proto_rawDescGZIP() []byte {
|
||||||
file_metacrypt_v1_system_proto_rawDescOnce.Do(func() {
|
file_proto_metacrypt_v1_system_proto_rawDescOnce.Do(func() {
|
||||||
file_metacrypt_v1_system_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_metacrypt_v1_system_proto_rawDesc), len(file_metacrypt_v1_system_proto_rawDesc)))
|
file_proto_metacrypt_v1_system_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_metacrypt_v1_system_proto_rawDesc), len(file_proto_metacrypt_v1_system_proto_rawDesc)))
|
||||||
})
|
})
|
||||||
return file_metacrypt_v1_system_proto_rawDescData
|
return file_proto_metacrypt_v1_system_proto_rawDescData
|
||||||
}
|
}
|
||||||
|
|
||||||
var file_metacrypt_v1_system_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
var file_proto_metacrypt_v1_system_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
||||||
var file_metacrypt_v1_system_proto_goTypes = []any{
|
var file_proto_metacrypt_v1_system_proto_goTypes = []any{
|
||||||
(*StatusRequest)(nil), // 0: metacrypt.v1.StatusRequest
|
(*StatusRequest)(nil), // 0: metacrypt.v1.StatusRequest
|
||||||
(*StatusResponse)(nil), // 1: metacrypt.v1.StatusResponse
|
(*StatusResponse)(nil), // 1: metacrypt.v1.StatusResponse
|
||||||
(*InitRequest)(nil), // 2: metacrypt.v1.InitRequest
|
(*InitRequest)(nil), // 2: metacrypt.v1.InitRequest
|
||||||
@@ -405,7 +405,7 @@ var file_metacrypt_v1_system_proto_goTypes = []any{
|
|||||||
(*SealRequest)(nil), // 6: metacrypt.v1.SealRequest
|
(*SealRequest)(nil), // 6: metacrypt.v1.SealRequest
|
||||||
(*SealResponse)(nil), // 7: metacrypt.v1.SealResponse
|
(*SealResponse)(nil), // 7: metacrypt.v1.SealResponse
|
||||||
}
|
}
|
||||||
var file_metacrypt_v1_system_proto_depIdxs = []int32{
|
var file_proto_metacrypt_v1_system_proto_depIdxs = []int32{
|
||||||
0, // 0: metacrypt.v1.SystemService.Status:input_type -> metacrypt.v1.StatusRequest
|
0, // 0: metacrypt.v1.SystemService.Status:input_type -> metacrypt.v1.StatusRequest
|
||||||
2, // 1: metacrypt.v1.SystemService.Init:input_type -> metacrypt.v1.InitRequest
|
2, // 1: metacrypt.v1.SystemService.Init:input_type -> metacrypt.v1.InitRequest
|
||||||
4, // 2: metacrypt.v1.SystemService.Unseal:input_type -> metacrypt.v1.UnsealRequest
|
4, // 2: metacrypt.v1.SystemService.Unseal:input_type -> metacrypt.v1.UnsealRequest
|
||||||
@@ -421,26 +421,26 @@ var file_metacrypt_v1_system_proto_depIdxs = []int32{
|
|||||||
0, // [0:0] is the sub-list for field type_name
|
0, // [0:0] is the sub-list for field type_name
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { file_metacrypt_v1_system_proto_init() }
|
func init() { file_proto_metacrypt_v1_system_proto_init() }
|
||||||
func file_metacrypt_v1_system_proto_init() {
|
func file_proto_metacrypt_v1_system_proto_init() {
|
||||||
if File_metacrypt_v1_system_proto != nil {
|
if File_proto_metacrypt_v1_system_proto != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
type x struct{}
|
type x struct{}
|
||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
File: protoimpl.DescBuilder{
|
File: protoimpl.DescBuilder{
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_metacrypt_v1_system_proto_rawDesc), len(file_metacrypt_v1_system_proto_rawDesc)),
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_metacrypt_v1_system_proto_rawDesc), len(file_proto_metacrypt_v1_system_proto_rawDesc)),
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 8,
|
NumMessages: 8,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 1,
|
NumServices: 1,
|
||||||
},
|
},
|
||||||
GoTypes: file_metacrypt_v1_system_proto_goTypes,
|
GoTypes: file_proto_metacrypt_v1_system_proto_goTypes,
|
||||||
DependencyIndexes: file_metacrypt_v1_system_proto_depIdxs,
|
DependencyIndexes: file_proto_metacrypt_v1_system_proto_depIdxs,
|
||||||
MessageInfos: file_metacrypt_v1_system_proto_msgTypes,
|
MessageInfos: file_proto_metacrypt_v1_system_proto_msgTypes,
|
||||||
}.Build()
|
}.Build()
|
||||||
File_metacrypt_v1_system_proto = out.File
|
File_proto_metacrypt_v1_system_proto = out.File
|
||||||
file_metacrypt_v1_system_proto_goTypes = nil
|
file_proto_metacrypt_v1_system_proto_goTypes = nil
|
||||||
file_metacrypt_v1_system_proto_depIdxs = nil
|
file_proto_metacrypt_v1_system_proto_depIdxs = nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// versions:
|
// versions:
|
||||||
// - protoc-gen-go-grpc v1.6.1
|
// - protoc-gen-go-grpc v1.6.1
|
||||||
// - protoc v3.20.3
|
// - protoc v3.20.3
|
||||||
// source: metacrypt/v1/system.proto
|
// source: proto/metacrypt/v1/system.proto
|
||||||
|
|
||||||
package metacryptv1
|
package metacryptv1
|
||||||
|
|
||||||
@@ -231,5 +231,5 @@ var SystemService_ServiceDesc = grpc.ServiceDesc{
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
Streams: []grpc.StreamDesc{},
|
Streams: []grpc.StreamDesc{},
|
||||||
Metadata: "metacrypt/v1/system.proto",
|
Metadata: "proto/metacrypt/v1/system.proto",
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ func (as *acmeServer) CreateEAB(ctx context.Context, req *pb.CreateEABRequest) (
|
|||||||
return &pb.CreateEABResponse{Kid: cred.KID, HmacKey: cred.HMACKey}, nil
|
return &pb.CreateEABResponse{Kid: cred.KID, HmacKey: cred.HMACKey}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (as *acmeServer) SetConfig(ctx context.Context, req *pb.SetACMEConfigRequest) (*pb.SetACMEConfigResponse, error) {
|
func (as *acmeServer) SetConfig(ctx context.Context, req *pb.SetConfigRequest) (*pb.SetConfigResponse, error) {
|
||||||
if req.DefaultIssuer == "" {
|
if req.DefaultIssuer == "" {
|
||||||
return nil, status.Error(codes.InvalidArgument, "default_issuer is required")
|
return nil, status.Error(codes.InvalidArgument, "default_issuer is required")
|
||||||
}
|
}
|
||||||
@@ -46,10 +46,10 @@ func (as *acmeServer) SetConfig(ctx context.Context, req *pb.SetACMEConfigReques
|
|||||||
as.s.logger.Error("grpc: acme set config", "error", err)
|
as.s.logger.Error("grpc: acme set config", "error", err)
|
||||||
return nil, status.Error(codes.Internal, "failed to save config")
|
return nil, status.Error(codes.Internal, "failed to save config")
|
||||||
}
|
}
|
||||||
return &pb.SetACMEConfigResponse{Ok: true}, nil
|
return &pb.SetConfigResponse{Ok: true}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (as *acmeServer) ListAccounts(ctx context.Context, req *pb.ListACMEAccountsRequest) (*pb.ListACMEAccountsResponse, error) {
|
func (as *acmeServer) ListAccounts(ctx context.Context, req *pb.ListAccountsRequest) (*pb.ListAccountsResponse, error) {
|
||||||
h, err := as.getOrCreateHandler(req.Mount)
|
h, err := as.getOrCreateHandler(req.Mount)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, status.Error(codes.NotFound, "mount not found")
|
return nil, status.Error(codes.NotFound, "mount not found")
|
||||||
@@ -71,10 +71,10 @@ func (as *acmeServer) ListAccounts(ctx context.Context, req *pb.ListACMEAccounts
|
|||||||
CreatedAt: a.CreatedAt.String(),
|
CreatedAt: a.CreatedAt.String(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
return &pb.ListACMEAccountsResponse{Accounts: pbAccounts}, nil
|
return &pb.ListAccountsResponse{Accounts: pbAccounts}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (as *acmeServer) ListOrders(ctx context.Context, req *pb.ListACMEOrdersRequest) (*pb.ListACMEOrdersResponse, error) {
|
func (as *acmeServer) ListOrders(ctx context.Context, req *pb.ListOrdersRequest) (*pb.ListOrdersResponse, error) {
|
||||||
h, err := as.getOrCreateHandler(req.Mount)
|
h, err := as.getOrCreateHandler(req.Mount)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, status.Error(codes.NotFound, "mount not found")
|
return nil, status.Error(codes.NotFound, "mount not found")
|
||||||
@@ -99,7 +99,7 @@ func (as *acmeServer) ListOrders(ctx context.Context, req *pb.ListACMEOrdersRequ
|
|||||||
ExpiresAt: o.ExpiresAt.String(),
|
ExpiresAt: o.ExpiresAt.String(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
return &pb.ListACMEOrdersResponse{Orders: pbOrders}, nil
|
return &pb.ListOrdersResponse{Orders: pbOrders}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (as *acmeServer) getOrCreateHandler(mountName string) (*internacme.Handler, error) {
|
func (as *acmeServer) getOrCreateHandler(mountName string) (*internacme.Handler, error) {
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ func (es *engineServer) ListMounts(_ context.Context, _ *pb.ListMountsRequest) (
|
|||||||
return &pb.ListMountsResponse{Mounts: pbMounts}, nil
|
return &pb.ListMountsResponse{Mounts: pbMounts}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (es *engineServer) Request(ctx context.Context, req *pb.EngineRequest) (*pb.EngineResponse, error) {
|
func (es *engineServer) Execute(ctx context.Context, req *pb.ExecuteRequest) (*pb.ExecuteResponse, error) {
|
||||||
if req.Mount == "" || req.Operation == "" {
|
if req.Mount == "" || req.Operation == "" {
|
||||||
return nil, status.Error(codes.InvalidArgument, "mount and operation are required")
|
return nil, status.Error(codes.InvalidArgument, "mount and operation are required")
|
||||||
}
|
}
|
||||||
@@ -108,5 +108,5 @@ func (es *engineServer) Request(ctx context.Context, req *pb.EngineRequest) (*pb
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, status.Error(codes.Internal, "failed to encode response")
|
return nil, status.Error(codes.Internal, "failed to encode response")
|
||||||
}
|
}
|
||||||
return &pb.EngineResponse{Data: pbData}, nil
|
return &pb.ExecuteResponse{Data: pbData}, nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ type policyServer struct {
|
|||||||
s *GRPCServer
|
s *GRPCServer
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ps *policyServer) CreatePolicy(ctx context.Context, req *pb.CreatePolicyRequest) (*pb.PolicyRule, error) {
|
func (ps *policyServer) CreatePolicy(ctx context.Context, req *pb.CreatePolicyRequest) (*pb.CreatePolicyResponse, error) {
|
||||||
if req.Rule == nil || req.Rule.Id == "" {
|
if req.Rule == nil || req.Rule.Id == "" {
|
||||||
return nil, status.Error(codes.InvalidArgument, "rule.id is required")
|
return nil, status.Error(codes.InvalidArgument, "rule.id is required")
|
||||||
}
|
}
|
||||||
@@ -24,7 +24,7 @@ func (ps *policyServer) CreatePolicy(ctx context.Context, req *pb.CreatePolicyRe
|
|||||||
ps.s.logger.Error("grpc: create policy", "error", err)
|
ps.s.logger.Error("grpc: create policy", "error", err)
|
||||||
return nil, status.Error(codes.Internal, "internal error")
|
return nil, status.Error(codes.Internal, "internal error")
|
||||||
}
|
}
|
||||||
return ruleToPB(rule), nil
|
return &pb.CreatePolicyResponse{Rule: ruleToPB(rule)}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ps *policyServer) ListPolicies(ctx context.Context, _ *pb.ListPoliciesRequest) (*pb.ListPoliciesResponse, error) {
|
func (ps *policyServer) ListPolicies(ctx context.Context, _ *pb.ListPoliciesRequest) (*pb.ListPoliciesResponse, error) {
|
||||||
@@ -40,7 +40,7 @@ func (ps *policyServer) ListPolicies(ctx context.Context, _ *pb.ListPoliciesRequ
|
|||||||
return &pb.ListPoliciesResponse{Rules: pbRules}, nil
|
return &pb.ListPoliciesResponse{Rules: pbRules}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ps *policyServer) GetPolicy(ctx context.Context, req *pb.GetPolicyRequest) (*pb.PolicyRule, error) {
|
func (ps *policyServer) GetPolicy(ctx context.Context, req *pb.GetPolicyRequest) (*pb.GetPolicyResponse, error) {
|
||||||
if req.Id == "" {
|
if req.Id == "" {
|
||||||
return nil, status.Error(codes.InvalidArgument, "id is required")
|
return nil, status.Error(codes.InvalidArgument, "id is required")
|
||||||
}
|
}
|
||||||
@@ -48,7 +48,7 @@ func (ps *policyServer) GetPolicy(ctx context.Context, req *pb.GetPolicyRequest)
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, status.Error(codes.NotFound, "not found")
|
return nil, status.Error(codes.NotFound, "not found")
|
||||||
}
|
}
|
||||||
return ruleToPB(rule), nil
|
return &pb.GetPolicyResponse{Rule: ruleToPB(rule)}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ps *policyServer) DeletePolicy(ctx context.Context, req *pb.DeletePolicyRequest) (*pb.DeletePolicyResponse, error) {
|
func (ps *policyServer) DeletePolicy(ctx context.Context, req *pb.DeletePolicyRequest) (*pb.DeletePolicyResponse, error) {
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ func (c *VaultClient) Mount(ctx context.Context, token, name, engineType string,
|
|||||||
|
|
||||||
// EngineRequest sends a generic engine operation to the vault.
|
// EngineRequest sends a generic engine operation to the vault.
|
||||||
func (c *VaultClient) EngineRequest(ctx context.Context, token, mount, operation string, data map[string]interface{}) (map[string]interface{}, error) {
|
func (c *VaultClient) EngineRequest(ctx context.Context, token, mount, operation string, data map[string]interface{}) (map[string]interface{}, error) {
|
||||||
req := &pb.EngineRequest{
|
req := &pb.ExecuteRequest{
|
||||||
Mount: mount,
|
Mount: mount,
|
||||||
Operation: operation,
|
Operation: operation,
|
||||||
}
|
}
|
||||||
@@ -170,7 +170,7 @@ func (c *VaultClient) EngineRequest(ctx context.Context, token, mount, operation
|
|||||||
}
|
}
|
||||||
req.Data = s
|
req.Data = s
|
||||||
}
|
}
|
||||||
resp, err := c.engine.Request(withToken(ctx, token), req)
|
resp, err := c.engine.Execute(withToken(ctx, token), req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,13 +16,13 @@ service ACMEService {
|
|||||||
|
|
||||||
// SetConfig sets the ACME configuration for a CA mount.
|
// SetConfig sets the ACME configuration for a CA mount.
|
||||||
// Currently configures the default issuer used for ACME certificate issuance.
|
// Currently configures the default issuer used for ACME certificate issuance.
|
||||||
rpc SetConfig(SetACMEConfigRequest) returns (SetACMEConfigResponse);
|
rpc SetConfig(SetConfigRequest) returns (SetConfigResponse);
|
||||||
|
|
||||||
// ListAccounts returns all ACME accounts for a CA mount. Admin only.
|
// ListAccounts returns all ACME accounts for a CA mount. Admin only.
|
||||||
rpc ListAccounts(ListACMEAccountsRequest) returns (ListACMEAccountsResponse);
|
rpc ListAccounts(ListAccountsRequest) returns (ListAccountsResponse);
|
||||||
|
|
||||||
// ListOrders returns all ACME orders for a CA mount. Admin only.
|
// ListOrders returns all ACME orders for a CA mount. Admin only.
|
||||||
rpc ListOrders(ListACMEOrdersRequest) returns (ListACMEOrdersResponse);
|
rpc ListOrders(ListOrdersRequest) returns (ListOrdersResponse);
|
||||||
}
|
}
|
||||||
|
|
||||||
message CreateEABRequest {
|
message CreateEABRequest {
|
||||||
@@ -37,22 +37,22 @@ message CreateEABResponse {
|
|||||||
bytes hmac_key = 2;
|
bytes hmac_key = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message SetACMEConfigRequest {
|
message SetConfigRequest {
|
||||||
string mount = 1;
|
string mount = 1;
|
||||||
// default_issuer is the name of the CA issuer to use for ACME certificates.
|
// default_issuer is the name of the CA issuer to use for ACME certificates.
|
||||||
// The issuer must already exist on the CA mount.
|
// The issuer must already exist on the CA mount.
|
||||||
string default_issuer = 2;
|
string default_issuer = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message SetACMEConfigResponse {
|
message SetConfigResponse {
|
||||||
bool ok = 1;
|
bool ok = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message ListACMEAccountsRequest {
|
message ListAccountsRequest {
|
||||||
string mount = 1;
|
string mount = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message ListACMEAccountsResponse {
|
message ListAccountsResponse {
|
||||||
repeated ACMEAccount accounts = 1;
|
repeated ACMEAccount accounts = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -64,11 +64,11 @@ message ACMEAccount {
|
|||||||
string created_at = 5;
|
string created_at = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
message ListACMEOrdersRequest {
|
message ListOrdersRequest {
|
||||||
string mount = 1;
|
string mount = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message ListACMEOrdersResponse {
|
message ListOrdersResponse {
|
||||||
repeated ACMEOrder orders = 1;
|
repeated ACMEOrder orders = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ service EngineService {
|
|||||||
rpc Mount(MountRequest) returns (MountResponse);
|
rpc Mount(MountRequest) returns (MountResponse);
|
||||||
rpc Unmount(UnmountRequest) returns (UnmountResponse);
|
rpc Unmount(UnmountRequest) returns (UnmountResponse);
|
||||||
rpc ListMounts(ListMountsRequest) returns (ListMountsResponse);
|
rpc ListMounts(ListMountsRequest) returns (ListMountsResponse);
|
||||||
rpc Request(EngineRequest) returns (EngineResponse);
|
rpc Execute(ExecuteRequest) returns (ExecuteResponse);
|
||||||
}
|
}
|
||||||
|
|
||||||
message MountRequest {
|
message MountRequest {
|
||||||
@@ -36,13 +36,13 @@ message MountInfo {
|
|||||||
string mount_path = 3;
|
string mount_path = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
message EngineRequest {
|
message ExecuteRequest {
|
||||||
string mount = 1;
|
string mount = 1;
|
||||||
string operation = 2;
|
string operation = 2;
|
||||||
string path = 3;
|
string path = 3;
|
||||||
google.protobuf.Struct data = 4;
|
google.protobuf.Struct data = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message EngineResponse {
|
message ExecuteResponse {
|
||||||
google.protobuf.Struct data = 1;
|
google.protobuf.Struct data = 1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ package metacrypt.v1;
|
|||||||
option go_package = "git.wntrmute.dev/kyle/metacrypt/gen/metacrypt/v1;metacryptv1";
|
option go_package = "git.wntrmute.dev/kyle/metacrypt/gen/metacrypt/v1;metacryptv1";
|
||||||
|
|
||||||
service PolicyService {
|
service PolicyService {
|
||||||
rpc CreatePolicy(CreatePolicyRequest) returns (PolicyRule);
|
rpc CreatePolicy(CreatePolicyRequest) returns (CreatePolicyResponse);
|
||||||
rpc ListPolicies(ListPoliciesRequest) returns (ListPoliciesResponse);
|
rpc ListPolicies(ListPoliciesRequest) returns (ListPoliciesResponse);
|
||||||
rpc GetPolicy(GetPolicyRequest) returns (PolicyRule);
|
rpc GetPolicy(GetPolicyRequest) returns (GetPolicyResponse);
|
||||||
rpc DeletePolicy(DeletePolicyRequest) returns (DeletePolicyResponse);
|
rpc DeletePolicy(DeletePolicyRequest) returns (DeletePolicyResponse);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -25,6 +25,14 @@ message CreatePolicyRequest {
|
|||||||
PolicyRule rule = 1;
|
PolicyRule rule = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message CreatePolicyResponse {
|
||||||
|
PolicyRule rule = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
message GetPolicyResponse {
|
||||||
|
PolicyRule rule = 1;
|
||||||
|
}
|
||||||
|
|
||||||
message ListPoliciesRequest {}
|
message ListPoliciesRequest {}
|
||||||
message ListPoliciesResponse {
|
message ListPoliciesResponse {
|
||||||
repeated PolicyRule rules = 1;
|
repeated PolicyRule rules = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user