Documentation ¶
Overview ¶
Package server provides helpers for building and running a sansshell server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildServer ¶
func BuildServer(c credentials.TransportCredentials, policy string, address net.Addr, logger logr.Logger) (*grpc.Server, error)
BuildServer creates a gRPC server, attaches the OPA policy interceptor, registers all of the imported SansShell modules. Separating this from Serve primarily facilitates testing.
func Serve ¶
func Serve(hostport string, c credentials.TransportCredentials, policy string, logger logr.Logger) error
Serve wraps up BuildServer in a succinct API for callers
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.