prometheus

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RemoteHostURLConfigFeature = "remote_host"
	ApiTokenConfigFeature      = "api_token"
	CustomHeadersConfigFeature = "headers"
)

Variables

This section is empty.

Functions

func Register

func Register() bool

Types

type AuthType

type AuthType int
const (
	BasicAuth AuthType = iota
	TokenAuth
)

type Backend

type Backend struct {
	RemoteHost string `json:"remote_host"`
}

func (*Backend) ConfigToFormat

func (p *Backend) ConfigToFormat(format string, metadata types.Metadata) (string, error)

func (*Backend) CreateFeatureConfig

func (p *Backend) CreateFeatureConfig() []backend.ConfigFeature

func (*Backend) Metadata

func (p *Backend) Metadata() interface{}

func (*Backend) ParseConfig

func (p *Backend) ParseConfig(format string, config string) (configReturn types.Metadata, err error)

func (*Backend) ValidateConfiguration

func (p *Backend) ValidateConfiguration(config types.Metadata) error

Jump to

Keyboard shortcuts

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