Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultArguments = Arguments{ Environment: azure.PublicCloud.Name, Port: 80, RefreshInterval: 5 * time.Minute, }
Functions ¶
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.
type ManagedIdentity ¶
type ManagedIdentity struct {
ClientID string `river:"client_id,attr"`
}
Click to show internal directories.
Click to hide internal directories.