Documentation
¶
Overview ¶
Package session contains data structures and logic associated with the Hiera session
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateProvider ¶
func CreateProvider(e api.Entry) api.DataProvider
CreateProvider creates and returns the DataProvider configured by the given entry
func New ¶
func New(parent context.Context, topProvider hiera.LookupKey, oif interface{}, ldr dgo.Loader) api.Session
New creates a new Hiera Session which, among other things, holds on to a synchronized cache where all loaded things end up.
parent: typically obtained using context.Background() but can be any context.
topProvider: the topmost provider that defines the hierarchy
options: a map[string]any of configuration options
func Resolve ¶
func Resolve(ic api.Invocation, hc api.Config, moduleName string) api.ResolvedConfig
Resolve resolves the given Config into a ResolvedConfig. Resolving means creating the proper DataProviders for all Hierarchy entries
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.