Versions in this module Expand all Collapse all v1 v1.15.3 Feb 20, 2026 Changes in this version + const SSHHostKeyVerificationAcceptNew + const SSHHostKeyVerificationSkip + const SSHHostKeyVerificationStrict + func ValidatePath(repoPath, requestedPath string) error + type AuthConfig struct + AuthType string + SSHHostKeyVerification string + SSHKey string + Token string + Username string + type BranchInfo struct + IsDefault bool + Name string + type Client struct + func NewClient(workDir string) *Client + func (c *Client) BrowseTree(ctx context.Context, repoPath, targetPath string) ([]gitops.FileTreeNode, error) + func (c *Client) Cleanup(repoPath string) error + func (c *Client) Clone(ctx context.Context, url, branch string, auth AuthConfig) (string, error) + func (c *Client) FileExists(ctx context.Context, repoPath, filePath string) bool + func (c *Client) GetCurrentCommit(ctx context.Context, repoPath string) (string, error) + func (c *Client) ListBranches(ctx context.Context, url string, auth AuthConfig) ([]BranchInfo, error) + func (c *Client) ReadFile(ctx context.Context, repoPath, filePath string) (string, error) + func (c *Client) TestConnection(ctx context.Context, url, branch string, auth AuthConfig) error + type CommitInfo struct + Author string + Date time.Time + Hash string + Message string