handler

package
v0.0.0-...-0117b6e Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Overview

Package handler provides methods to access resources over HTTP(s)

Index

Constants

View Source
const (
	NONE   = "None"
	BASIC  = "Basic"
	DIGEST = "Digest"
)

Allowed auth method types

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPAuthConfig

type HTTPAuthConfig struct {
	AuthMethod types.TrimmedString
	Username   types.TrimmedString
	Password   types.TrimmedString
}

HTTPAuthConfig defines the attributes used to perform authentication over HTTP

type IHTTPHandler

type IHTTPHandler interface {
	Download(log log.T, fileSystem filemanager.FileSystem, downloadPath string) (string, error)
	Validate() (bool, error)
}

IHTTPHandler defines methods to interact with HTTP resources

func NewHTTPHandler

func NewHTTPHandler(
	client http.Client,
	url url.URL,
	allowInsecureDownload bool,
	authConfig HTTPAuthConfig,
	bridge ssmparameterresolver.ISsmParameterResolverBridge,
) IHTTPHandler

NewHTTPHandler creates a new http handler object

Directories

Path Synopsis
auth
digest
Package digest defines functionality required to support digest authorization
Package digest defines functionality required to support digest authorization

Jump to

Keyboard shortcuts

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