auth

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrLogin = errors.New("login failed")

Functions

func Login

func Login(ctx context.Context, client *http.Client, loginURL, baseURL, username, password string) error

Login performs a login request to the specified loginURL using the provided username and password. It returns an error if the request fails or the response status code is not 200 OK.

func RetryLogin

func RetryLogin(
	ctx context.Context,
	log *slog.Logger,
	httpClient *http.Client,
	loginURL, baseURL, username, password string,
) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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