Documentation
¶
Index ¶
- func Supported() error
- type GitIdentifier
- type GitSignatureVerifyOptions
- type Metadata
- type MetadataOpts
- type Opt
- type Source
- func (gs *Source) Identifier(scheme, ref string, attrs map[string]string, platform *pb.Platform) (source.Identifier, error)
- func (gs *Source) Resolve(ctx context.Context, id source.Identifier, sm *session.Manager, ...) (source.SourceInstance, error)
- func (gs *Source) ResolveMetadata(ctx context.Context, id *GitIdentifier, sm *session.Manager, ...) (*Metadata, error)
- func (gs *Source) Schemes() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GitIdentifier ¶ added in v0.13.0
type GitIdentifier struct {
Remote string
Ref string
Checksum string
Subdir string
KeepGitDir bool
AuthTokenSecret string
AuthHeaderSecret string
MountSSHSock string
KnownSSHHosts string
SkipSubmodules bool
MTime string // "checkout" (default) or "commit"
FetchByCommit bool
// Bundle, when non-empty, instructs the git source to fetch commits from a
// pre-built git bundle stored as a blob instead of fetching from the remote
// repository. The locator must use the "docker-image+blob://" or
// "oci-layout+blob://" scheme.
Bundle string
// BundleOCISessionID, when set, pins the OCI-layout bundle fetch to a
// specific client session. Only meaningful when Bundle uses the
// oci-layout+blob:// scheme.
BundleOCISessionID string
// BundleOCIStoreID, when set, overrides the OCI-layout store name
// derived from the bundle locator. Only meaningful when Bundle uses the
// oci-layout+blob:// scheme.
BundleOCIStoreID string
// CheckoutBundle, when true, produces a single-file git bundle at the
// checkout mount root (filename "bundle") instead of a worktree.
CheckoutBundle bool
VerifySignature *GitSignatureVerifyOptions
}
func NewGitIdentifier ¶ added in v0.13.0
func NewGitIdentifier(remoteURL string) (*GitIdentifier, error)
func (*GitIdentifier) Capture ¶ added in v0.13.0
func (id *GitIdentifier) Capture(c *provenance.Capture, pin string) error
func (GitIdentifier) Scheme ¶ added in v0.13.0
func (GitIdentifier) Scheme() string
type GitSignatureVerifyOptions ¶ added in v0.26.0
type MetadataOpts ¶ added in v0.26.0
type MetadataOpts struct {
ReturnObject bool
}
type Opt ¶
type Opt struct {
CacheAccessor cache.Accessor
// RegistryHosts is used to fetch bundle blobs from a docker registry
// when a git source uses GitBundleURL("docker-image+blob://...").
// Optional: when unset, bundle mode requires oci-layout+blob.
RegistryHosts docker.RegistryHosts
}
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 (gs *Source) ResolveMetadata(ctx context.Context, id *GitIdentifier, sm *session.Manager, jobCtx solver.JobContext, opt MetadataOpts) (*Metadata, error)
Click to show internal directories.
Click to hide internal directories.