cmd

package
v0.0.0-...-547d54e Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetDBClient

func GetDBClient(configFile string) (*options.ClientOptions, string)

func LoadConfig

func LoadConfig(filename string, expandENV bool, cfg *server) error

LoadConfig read YAML-formatted config from filename into cfg.

func RunMongoOPA

func RunMongoOPA()

Types

type Config

type Config struct {
	Address  string `yaml:"address,omitempty"`
	Database string `yaml:"database,omitempty"`
	Username string `yaml:"username,omitempty"`
	Password string `yaml:"password,omitempty"`
}

Jump to

Keyboard shortcuts

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