sigv4

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	Region     string     `alloy:"region,attr,optional"`
	Service    string     `alloy:"service,attr,optional"`
	AssumeRole AssumeRole `alloy:"assume_role,block,optional"`
	// DebugMetrics configures component internal metrics. Optional.
	DebugMetrics otelcolCfg.DebugMetricsArguments `alloy:"debug_metrics,block,optional"`
}

Arguments configures the otelcol.auth.sigv4 component.

func (Arguments) Convert

func (args Arguments) Convert() (otelcomponent.Config, error)

Convert implements auth.Arguments.

func (Arguments) DebugMetricsConfig added in v1.2.0

func (args Arguments) DebugMetricsConfig() otelcolCfg.DebugMetricsArguments

DebugMetricsConfig implements auth.Arguments.

func (Arguments) Exporters

func (args Arguments) Exporters() map[pipeline.Signal]map[otelcomponent.ID]otelcomponent.Component

Exporters implements auth.Arguments.

func (Arguments) Extensions

func (args Arguments) Extensions() map[otelcomponent.ID]otelextension.Extension

Extensions implements auth.Arguments.

func (*Arguments) SetToDefault added in v1.2.0

func (args *Arguments) SetToDefault()

SetToDefault implements syntax.Defaulter.

func (Arguments) Validate

func (args Arguments) Validate() error

Validate implements syntax.Validator.

type AssumeRole

type AssumeRole struct {
	ARN         string `alloy:"arn,attr,optional"`
	SessionName string `alloy:"session_name,attr,optional"`
	STSRegion   string `alloy:"sts_region,attr,optional"`
}

AssumeRole replicates sigv4authextension.Config.AssumeRole

func (*AssumeRole) Convert

func (args *AssumeRole) Convert() *sigv4authextension.AssumeRole

Convert converts args into the upstream type.

Jump to

Keyboard shortcuts

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