...

Package config

import "github.com/prometheus/alertmanager/cli/config"
Overview
Index

Overview ▾

func LoadHTTPConfigFile

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

LoadHTTPConfigFile returns HTTPClientConfig for the given http_config file

type Resolver

Resolver represents a configuration file resolver for kingpin.

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

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).