session

package
v0.6.8 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 38 Imported by: 0

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.

Jump to

Keyboard shortcuts

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