config

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 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
	OptionalMetrics OptionalMetrics
	Logger          *slog.Logger
}

Config represents all configuration options for running the Exporter.

func NewConfig

func NewConfig() (*Config, error)

NewConfig Creates Config for Artifactory exporter

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

type OptionalMetrics added in v1.10.0

type OptionalMetrics struct {
	Artifacts         bool
	ReplicationStatus bool
	FederationStatus  bool
	OpenMetrics       bool
}

Jump to

Keyboard shortcuts

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