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: 20 Imported by: 0

Documentation

Overview

Package server provides functionality so that other uses of sansshell can provide their own main.go without having to cargo-cult everything across for common use cases. i.e. simply adding your own authz hooks but using the standard modules. Or adding additional modules that are locally defined.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, logger logr.Logger, policy string, hooks ...rpcauth.RPCAuthzHook)

Run takes the given context, logger, policy and any authz hooks and starts up a sansshell proxy server using the flags above to provide credentials. An address hook (based on the remote host) with always be added. As this is intended to be called from main() it doesn't return errors and will instead exit on any errors.

Types

This section is empty.

Jump to

Keyboard shortcuts

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