Documentation ¶
Index ¶
- func CheckoutTag(path string, tag string)
- func CheckoutTagAsBranch(path string, tag string, branch plumbing.ReferenceName)
- 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) string
- func Pull(gitUrl string, targetFolder string, spinner *message.Spinner) string
- func PushAllDirectories(localPath string)
- 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 CheckoutTagAsBranch ¶
func CheckoutTagAsBranch(path string, tag string, branch plumbing.ReferenceName)
CheckoutTagAsBranch performs a `git checkout` of the provided tag but rather than checking out to a detached head, checks out to the provided branch ref It will delete the branch provided if it exists
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 MutateGitUrlsInText ¶
func PushAllDirectories ¶
func PushAllDirectories(localPath string)
Types ¶
type Credential ¶
func FindAuthForHost ¶
func FindAuthForHost(baseUrl string) Credential
Click to show internal directories.
Click to hide internal directories.