Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultArguments = Arguments{ APIURL: "https://api.scaleway.com", Zone: scw.ZoneFrPar1.String(), RefreshInterval: 60 * time.Second, Port: 80, FollowRedirects: true, EnableHTTP2: true, }
Functions ¶
Types ¶
type Arguments ¶
type Arguments struct { Project string `alloy:"project_id,attr"` Role Role `alloy:"role,attr"` APIURL string `alloy:"api_url,attr,optional"` Zone string `alloy:"zone,attr,optional"` AccessKey string `alloy:"access_key,attr"` SecretKey alloytypes.Secret `alloy:"secret_key,attr,optional"` SecretKeyFile string `alloy:"secret_key_file,attr,optional"` NameFilter string `alloy:"name_filter,attr,optional"` TagsFilter []string `alloy:"tags_filter,attr,optional"` RefreshInterval time.Duration `alloy:"refresh_interval,attr,optional"` Port int `alloy:"port,attr,optional"` ProxyConfig *config.ProxyConfig `alloy:",squash"` TLSConfig config.TLSConfig `alloy:"tls_config,block,optional"` FollowRedirects bool `alloy:"follow_redirects,attr,optional"` EnableHTTP2 bool `alloy:"enable_http2,attr,optional"` }
func (*Arguments) Convert ¶
func (args *Arguments) Convert() *prom_discovery.SDConfig
func (*Arguments) SetToDefault ¶
func (args *Arguments) SetToDefault()
SetToDefault implements syntax.Defaulter.
type Role ¶
type Role string
Role is the role of the target within the Scaleway Ecosystem.
func (Role) MarshalText ¶
MarshalText implements encoding.TextMarshaler, returning the raw bytes of the Role.
func (*Role) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler. UnmarshalText returns an error if the text is not recognized as a valid Role.
Click to show internal directories.
Click to hide internal directories.