http

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: 0BSD Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPFile

type HTTPFile struct {
	ID          string
	Source      string
	Destination string
	Hash        string
	Props       map[string]interface{}
}

func (HTTPFile) Download

func (hf HTTPFile) Download(ctx context.Context) error

func (HTTPFile) Parse

func (hf HTTPFile) Parse(id, source, destination, hash string, properties map[string]interface{}) (types.FileProvider, error)

func (HTTPFile) Properties

func (hf HTTPFile) Properties() (map[string]interface{}, error)

func (HTTPFile) Protocols

func (hf HTTPFile) Protocols() []string

func (HTTPFile) Verify

func (lf HTTPFile) Verify(ctx context.Context) (bool, error)

Jump to

Keyboard shortcuts

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