prometheus_oauth_client

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(url string, fetchToken TokenFetcherFunc, insecure bool) (*prometheus_client.PrometheusClient, error)

func NewTokenFetcher

func NewTokenFetcher(config OAuthClientConfig) *oauthTokenFetcher

Types

type OAuthClientConfig

type OAuthClientConfig struct {
	Insecure          bool
	OAuthServer       string
	OAuthClientID     string
	OAuthClientSecret string
	Timeout           time.Duration
	Clock             func() time.Time
}

type TokenFetcherFunc

type TokenFetcherFunc func() (string, error)

Jump to

Keyboard shortcuts

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