proto

package
v0.0.0-...-19af8a7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2021 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Admin_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "citadel.Admin",
	HandlerType: (*AdminServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "RegisterKey",
			Handler:    _Admin_RegisterKey_Handler,
		},
		{
			MethodName: "DeregisterKey",
			Handler:    _Admin_DeregisterKey_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/admin.proto",
}

Admin_ServiceDesc is the grpc.ServiceDesc for Admin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Encryption_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "citadel.Encryption",
	HandlerType: (*EncryptionServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Encrypt",
			Handler:    _Encryption_Encrypt_Handler,
		},
		{
			MethodName: "Decrypt",
			Handler:    _Encryption_Decrypt_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/encryption.proto",
}

Encryption_ServiceDesc is the grpc.ServiceDesc for Encryption service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_proto_admin_proto protoreflect.FileDescriptor
View Source
var File_proto_encryption_proto protoreflect.FileDescriptor

Functions

func RegisterAdminServer

func RegisterAdminServer(s grpc.ServiceRegistrar, srv AdminServer)

func RegisterEncryptionServer

func RegisterEncryptionServer(s grpc.ServiceRegistrar, srv EncryptionServer)

Types

type AdminClient

type AdminClient interface {
	RegisterKey(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error)
	DeregisterKey(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error)
}

AdminClient is the client API for Admin service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewAdminClient

func NewAdminClient(cc grpc.ClientConnInterface) AdminClient

type AdminServer

type AdminServer interface {
	RegisterKey(context.Context, *RegisterRequest) (*RegisterResponse, error)
	DeregisterKey(context.Context, *RegisterRequest) (*RegisterResponse, error)
	// contains filtered or unexported methods
}

AdminServer is the server API for Admin service. All implementations must embed UnimplementedAdminServer for forward compatibility

type DecryptionRequest

type DecryptionRequest struct {
	KeyId      string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
	Ciphertext string `protobuf:"bytes,2,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"`
	// contains filtered or unexported fields
}

func (*DecryptionRequest) Descriptor deprecated

func (*DecryptionRequest) Descriptor() ([]byte, []int)

Deprecated: Use DecryptionRequest.ProtoReflect.Descriptor instead.

func (*DecryptionRequest) GetCiphertext

func (x *DecryptionRequest) GetCiphertext() string

func (*DecryptionRequest) GetKeyId

func (x *DecryptionRequest) GetKeyId() string

func (*DecryptionRequest) ProtoMessage

func (*DecryptionRequest) ProtoMessage()

func (*DecryptionRequest) ProtoReflect

func (x *DecryptionRequest) ProtoReflect() protoreflect.Message

func (*DecryptionRequest) Reset

func (x *DecryptionRequest) Reset()

func (*DecryptionRequest) String

func (x *DecryptionRequest) String() string

type DecryptionResponse

type DecryptionResponse struct {
	KeyId     string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
	Plaintext string `protobuf:"bytes,2,opt,name=plaintext,proto3" json:"plaintext,omitempty"`
	// contains filtered or unexported fields
}

func (*DecryptionResponse) Descriptor deprecated

func (*DecryptionResponse) Descriptor() ([]byte, []int)

Deprecated: Use DecryptionResponse.ProtoReflect.Descriptor instead.

func (*DecryptionResponse) GetKeyId

func (x *DecryptionResponse) GetKeyId() string

func (*DecryptionResponse) GetPlaintext

func (x *DecryptionResponse) GetPlaintext() string

func (*DecryptionResponse) ProtoMessage

func (*DecryptionResponse) ProtoMessage()

func (*DecryptionResponse) ProtoReflect

func (x *DecryptionResponse) ProtoReflect() protoreflect.Message

func (*DecryptionResponse) Reset

func (x *DecryptionResponse) Reset()

func (*DecryptionResponse) String

func (x *DecryptionResponse) String() string

type DeregisterRequest

type DeregisterRequest struct {
	KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeregisterRequest) Descriptor deprecated

func (*DeregisterRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeregisterRequest.ProtoReflect.Descriptor instead.

func (*DeregisterRequest) GetKeyId

func (x *DeregisterRequest) GetKeyId() string

func (*DeregisterRequest) ProtoMessage

func (*DeregisterRequest) ProtoMessage()

func (*DeregisterRequest) ProtoReflect

func (x *DeregisterRequest) ProtoReflect() protoreflect.Message

func (*DeregisterRequest) Reset

func (x *DeregisterRequest) Reset()

func (*DeregisterRequest) String

func (x *DeregisterRequest) String() string

type DeregisterResponse

type DeregisterResponse struct {
	KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeregisterResponse) Descriptor deprecated

func (*DeregisterResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeregisterResponse.ProtoReflect.Descriptor instead.

func (*DeregisterResponse) GetKeyId

func (x *DeregisterResponse) GetKeyId() string

func (*DeregisterResponse) ProtoMessage

func (*DeregisterResponse) ProtoMessage()

func (*DeregisterResponse) ProtoReflect

func (x *DeregisterResponse) ProtoReflect() protoreflect.Message

func (*DeregisterResponse) Reset

func (x *DeregisterResponse) Reset()

func (*DeregisterResponse) String

func (x *DeregisterResponse) String() string

type EncryptionClient

type EncryptionClient interface {
	Encrypt(ctx context.Context, in *EncryptionRequest, opts ...grpc.CallOption) (*EncryptionResponse, error)
	Decrypt(ctx context.Context, in *DecryptionRequest, opts ...grpc.CallOption) (*DecryptionResponse, error)
}

EncryptionClient is the client API for Encryption service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewEncryptionClient

func NewEncryptionClient(cc grpc.ClientConnInterface) EncryptionClient

type EncryptionRequest

type EncryptionRequest struct {
	KeyId     string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
	Plaintext string `protobuf:"bytes,2,opt,name=plaintext,proto3" json:"plaintext,omitempty"`
	// contains filtered or unexported fields
}

func (*EncryptionRequest) Descriptor deprecated

func (*EncryptionRequest) Descriptor() ([]byte, []int)

Deprecated: Use EncryptionRequest.ProtoReflect.Descriptor instead.

func (*EncryptionRequest) GetKeyId

func (x *EncryptionRequest) GetKeyId() string

func (*EncryptionRequest) GetPlaintext

func (x *EncryptionRequest) GetPlaintext() string

func (*EncryptionRequest) ProtoMessage

func (*EncryptionRequest) ProtoMessage()

func (*EncryptionRequest) ProtoReflect

func (x *EncryptionRequest) ProtoReflect() protoreflect.Message

func (*EncryptionRequest) Reset

func (x *EncryptionRequest) Reset()

func (*EncryptionRequest) String

func (x *EncryptionRequest) String() string

type EncryptionResponse

type EncryptionResponse struct {
	KeyId      string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
	Ciphertext string `protobuf:"bytes,2,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"`
	// contains filtered or unexported fields
}

func (*EncryptionResponse) Descriptor deprecated

func (*EncryptionResponse) Descriptor() ([]byte, []int)

Deprecated: Use EncryptionResponse.ProtoReflect.Descriptor instead.

func (*EncryptionResponse) GetCiphertext

func (x *EncryptionResponse) GetCiphertext() string

func (*EncryptionResponse) GetKeyId

func (x *EncryptionResponse) GetKeyId() string

func (*EncryptionResponse) ProtoMessage

func (*EncryptionResponse) ProtoMessage()

func (*EncryptionResponse) ProtoReflect

func (x *EncryptionResponse) ProtoReflect() protoreflect.Message

func (*EncryptionResponse) Reset

func (x *EncryptionResponse) Reset()

func (*EncryptionResponse) String

func (x *EncryptionResponse) String() string

type EncryptionServer

type EncryptionServer interface {
	Encrypt(context.Context, *EncryptionRequest) (*EncryptionResponse, error)
	Decrypt(context.Context, *DecryptionRequest) (*DecryptionResponse, error)
	// contains filtered or unexported methods
}

EncryptionServer is the server API for Encryption service. All implementations must embed UnimplementedEncryptionServer for forward compatibility

type RegisterRequest

type RegisterRequest struct {
	KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterRequest) Descriptor deprecated

func (*RegisterRequest) Descriptor() ([]byte, []int)

Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.

func (*RegisterRequest) GetKeyId

func (x *RegisterRequest) GetKeyId() string

func (*RegisterRequest) ProtoMessage

func (*RegisterRequest) ProtoMessage()

func (*RegisterRequest) ProtoReflect

func (x *RegisterRequest) ProtoReflect() protoreflect.Message

func (*RegisterRequest) Reset

func (x *RegisterRequest) Reset()

func (*RegisterRequest) String

func (x *RegisterRequest) String() string

type RegisterResponse

type RegisterResponse struct {
	KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterResponse) Descriptor deprecated

func (*RegisterResponse) Descriptor() ([]byte, []int)

Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.

func (*RegisterResponse) GetKeyId

func (x *RegisterResponse) GetKeyId() string

func (*RegisterResponse) ProtoMessage

func (*RegisterResponse) ProtoMessage()

func (*RegisterResponse) ProtoReflect

func (x *RegisterResponse) ProtoReflect() protoreflect.Message

func (*RegisterResponse) Reset

func (x *RegisterResponse) Reset()

func (*RegisterResponse) String

func (x *RegisterResponse) String() string

type UnimplementedAdminServer

type UnimplementedAdminServer struct {
}

UnimplementedAdminServer must be embedded to have forward compatible implementations.

func (UnimplementedAdminServer) DeregisterKey

func (UnimplementedAdminServer) RegisterKey

type UnimplementedEncryptionServer

type UnimplementedEncryptionServer struct {
}

UnimplementedEncryptionServer must be embedded to have forward compatible implementations.

func (UnimplementedEncryptionServer) Decrypt

func (UnimplementedEncryptionServer) Encrypt

type UnsafeAdminServer

type UnsafeAdminServer interface {
	// contains filtered or unexported methods
}

UnsafeAdminServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AdminServer will result in compilation errors.

type UnsafeEncryptionServer

type UnsafeEncryptionServer interface {
	// contains filtered or unexported methods
}

UnsafeEncryptionServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EncryptionServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL