Documentation ¶
Overview ¶
Copyright (C) 2021-2023, Kubefirst
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Index ¶
- func AddRemote(newGitRemoteURL, remoteName string, repo *git.Repository) error
- func AppendFile(cloudType string, reponame string, filename string) bool
- func Clone(gitRef, repoLocalPath, repoURL string) (*git.Repository, error)
- func CloneRefSetMain(gitRef, repoLocalPath, repoURL string) (*git.Repository, error)
- func Commit(repo *git.Repository, commitMsg string) error
- func GitAddWithFilter(cloudType string, reponame string, w *git.Worktree) error
- func SetRefToMainBranch(repo *git.Repository) (*git.Repository, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendFile ¶
AppendFile verify if a file must be appended to commited gitops meant to help exclude undesired state files to be pushed to gitops
func CloneRefSetMain ¶
func GitAddWithFilter ¶
GitAddWithFilter Check workdir for files to commit filter out the undersired ones based on context
func SetRefToMainBranch ¶
func SetRefToMainBranch(repo *git.Repository) (*git.Repository, error)
SetRefToMainBranch sets the provided gitRef (branch or tag) to the main branch
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.