Help us shape the future of Go! Take the 2026 Go Developer Survey

http

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: Apache-2.0 Imports: 36 Imported by: 154

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
	VerifySignature  *HTTPSignatureVerifyOptions
}

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

type HTTPSignatureVerifyOptions struct {
	PubKey    []byte
	Signature []byte
}

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
	ChecksumResponse *MetadataChecksumResponse
}

type MetadataChecksumAlgo added in v0.28.0

type MetadataChecksumAlgo int
const (
	MetadataChecksumAlgoSHA256 MetadataChecksumAlgo = iota
	MetadataChecksumAlgoSHA384
	MetadataChecksumAlgoSHA512
)

type MetadataChecksumRequest added in v0.28.0

type MetadataChecksumRequest struct {
	Algo   MetadataChecksumAlgo
	Suffix []byte
}

type MetadataChecksumResponse added in v0.28.0

type MetadataChecksumResponse struct {
	Digest string
	Suffix []byte
}

type MetadataOpts added in v0.28.0

type MetadataOpts struct {
	ChecksumReq *MetadataChecksumRequest
}

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, opt MetadataOpts) (*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