auth

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidCredentials = errors.New("invalid credentials")

Functions

func Client

func Client(host, user, pass string, opts ...Option) (*http.Client, error)

func FromContext

func FromContext(ctx context.Context) *http.Client

func NewContext

func NewContext(ctx context.Context, value *http.Client) context.Context

func WithInsecure added in v0.0.6

func WithInsecure(t *http.Transport) error

Types

type Option added in v0.0.6

type Option func(*http.Transport) error

func WithSSHTunnel added in v0.0.6

func WithSSHTunnel(proxy string, config *ssh.ClientConfig) (Option, error)

Jump to

Keyboard shortcuts

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