Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor interface {
// RunRepoClone clones the specified GitHub repository.
RunRepoClone(params *RepoCloneParams) (string, error)
// RunGitDescribe runs the 'git describe' command for the specified GitHub repository.
RunGitDescribe(params *RepoCloneParams, args ...string) (string, error)
}
Executor is an interface for the command executors.
type Params ¶
type Params struct {
// GitExecutor is an instance of gitexec.GitExecutor
GitExecutor gitexec.GitExecutor
// Logger is the slog.Logger instance.
Logger *slog.Logger
// CacheDirPath is the directory path to store the cache.
CacheDirPath string
// CacheTTL is the cache retention duration for the cloned repository.
CacheTTL time.Duration
}
type RepoCloneParams ¶
type RepoCloneParams struct {
// RepoID is the repository ID (OWNER/NAME) of the repository to clone.
RepoID string
// CacheTTL is the cache TTL duration.
CacheTTL time.Duration
}
RepoCloneParams represents the parameters for the RunRepoClone function.
Click to show internal directories.
Click to hide internal directories.