config

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: Apache-2.0 Imports: 6 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadHTTPConfigFile added in v0.24.0

func LoadHTTPConfigFile(filename string) (*promconfig.HTTPClientConfig, error)

LoadHTTPConfigFile returns HTTPClientConfig for the given http_config file

Types

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

Resolver represents a configuration file resolver for kingpin.

func NewResolver

func NewResolver(files []string, legacyFlags map[string]string) (*Resolver, error)

NewResolver returns a Resolver structure.

func (*Resolver) Bind

func (c *Resolver) Bind(app *kingpin.Application, args []string) error

Bind sets active flags with their default values from the configuration file(s).

Jump to

Keyboard shortcuts

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