http

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: Apache-2.0 Imports: 34 Imported by: 145

Documentation

Index

Constants

View Source
const (
	HTTPAuthHeaderSecretPrefix = "HTTP_AUTH_HEADER_"
	HTTPAuthTokenSecretPrefix  = "HTTP_AUTH_TOKEN_"
)

Variables

This section is empty.

Functions

This section is empty.

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
	AuthHeaderSecret string
	Header           []HeaderField
}

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

type HeaderField struct {
	Name  string
	Value string
}

type Metadata added in v0.26.0

type Metadata struct {
	Digest       digest.Digest
	Filename     string
	LastModified *time.Time
}

type Opt

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

type Source added in v0.26.0

type Source struct {
	// contains filtered or unexported fields
}

func NewSource

func NewSource(opt Opt) (*Source, error)

func (*Source) Identifier added in v0.26.0

func (hs *Source) Identifier(scheme, ref string, attrs map[string]string, platform *pb.Platform) (source.Identifier, error)

func (*Source) Resolve added in v0.26.0

func (*Source) ResolveMetadata added in v0.26.0

func (hs *Source) ResolveMetadata(ctx context.Context, id *HTTPIdentifier, sm *session.Manager, jobCtx solver.JobContext) (*Metadata, error)

func (*Source) Schemes added in v0.26.0

func (hs *Source) Schemes() []string

Jump to

Keyboard shortcuts

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