Documentation ¶
Index ¶
Constants ¶
View Source
const (
// TypeStr is type of detector.
TypeStr = "azure"
)
Variables ¶
This section is empty.
Functions ¶
func NewDetector ¶
func NewDetector(p component.ProcessorCreateSettings, cfg internal.DetectorConfig) (internal.Detector, error)
NewDetector creates a new Azure metadata detector
Types ¶
type ComputeMetadata ¶ added in v0.25.0
type ComputeMetadata struct { Location string `json:"location"` Name string `json:"name"` VMID string `json:"vmID"` VMSize string `json:"vmSize"` SubscriptionID string `json:"subscriptionID"` ResourceGroupName string `json:"resourceGroupName"` VMScaleSetName string `json:"vmScaleSetName"` }
ComputeMetadata is the Azure IMDS compute metadata response format
type Detector ¶
type Detector struct {
// contains filtered or unexported fields
}
Detector is an Azure metadata detector
type MockProvider ¶ added in v0.25.0
func (*MockProvider) Metadata ¶ added in v0.25.0
func (m *MockProvider) Metadata(_ context.Context) (*ComputeMetadata, error)
type Provider ¶ added in v0.25.0
type Provider interface {
Metadata(context.Context) (*ComputeMetadata, error)
}
Provider gets metadata from the Azure IMDS
func NewProvider ¶ added in v0.25.0
func NewProvider() Provider
NewProvider creates a new metadata provider
Click to show internal directories.
Click to hide internal directories.