auth

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIKeyProvider

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

func NewAPIKeyProvider

func NewAPIKeyProvider(apiKey string) *APIKeyProvider

NewAPIKeyProvider creates a new APIKeyProvider

func (*APIKeyProvider) GetHeader

func (p *APIKeyProvider) GetHeader(ctx context.Context) (string, string, error)

GetHeader returns the API key header

type Provider

type Provider interface {
	GetHeader(ctx context.Context) (key, value string, err error)
}

Provider is the interface for different authentication mechanisms

Jump to

Keyboard shortcuts

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