azure

package
v0.37.4 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultArguments = Arguments{
	Environment:     azure.PublicCloud.Name,
	Port:            80,
	RefreshInterval: 5 * time.Minute,
}

Functions

func New

func New(opts component.Options, args Arguments) (*discovery.Component, error)

New returns a new instance of a discovery.azure component.

Types

type Arguments

type Arguments struct {
	Environment     string           `river:"environment,attr,optional"`
	Port            int              `river:"port,attr,optional"`
	SubscriptionID  string           `river:"subscription_id,attr,optional"`
	OAuth           *OAuth           `river:"oauth,block,optional"`
	ManagedIdentity *ManagedIdentity `river:"managed_identity,block,optional"`
	RefreshInterval time.Duration    `river:"refresh_interval,attr,optional"`
	ResourceGroup   string           `river:"resource_group,attr,optional"`

	ProxyURL        config.URL       `river:"proxy_url,attr,optional"`
	FollowRedirects bool             `river:"follow_redirects,attr,optional"`
	EnableHTTP2     bool             `river:"enable_http2,attr,optional"`
	TLSConfig       config.TLSConfig `river:"tls_config,block,optional"`
}

func (*Arguments) Convert

func (a *Arguments) Convert() *prom_discovery.SDConfig

func (*Arguments) SetToDefault added in v0.35.0

func (a *Arguments) SetToDefault()

SetToDefault implements river.Defaulter.

func (*Arguments) Validate

func (a *Arguments) Validate() error

Validate implements river.Validator.

type ManagedIdentity

type ManagedIdentity struct {
	ClientID string `river:"client_id,attr"`
}

type OAuth

type OAuth struct {
	ClientID     string            `river:"client_id,attr"`
	TenantID     string            `river:"tenant_id,attr"`
	ClientSecret rivertypes.Secret `river:"client_secret,attr"`
}

Jump to

Keyboard shortcuts

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