Documentation
¶
Overview ¶
Package auto provides auto-detection capabilities for the CloudZero Scout.
The auto package orchestrates multiple cloud provider Scouts to provide automatic detection.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrNoCloudProviderDetected = errors.New("no cloud provider detected")
ErrNoCloudProviderDetected is returned when no cloud provider is detected
Functions ¶
This section is empty.
Types ¶
type Scout ¶
type Scout struct {
// contains filtered or unexported fields
}
Scout implements the types.Scout interface with auto-detection capabilities.
func NewScout ¶
NewScout creates a new auto-detection Scout that tries the provided scouts.
Each scout is tried concurrently, but the first successful detection cancels the others to avoid unnecessary work.
func (*Scout) Detect ¶
Detect iterates through all provided scouts concurrently and returns the first cloud provider detected. Returns CloudProviderUnknown if no cloud provider is detected by any scout.
Network errors during detection are treated as "not detected" and do not prevent other scouts from running.
func (*Scout) EnvironmentInfo ¶
EnvironmentInfo attempts to retrieve environment information.