auth

package
v0.0.0-...-49fa6d7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPAuth

func HTTPAuth(id string, spec *obs.HTTPAuthentication, secrets vectorhelpers.Secrets, op Options) Element

HTTPAuth provides auth configuration for http authentication where username/password or bearer token are viable options. Bearer token takes precedence if both are provided

Types

type Basic

type Basic struct {
	ID       string
	Username string
	Password string
}

func NewBasic

func NewBasic(id string, spec *obs.HTTPAuthentication, secrets observability.Secrets) Basic

func (Basic) Name

func (b Basic) Name() string

func (Basic) Template

func (b Basic) Template() string

type BearerToken

type BearerToken struct {
	ID    string
	Token string
}

func NewBearerToken

func NewBearerToken(id string, spec *obs.HTTPAuthentication, secrets observability.Secrets, op framework.Options) BearerToken

func (BearerToken) Name

func (bt BearerToken) Name() string

func (BearerToken) Template

func (bt BearerToken) Template() string

Jump to

Keyboard shortcuts

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