controller

package
v2.0.0-...-04e5d85 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddConfigFlags

func AddConfigFlags(cmd *cobra.Command)

func New

func New() *cobra.Command

func ParseAndValidateConfig

func ParseAndValidateConfig(v *viper.Viper) (*config.Config, error)

ParseAndValidateConfig parses the config into a struct and validates the values.

func ReadConfigFromFileArgsAndEnv

func ReadConfigFromFileArgsAndEnv(cmd *cobra.Command, args []string) (*viper.Viper, error)

ReadConfigFromFileArgsAndEnv reads the config from the file, env and args in that order. an excaption is the path to the config file which is read from the args and env only.

Types

This section is empty.

Jump to

Keyboard shortcuts

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