http

package
v0.12.4 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSource

func NewSource(opt Opt) (source.Source, error)

Types

type HTTPIdentifier

type HTTPIdentifier struct {
	TLS      bool
	URL      string
	Checksum digest.Digest
	Filename string
	Perm     int
	UID      int
	GID      int
}

func NewHTTPIdentifier

func NewHTTPIdentifier(str string, tls bool) (*HTTPIdentifier, error)

func (*HTTPIdentifier) Capture

func (id *HTTPIdentifier) Capture(c *provenance.Capture, pin string) error

func (*HTTPIdentifier) Scheme

func (id *HTTPIdentifier) Scheme() string

type Opt

type Opt struct {
	CacheAccessor cache.Accessor
	Transport     http.RoundTripper
}

Jump to

Keyboard shortcuts

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