Documentation ¶
Overview ¶
Package git contains functions for interacting with git repositories
Package git contains functions for interacting with git repositories ¶
Package git contains functions for interacting with git repositories ¶
Package git contains functions for interacting with git repositories ¶
Package git contains functions for interacting with git repositories ¶
Package git contains functions for interacting with git repositories ¶
Package git contains functions for interacting with git repositories ¶
Package git contains functions for interacting with git repositories ¶
Package git contains functions for interacting with git repositories
Index ¶
- type Git
- func (g *Git) CheckoutTag(tag string)
- func (g *Git) CreateReadOnlyUser() error
- func (g *Git) DoHttpThings(request *netHttp.Request, username, secret string) ([]byte, error)
- func (g *Git) DownloadRepoToTemp(gitURL string) string
- func (g *Git) MutateGitUrlsInText(text string) string
- func (g *Git) Pull(gitURL, targetFolder string) (path string, err error)
- func (g *Git) PushRepo(localPath string) error
- func (g *Git) TransformURLtoRepoName(url string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Git ¶
type Git struct { Server types.GitServerInfo Spinner *message.Spinner // Target working directory for the git repository GitPath string }
func New ¶
func New(server types.GitServerInfo) *Git
func NewWithSpinner ¶
func NewWithSpinner(server types.GitServerInfo, spinner *message.Spinner) *Git
func (*Git) CheckoutTag ¶
CheckoutTag performs a `git checkout` of the provided tag to a detached HEAD
func (*Git) CreateReadOnlyUser ¶
CreateReadOnlyUser uses the Gitea API to create a non-admin zarf user
func (*Git) DoHttpThings ¶
Add http request boilerplate and perform the request, checking for a successful response
func (*Git) DownloadRepoToTemp ¶
DownloadRepoToTemp clones or updates a repo into a temp folder to perform ephemeral actions (i.e. process chart repos).
func (*Git) MutateGitUrlsInText ¶
MutateGitURlsInText Changes the giturl hostname to use the repository Zarf is configured to use
Click to show internal directories.
Click to hide internal directories.