Documentation
¶
Index ¶
- Constants
- type HTTPIdentifier
- type HeaderField
- type Metadata
- type Opt
- type Source
- 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, ...) (source.SourceInstance, error)
- func (hs *Source) ResolveMetadata(ctx context.Context, id *HTTPIdentifier, sm *session.Manager, ...) (*Metadata, error)
- func (hs *Source) Schemes() []string
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 Source ¶ added in v0.26.0
type Source struct {
// contains filtered or unexported fields
}
func (*Source) Identifier ¶ 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)
Click to show internal directories.
Click to hide internal directories.