http

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 30 Imported by: 131

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 added in v0.13.0

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

func NewHTTPIdentifier added in v0.13.0

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

func (*HTTPIdentifier) Capture added in v0.13.0

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

func (*HTTPIdentifier) Scheme added in v0.13.0

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