Documentation
      ¶
    
    
  
    
  
    Index ¶
- func BranchRefName(branch string) string
 - func CheckoutBranch(g *WithT, repo *extgogit.Repository, branch string)
 - func Clone(ctx context.Context, repoURL, branchName, remote string) (*extgogit.Repository, string, error)
 - func CommitIdFromBranch(repo *extgogit.Repository, branchName string) string
 - func CommitInRepo(ctx context.Context, g *WithT, repoURL, branch, remote, msg string, ...) plumbing.Hash
 - func CommitWorkDir(g *WithT, repo *extgogit.Repository, branchName, message string) plumbing.Hash
 - func GetRemoteHead(repo *extgogit.Repository, branchName, remote string) (plumbing.Hash, error)
 - func GetSigningKeyPair(g *WithT, passphrase string) (*openpgp.Entity, []byte)
 - func GetSigningKeyPairSecret(g *WithT, name, namespace string) (*corev1.Secret, *openpgp.Entity)
 - func HeadFromBranch(repo *extgogit.Repository, branchName string) (*object.Commit, error)
 - func ImageToRef(image string) *imagev1_reflect.ImageRef
 - func InitGitRepo(g *WithT, gitServer *gittestserver.GitServer, fixture, branch, repoPath string) *extgogit.Repository
 - func InitGitRepoPlain(g *WithT, fixture, repoPath string) *extgogit.Repository
 - func ReplaceMarker(path string, policyKey types.NamespacedName) error
 - func ReplaceMarkerWithMarker(path string, policyKey types.NamespacedName, marker string) error
 - func SetUpGitTestServer(g *WithT) *gittestserver.GitServer
 - func TagCommit(g *WithT, repo *extgogit.Repository, commit plumbing.Hash, annotated bool, ...) (*plumbing.Reference, error)
 - func WaitForNewHead(g *WithT, repo *extgogit.Repository, branch, remote, preChangeHash string)
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BranchRefName ¶
func CheckoutBranch ¶
func CheckoutBranch(g *WithT, repo *extgogit.Repository, branch string)
func CommitIdFromBranch ¶
func CommitIdFromBranch(repo *extgogit.Repository, branchName string) string
func CommitInRepo ¶
func CommitWorkDir ¶
func CommitWorkDir(g *WithT, repo *extgogit.Repository, branchName, message string) plumbing.Hash
func GetRemoteHead ¶
func GetSigningKeyPair ¶
func GetSigningKeyPairSecret ¶
func HeadFromBranch ¶
func ImageToRef ¶ added in v0.41.0
func ImageToRef(image string) *imagev1_reflect.ImageRef
func InitGitRepo ¶
func InitGitRepo(g *WithT, gitServer *gittestserver.GitServer, fixture, branch, repoPath string) *extgogit.Repository
Initialise a git server with a repo including the files in dir.
func InitGitRepoPlain ¶
func InitGitRepoPlain(g *WithT, fixture, repoPath string) *extgogit.Repository
func ReplaceMarker ¶
func ReplaceMarker(path string, policyKey types.NamespacedName) error
func ReplaceMarkerWithMarker ¶
func ReplaceMarkerWithMarker(path string, policyKey types.NamespacedName, marker string) error
func SetUpGitTestServer ¶
func SetUpGitTestServer(g *WithT) *gittestserver.GitServer
SetUpGitTestServer creates and returns a git test server. The caller must ensure it's stopped and cleaned up.
func WaitForNewHead ¶
func WaitForNewHead(g *WithT, repo *extgogit.Repository, branch, remote, preChangeHash string)
Types ¶
This section is empty.
 Click to show internal directories. 
   Click to hide internal directories.