oauth2

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: Apache-2.0 Imports: 13 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 {
	ClientID         string                     `alloy:"client_id,attr,optional"`
	ClientIDFile     string                     `alloy:"client_id_file,attr,optional"`
	ClientSecret     alloytypes.Secret          `alloy:"client_secret,attr,optional"`
	ClientSecretFile string                     `alloy:"client_secret_file,attr,optional"`
	TokenURL         string                     `alloy:"token_url,attr"`
	EndpointParams   url.Values                 `alloy:"endpoint_params,attr,optional"`
	Scopes           []string                   `alloy:"scopes,attr,optional"`
	TLSSetting       otelcol.TLSClientArguments `alloy:"tls,block,optional"`
	Timeout          time.Duration              `alloy:"timeout,attr,optional"`
	// DebugMetrics configures component internal metrics. Optional.
	DebugMetrics otelcolCfg.DebugMetricsArguments `alloy:"debug_metrics,block,optional"`
}

Arguments configures the otelcol.auth.oauth2 component.

func (Arguments) AuthFeatures added in v1.6.0

func (args Arguments) AuthFeatures() auth.AuthFeature

AuthFeatures implements auth.Arguments.

func (Arguments) ConvertClient added in v1.6.0

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

ConvertClient implements auth.Arguments.

func (Arguments) ConvertServer added in v1.6.0

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

ConvertServer returns nil since the ouath2 client extension does not support server auth.

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.

Jump to

Keyboard shortcuts

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