package http
import "github.com/moby/buildkit/source/http"
Index ¶
- Constants
- type HTTPIdentifier
- func NewHTTPIdentifier(str string, tls bool) (*HTTPIdentifier, error)
- func (id *HTTPIdentifier) Capture(c *provenance.Capture, pin string) error
- func (id *HTTPIdentifier) Scheme() string
- type HeaderField
- type Metadata
- type Opt
- type Source
- func NewSource(opt Opt) (*Source, error)
- func (hs *Source) Identifier(scheme, ref string, attrs map[string]string, platform *pb.Platform) (source.Identifier, error)
- func (hs *Source) Resolve(ctx context.Context, id source.Identifier, sm *session.Manager, _ solver.Vertex) (source.SourceInstance, error)
- func (hs *Source) ResolveMetadata(ctx context.Context, id *HTTPIdentifier, sm *session.Manager, jobCtx solver.JobContext) (*Metadata, error)
- func (hs *Source) Schemes() []string
Constants ¶
const ( HTTPAuthHeaderSecretPrefix = "HTTP_AUTH_HEADER_" HTTPAuthTokenSecretPrefix = "HTTP_AUTH_TOKEN_" )
Types ¶
type HTTPIdentifier ¶
type HTTPIdentifier struct {
TLS bool
URL string
Checksum digest.Digest
Filename string
Perm int
UID int
GID int
AuthHeaderSecret string
Header []HeaderField
}
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 HeaderField ¶
type Metadata ¶
type Opt ¶
type Opt struct {
CacheAccessor cache.Accessor
Transport http.RoundTripper
}
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
func NewSource ¶
func (*Source) Identifier ¶
func (hs *Source) Identifier(scheme, ref string, attrs map[string]string, platform *pb.Platform) (source.Identifier, error)
func (*Source) Resolve ¶
func (hs *Source) Resolve(ctx context.Context, id source.Identifier, sm *session.Manager, _ solver.Vertex) (source.SourceInstance, error)
func (*Source) ResolveMetadata ¶
func (hs *Source) ResolveMetadata(ctx context.Context, id *HTTPIdentifier, sm *session.Manager, jobCtx solver.JobContext) (*Metadata, error)
func (*Source) Schemes ¶
Source Files ¶
identifier.go source.go transport.go
- Version
- v0.27.0
- Published
- Jan 21, 2026
- Platform
- darwin/amd64
- Imports
- 34 packages
- Last checked
- 1 minute ago –
Tools for package owners.