Versions in this module Expand all Collapse all v2 v2.0.1 Jun 7, 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) ProbeRemote(ctx context.Context, url string, auth AuthConfig) 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 + func (c *Client) WalkDirectory(ctx context.Context, repoPath, composePath string, maxFiles int, ...) (*DirectoryWalkResult, error) + type CommitInfo struct + Author string + Date time.Time + Hash string + Message string + type DirectoryWalkResult struct + Files []SyncFileInfo + SkippedBinaries int + TotalFiles int + TotalSize int64 + type SyncFileInfo struct + Content []byte + IsBinary bool + RelativePath string + Size int64 Other modules containing this package github.com/getarcaneapp/arcane/backend