app

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Config   *config.Config
	Registry *controllers.Registry
}

App is a struct to hold values needed across all commands. Intent is to simplify initialization across commands.

func NewApp added in v0.0.7

func NewApp() *App

func (*App) ApplyPaths added in v0.0.7

func (a *App) ApplyPaths(ctx context.Context, paths []string, period time.Duration, force bool) error

ApplyPaths applies the resources in the specified paths. Paths can be files or directories.

func (*App) LoadConfig added in v0.0.7

func (a *App) LoadConfig(cmd *cobra.Command) error

LoadConfig loads the config. It takes an optional command. The command allows values to be overwritten from the CLI.

func (*App) SetupLogging added in v0.0.7

func (a *App) SetupLogging() error

func (*App) SetupRegistry added in v0.0.7

func (a *App) SetupRegistry() error

SetupRegistry sets up the registry with a list of registered controllers

Jump to

Keyboard shortcuts

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