Documentation
¶
Overview ¶
Package gitref holds the git helpers of the git-push transport (spec 8.4): clone URL derivation, known hosts, and job-ref sweeping. It imports nothing from bitc.
Index ¶
- Constants
- func CloneURL(remoteURL string) (string, error)
- func DeleteRefDetached(wt, remoteName, ref string)
- func FirstLine(s string) string
- func HostOf(clone string) string
- func KnownHostsHas(kh, host string) bool
- func RedactURL(s string) string
- func RepoID(clone string) string
- func SweepRefs(ctx context.Context, wt, remoteName, prefix, install string, ...) ([]string, error)
Constants ¶
const AgentRefPrefix = "refs/bitc/agent/"
AgentRefPrefix holds the hidden refs that carry a source = "build" agent commit (spec 8.4).
Variables ¶
This section is empty.
Functions ¶
func DeleteRefDetached ¶
func DeleteRefDetached(wt, remoteName, ref string)
DeleteRefDetached hands a ref deletion to a new session so an interrupted caller never waits for the network (spec 8.3 cleanup order).
func KnownHostsHas ¶
KnownHostsHas reports whether an OpenSSH known_hosts text has a key for host.
Types ¶
This section is empty.