Versions in this module Expand all Collapse all v0 v0.37.0 Jul 29, 2024 Changes in this version + func ParseRef(r string) plumbing.ReferenceName + func UpdateGiteaPVC(ctx context.Context, shouldRollBack bool) (string, error) + type CreateTokenResponse struct + ID int64 + Name string + Sha1 string + TokenLastEight string + type Git struct + GitPath string + Server types.GitServerInfo + Spinner *message.Spinner + func New(server types.GitServerInfo) *Git + func NewWithSpinner(server types.GitServerInfo, spinner *message.Spinner) *Git + func (g *Git) CheckoutTag(tag string) error + func (g *Git) CreatePackageRegistryToken(ctx context.Context) (CreateTokenResponse, error) + func (g *Git) CreateReadOnlyUser(ctx context.Context) error + func (g *Git) DoHTTPThings(request *netHttp.Request, username, secret string) ([]byte, int, error) + func (g *Git) DownloadRepoToTemp(ctx context.Context, gitURL string) error + func (g *Git) Pull(ctx context.Context, gitURL, targetFolder string, shallow bool) error + func (g *Git) PushRepo(srcURL, targetFolder string) error + func (g *Git) UpdateGitUser(ctx context.Context, oldAdminPass string, username string, userpass string) error + func (g *Git) UpdateZarfGiteaUsers(ctx context.Context, oldState *types.ZarfState) error