auth

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicAuthCredential

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

func NewBasicAuthCredential

func NewBasicAuthCredential(username string, password string) *BasicAuthCredential

func (*BasicAuthCredential) Name

func (b *BasicAuthCredential) Name() string

func (*BasicAuthCredential) SetAuth

func (b *BasicAuthCredential) SetAuth(r *http.Request)

type Credential

type Credential interface {
	Name() string
	SetAuth(r *http.Request)
}

Jump to

Keyboard shortcuts

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