server

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

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.

Jump to

Keyboard shortcuts

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