app

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: May 17, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package app provides the application dependency container and configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Templates map[string]template.Template
	Playbooks map[string]template.Playbook
	Providers map[string]provider.Provider
	Config    *Config
}

App is the dependency container for the application.

func NewApp

func NewApp(
	templates map[string]template.Template,
	playbooks map[string]template.Playbook,
	providers map[string]provider.Provider,
	config *Config,
) *App

NewApp creates a new App instance with the given dependencies.

func (*App) GetProvider

func (a *App) GetProvider(name string) (provider.Provider, bool)

GetProvider retrieves a provider by name from the app's provider map.

type Config

type Config struct {
	TemplatesPath string
	StoragePath   string
	LogLevel      string
}

Config holds application configuration.

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig returns the default application configuration.

Jump to

Keyboard shortcuts

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