vultr

package
v0.140.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TypeStr is type of detector.
	TypeStr = "vultr"
)

Variables

This section is empty.

Functions

func NewDetector

NewDetector creates a new Vultr metadata detector.

func NewFactory

func NewFactory() component.Factory

Necessary to satisfy mdatagen tests

Types

type Config

type Config struct {
	ResourceAttributes    metadata.ResourceAttributesConfig `mapstructure:"resource_attributes"`
	FailOnMissingMetadata bool                              `mapstructure:"fail_on_missing_metadata"`
}

func CreateDefaultConfig

func CreateDefaultConfig() Config

type Detector

type Detector struct {
	// contains filtered or unexported fields
}

Detector is a Vultr metadata detector.

func (*Detector) Detect

func (d *Detector) Detect(ctx context.Context) (pcommon.Resource, string, error)

Detect queries the Vultr metadata service and returns a populated resource.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL