httpauthprovider

package
v0.3.11-rc2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthProvider

type AuthProvider struct {
	Type   AuthProviderType
	Secret string
}

func NewAuthProvider

func NewAuthProvider(providertype AuthProviderType, secret string) *AuthProvider

func (*AuthProvider) AddAuthHeaders

func (a *AuthProvider) AddAuthHeaders(req *http.Request)

type AuthProviderType

type AuthProviderType string
const (
	AuthPoviderTypeAPIKey  AuthProviderType = "APIKEY"
	AuthProviderTypeBearer AuthProviderType = "BEARER"
)

type NoAuthprovider

type NoAuthprovider struct {
}

func NewNoAuthprovider

func NewNoAuthprovider() *NoAuthprovider

func (NoAuthprovider) AddAuthHeaders

func (a NoAuthprovider) AddAuthHeaders(req *http.Request)

Jump to

Keyboard shortcuts

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