internal

package
v1.7.11 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ZeroizeCredentials

func ZeroizeCredentials(backendCredentials map[string][]byte)

ZeroizeCredentials zeroizes the values of the fetched credentials. We don't want to rely on garbage collection for this (it might be slow and/or only free them) so we manually clear

Types

type CredentialsRetriever

type CredentialsRetriever func() (map[string][]byte, error)

CredentialsRetriever is a function signature for retrieval of credentials. The purpose of a CredentialsRetriever is to deliver credentials from within ProxyService instances and so it takes no arguments.

type Service

type Service interface {
	Start() error
	Stop() error
}

Service is a generic service that can be started and stopped. We're currently using it to represent both the profile service and proxy services. TODO: The wisdom of an abstraction for a service that can be stopped/started

is something we want to revisit.  Standard functional command objects might
a better alternative, among other things.  We should revisit where we're
putting interfaces from a first principles/best practices perspective,
and create some policy around that.  For now, though, these aren't big
problems.

Directories

Path Synopsis
configurationmanagers
v1
env
Package proxyservice takes a Secretless configuration and available plugins and constructs the requires ProxyServices that Secretless will run.
Package proxyservice takes a Secretless configuration and available plugins and constructs the requires ProxyServices that Secretless will run.
Package signal is a wrapper over the os/signal package that allows multiple handlers to respond to an exit signal, and blocks until that exit signal is received.
Package signal is a wrapper over the os/signal package that allows multiple handlers to respond to an exit signal, and blocks until that exit signal is received.
summon

Jump to

Keyboard shortcuts

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