config

package
Version: v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ListenAddress string
	MetricsPath   string
	ArtiScrapeURI string
	Credentials   *Credentials
	ArtiSSLVerify bool
	ArtiTimeout   time.Duration
	Logger        log.Logger
}

Config represents all configuration options for running the Exporter.

func NewConfig

func NewConfig() (*Config, error)

NewConfig Creates new Artifactory exporter Config

type Credentials added in v0.4.0

type Credentials struct {
	AuthMethod  string
	Username    string `required:"false" envconfig:"ARTI_USERNAME"`
	Password    string `required:"false" envconfig:"ARTI_PASSWORD"`
	AccessToken string `required:"false" envconfig:"ARTI_ACCESS_TOKEN"`
}

Credentials represents Username and Password or API Key for Artifactory Authentication

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL