httpresource

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: 16 Imported by: 1

Documentation

Overview

Package httpresource provides methods to download resources over HTTP(s)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPInfo

type HTTPInfo struct {
	URL                   types.TrimmedString `json:"url"`
	AuthMethod            types.TrimmedString `json:"authMethod"`
	Username              types.TrimmedString `json:"username"`
	Password              types.TrimmedString `json:"password"`
	AllowInsecureDownload bool                `json:"allowInsecureDownload"`
}

HTTPInfo defines the accepted SourceInfo attributes and their json definition

type HTTPResource

type HTTPResource struct {
	Handler handler.IHTTPHandler
	// contains filtered or unexported fields
}

HTTPResource represents an HTTP(s) resource

func NewHTTPResource

func NewHTTPResource(context context.T, info string, bridge ssmparameterresolver.ISsmParameterResolverBridge) (resource *HTTPResource, err error)

NewHTTPResource creates a new HTTP resource

func (*HTTPResource) DownloadRemoteResource

func (resource *HTTPResource) DownloadRemoteResource(fileSystem filemanager.FileSystem, downloadPath string) (err error, result *remoteresource.DownloadResult)

DownloadRemoteResource downloads a HTTP resource into a specific download path

func (*HTTPResource) ValidateLocationInfo

func (resource *HTTPResource) ValidateLocationInfo() (isValid bool, err error)

ValidateLocationInfo validates attribute values of an HTTP resource

Directories

Path Synopsis
Package handler provides methods to access resources over HTTP(s)
Package handler provides methods to access resources over HTTP(s)
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