common

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// LogLevel used by the exporter's logger (none, debug, info, warn)
	LogLevel string
}

Options is the list of options/flag available to the application, plus the clients needed by the application to function.

func New

func New() *Options

New creates a new instance of the application's options

func (*Options) Complete

func (o *Options) Complete() error

Complete initialises the components needed for the application to function given the options

func (*Options) Prepare

func (o *Options) Prepare(cmd *cobra.Command) *Options

Prepare assigns the applications flag/options to the cobra cli

Jump to

Keyboard shortcuts

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