Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultEC2SDConfig = EC2Arguments{ Port: 80, RefreshInterval: 60 * time.Second, }
View Source
var DefaultLightsailSDConfig = LightsailArguments{ Port: 80, RefreshInterval: 60 * time.Second, }
DefaultLightsailSDConfig is the default Lightsail SD configuration.
Functions ¶
func NewLightsail ¶
New creates a new discovery.lightsail component.
Types ¶
type EC2Arguments ¶
type EC2Arguments struct { Endpoint string `river:"endpoint,attr,optional"` Region string `river:"region,attr,optional"` AccessKey string `river:"access_key,attr,optional"` SecretKey rivertypes.Secret `river:"secret_key,attr,optional"` Profile string `river:"profile,attr,optional"` RoleARN string `river:"role_arn,attr,optional"` RefreshInterval time.Duration `river:"refresh_interval,attr,optional"` Port int `river:"port,attr,optional"` Filters []*EC2Filter `river:"filter,block,optional"` }
EC2Arguments is the configuration for EC2 based service discovery.
func (EC2Arguments) Convert ¶
func (args EC2Arguments) Convert() *promaws.EC2SDConfig
func (*EC2Arguments) UnmarshalRiver ¶
func (args *EC2Arguments) UnmarshalRiver(f func(interface{}) error) error
UnmarshalRiver implements river.Unmarshaler, applying defaults and validating the provided config.
type LightsailArguments ¶
type LightsailArguments struct { Endpoint string `river:"endpoint,attr,optional"` Region string `river:"region,attr,optional"` AccessKey string `river:"access_key,attr,optional"` SecretKey rivertypes.Secret `river:"secret_key,attr,optional"` Profile string `river:"profile,attr,optional"` RoleARN string `river:"role_arn,attr,optional"` RefreshInterval time.Duration `river:"refresh_interval,attr,optional"` Port int `river:"port,attr,optional"` }
LightsailArguments is the configuration for AWS Lightsail based service discovery.
func (LightsailArguments) Convert ¶
func (args LightsailArguments) Convert() *promaws.LightsailSDConfig
func (*LightsailArguments) UnmarshalRiver ¶
func (args *LightsailArguments) UnmarshalRiver(f func(interface{}) error) error
Click to show internal directories.
Click to hide internal directories.