server

package
v2.16.4 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package server implements an API to manage encryption keys.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	keyserviceproto.UnimplementedAPIServer
	// contains filtered or unexported fields
}

Server implements an encryption key management server. The server serves aTLS for cluster external requests and plain gRPC for cluster internal requests.

func New

func New(log *slog.Logger, conKMS kms.CloudKMS) *Server

New creates a new Server.

func (*Server) GetDataKey

GetDataKey returns a data key.

func (*Server) Run

func (s *Server) Run(port string) error

Run starts the gRPC server.

Jump to

Keyboard shortcuts

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