git
package v0.26.2
Go to latest Published: Nov 20, 2025 License:Apache-2.0
Opens a new window with list of versions in this module.
Latest LatestThis package is not in the latest version of its module.
Opens a new window with license information.
Imports:40 Opens a new window with list of imports.
Imported by:146 Opens a new window with list of known importers.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
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¶
typeGitIdentifier¶added inv0.13.0
type GitIdentifier struct {RemotestringRefstringChecksumstringSubdirstringKeepGitDirboolAuthTokenSecretstringAuthHeaderSecretstringMountSSHSockstringKnownSSHHostsstringSkipSubmodulesboolVerifySignature *GitSignatureVerifyOptions}funcNewGitIdentifier¶added inv0.13.0
func NewGitIdentifier(remoteURLstring) (*GitIdentifier,error)
func (*GitIdentifier)Capture¶added inv0.13.0
func (id *GitIdentifier) Capture(c *provenance.Capture, pinstring)error
func (GitIdentifier)Scheme¶added inv0.13.0
func (GitIdentifier) Scheme()string
typeGitSignatureVerifyOptions¶added inv0.26.0
typeMetadataOpts¶added inv0.26.0
type MetadataOpts struct {ReturnObjectbool}typeSource¶added inv0.26.0
type Source struct {// contains filtered or unexported fields}func (*Source)Identifier¶added inv0.26.0
func (*Source)ResolveMetadata¶added inv0.26.0
func (gs *Source) ResolveMetadata(ctxcontext.Context, id *GitIdentifier, sm *session.Manager, jobCtxsolver.JobContext, optMetadataOpts) (*Metadata,error)
Click to show internal directories.
Click to hide internal directories.