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 ClonePrivateRepo(gitRef, repoLocalPath, repoURL, userName, token string) (*git.Repository, error)
- func CloneRefSetMain(gitRef, repoLocalPath, repoURL string) (*git.Repository, error)
- func Commit(repo *git.Repository, commitMsg string) error
- func CreateBranch(repo *git.Repository, branchName string) error
- func GitAddWithFilter(w *git.Worktree) error
- func Pull(repo *git.Repository, remote, branch string) 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 committed gitops meant to help exclude undesired state files to be pushed to gitops
func ClonePrivateRepo ¶
func CloneRefSetMain ¶
func CreateBranch ¶
func GitAddWithFilter ¶
func GitAddWithFilter(w *git.Worktree) error
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.