Documentation ¶
Overview ¶
Package backend implements the logic and data structures to handle external backend backends. Each external secret implementation will reside in its own package. A "Dummy" backend is provided as reference.
Backends must register their "type" using a function to instantiate themselves. An easy way of doing so is calling the secrets.Register function inside the backend package init() function:
func init() { backend.Register("dummy", NewBackend) } // NewBackend gives you an new Dummy Backend func NewBackend() secrets.Backend { return &Backend{} }
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Functions map[string]func() Backend
Functions is a map of labelled functions that return secret backend instances
var Instances map[string]Backend
Instances are instantiated secret backends
Functions ¶
func InitFromCtrl ¶ added in v0.1.0
InitFromCtrl initializes within a controller
func InitFromEnv ¶
InitFromEnv initializes a backend looking into Env for config data
func Instantiate ¶
Instantiate instantiates a Backend of type `backendType`