Documentation ¶
Index ¶
- func CheckoutTag(path string, tag string)
- func CreateReadOnlyUser() error
- func DoHttpThings(request *netHttp.Request, username, secret string) ([]byte, error)
- func DownloadRepoToTemp(gitURL string, spinner *message.Spinner) string
- func MutateGitUrlsInText(host string, text string, gitUser string) string
- func Pull(gitURL, targetFolder string, spinner *message.Spinner) (string, error)
- func PushAllDirectories(localPath string) error
- type Credential
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckoutTag ¶
CheckoutTag performs a `git checkout` of the provided tag to a detached HEAD
func CreateReadOnlyUser ¶ added in v0.18.0
func CreateReadOnlyUser() error
CreateReadOnlyUser uses the Gitea API to create a non-admin zarf user
func DoHttpThings ¶ added in v0.18.0
Add http request boilerplate and perform the request, checking for a successful response
func DownloadRepoToTemp ¶
DownloadRepoToTemp clones or updates a repo into a temp folder to perform ephemeral actions (i.e. process chart repos).
func MutateGitUrlsInText ¶
MutateGitURlsInText Changes the giturl hostname to use the repository Zarf is configured to use
func PushAllDirectories ¶
Types ¶
type Credential ¶
func FindAuthForHost ¶
func FindAuthForHost(baseUrl string) Credential
Click to show internal directories.
Click to hide internal directories.