Documentation ¶
Index ¶
- Variables
- func CABundle(vaultConfig *config.VaultConfig) (*x509.CertPool, error)
- func NewSecretClient(config config.VaultConfig) (*api.Client, error)
- func SlimRPCClient(serverAddress string, logger log.Logger) *grpc.ClientConn
- func StandardHTTPServer(cfg *config.Config) (*http.Server, error)
- func StandardRPCClient(serverAddress string, cfg config.Config, logger log.Logger) *grpc.ClientConn
- func StandardRPCServer(cfg *config.Config) (*grpc.Server, error)
- func TestRPCServer() (*grpc.Server, error)
- type HTTPServerFunc
- type RPCServerFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMissingVaultConfig = errors.New("missing vault config")
View Source
var ErrNilVaultConfig = errors.New("nil vault config")
View Source
var ErrNoHTTPConfig = errors.New("unable to create HTTP server with empty config")
View Source
var ErrNoHTTPListenAddress = errors.New("unable to create HTTP server with empty ListenAddress")
Functions ¶
func NewSecretClient ¶
func NewSecretClient(config config.VaultConfig) (*api.Client, error)
NewSecretClient receives a configuration and returns a client for Vault.
func SlimRPCClient ¶
func SlimRPCClient(serverAddress string, logger log.Logger) *grpc.ClientConn
func StandardHTTPServer ¶
StandardHTTPServer returns a normal HTTP server.
func StandardRPCClient ¶
StandardRPCClient implements enough to get standard gRPC client connection.
func StandardRPCServer ¶
StandardRPCServer returns a normal gRPC server.
func TestRPCServer ¶
Types ¶
type HTTPServerFunc ¶
HTTPServerFunc is used to create a new HTTP server using a received config.
Click to show internal directories.
Click to hide internal directories.