Documentation ¶
Index ¶
- Constants
- func IndexTaskFunc(ctx context.Context) error
- func ListTaskFunc(ctx context.Context) error
- func NewDetector() *cobra.Command
- func NewIndexTaskContext(info *IndexTaskInfo) context.Context
- func NewListTaskContext(info *ListTaskInfo) context.Context
- func NewRetryTaskContext(info *RetryTaskInfo) context.Context
- func NewSearchTaskContext(info *SearchTaskInfo) context.Context
- func Run(c *config.GitHubDetectorConfiguration) error
- func SearchTaskFunc(ctx context.Context) (err error)
- type ContextType
- type Dep
- type DownloadTask
- type DownloadType
- type IndexTaskInfo
- type Info
- type ListTaskInfo
- type RetryTask
- type RetryTaskInfo
- type SearchTaskInfo
- type Source
Constants ¶
View Source
const ( // RetryTaskKey - RetryTaskKey ContextType = "Retry-Task-Key" // SearchTaskKey - SearchTaskKey ContextType = "Search-Task-Key" // ListTaskKey - ListTaskKey ContextType = "List-Task-Key" // IndexTaskKey - IndexTaskKey ContextType = "Index-Task-Key" // RepoDir - RepoDir = "repo-" // ReposDir - ReposDir = "repos/" // CacheDir - CacheDir = "cache/" // ReposJSON - ReposJSON = "repos.json" // InfoJSON - InfoJSON = "info.json" )
Variables ¶
This section is empty.
Functions ¶
func NewDetector ¶
NewDetector creates a *cobra.Command object with default parameters.
func NewIndexTaskContext ¶
func NewIndexTaskContext(info *IndexTaskInfo) context.Context
NewIndexTaskContext -
func NewListTaskContext ¶
func NewListTaskContext(info *ListTaskInfo) context.Context
NewListTaskContext -
func NewRetryTaskContext ¶
func NewRetryTaskContext(info *RetryTaskInfo) context.Context
NewRetryTaskContext -
func NewSearchTaskContext ¶
func NewSearchTaskContext(info *SearchTaskInfo) context.Context
NewSearchTaskContext -
Types ¶
type Dep ¶
type Dep struct { URL string `json:"url"` Type string `json:"type"` Conf conf.File `json:"conf"` Lock lock.File `json:"lock"` Direct []string `json:"direct"` Indirect []string `json:"indirect"` }
Dep -
type DownloadTask ¶
type DownloadTask struct { Type DownloadType Conf string Lock string }
DownloadTask -
type DownloadType ¶
type DownloadType int8
DownloadType -
const ( // IgnoreType - IgnoreType DownloadType = iota // NoVendorType - NoVendorType // NotSupportType - NotSupportType // AgainType - AgainType // VendorType - VendorType )
type IndexTaskInfo ¶
IndexTaskInfo -
type Info ¶
type Info struct { URL string `yaml:"url"` Type string `yaml:"type"` Status string `yaml:"status"` }
Info -
type ListTaskInfo ¶
type ListTaskInfo struct { Dir string URL string Owner string Repo string Path string Info *sync.Map GPool pool.Pool }
ListTaskInfo -
type RetryTask ¶
type RetryTask struct {
// contains filtered or unexported fields
}
RetryTask -
func NewRetryTask ¶
NewRetryTask -
Click to show internal directories.
Click to hide internal directories.