headers

package
v0.33.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package headers provides an otelcol.auth.headers component.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	Headers []Header `river:"header,block,optional"`
}

Arguments configures the otelcol.auth.headers component.

func (Arguments) Convert

func (args Arguments) Convert() (otelconfig.Extension, error)

Convert implements auth.Arguments.

func (Arguments) Exporters

Exporters implements auth.Arguments.

func (Arguments) Extensions

func (args Arguments) Extensions() map[otelconfig.ComponentID]otelcomponent.Extension

Extensions implements auth.Arguments.

type Header struct {
	Key         string                     `river:"key,attr"`
	Value       *rivertypes.OptionalSecret `river:"value,attr,optional"`
	FromContext *string                    `river:"from_context,attr,optional"`
}

Header is an individual Header to send along with requests.

func (*Header) UnmarshalRiver

func (h *Header) UnmarshalRiver(f func(interface{}) error) error

UnmarshalRiver implements river.Unmarshaler.

Jump to

Keyboard shortcuts

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