Documentation
¶
Index ¶
- Constants
- Variables
- func Diagnose(d Doctor, r parser_io.ReadSeekCloserAt, cache map[string]string, ...) map[string]Diagnosis
- func Execute() int
- func Prepare() error
- func Report(diagnoses map[string]Diagnosis, strict_mode bool) error
- func SaveCache(diagnoses map[string]Diagnosis, cacheStore CacheStore, packageManager string) error
- type CachePackageManager
- type CacheRepository
- type CacheStore
- type DiagnoseOption
- type Diagnosis
- type Doctor
- type Doctors
- type Libraries
- type Reporter
- type RepositoryParams
- type StdoutReporter
Constants ¶
View Source
const CACHE_FILE = ".dep-doctor.yaml"
View Source
const FETCH_REPOS_PER_ONCE = 20
referenced as the number of goroutine parallels should be optimized?
View Source
const MAX_YEAR_TO_BE_BLANK = 5
Variables ¶
View Source
var ( Revision = "3" Version = "1" )
Functions ¶
func Diagnose ¶ added in v0.2.0
func Diagnose(d Doctor, r parser_io.ReadSeekCloserAt, cache map[string]string, o DiagnoseOption) map[string]Diagnosis
Types ¶
type CachePackageManager ¶ added in v1.0.0
type CachePackageManager struct { Name string `yaml:"name"` Repositories []CacheRepository `yaml:"repositories"` }
type CacheRepository ¶ added in v1.0.0
type CacheStore ¶ added in v1.0.0
type CacheStore struct {
PackageManagers []CachePackageManager `yaml:"package_managers"`
}
func BuildCacheStore ¶ added in v1.0.0
func BuildCacheStore() CacheStore
func (*CacheStore) RebuildCacheStore ¶ added in v1.0.0
func (r *CacheStore) RebuildCacheStore(diagnoses map[string]Diagnosis, packageManager string) CacheStore
func (*CacheStore) URLbyPackageManager ¶ added in v1.0.0
func (r *CacheStore) URLbyPackageManager(packageManager string) map[string]string
type DiagnoseOption ¶ added in v1.2.0
type DiagnoseOption struct { Out io.Writer ErrOut io.Writer // contains filtered or unexported fields }
func (*DiagnoseOption) Ignores ¶ added in v1.2.0
func (o *DiagnoseOption) Ignores() []string
type Diagnosis ¶
type Diagnosis struct { Name string URL string Archived bool Ignored bool Diagnosed bool Active bool Error error }
func (*Diagnosis) ErrorMessage ¶ added in v1.0.0
type Doctors ¶ added in v1.0.0
func (Doctors) PackageManagers ¶ added in v1.0.0
func (Doctors) UnknownErrorMessage ¶ added in v1.0.0
type Libraries ¶ added in v1.2.0
func NewLibraries ¶ added in v1.2.0
type RepositoryParams ¶ added in v1.0.0
type RepositoryParams []github.FetchRepositoryParam
func FetchRepositoryParams ¶ added in v0.2.0
func (RepositoryParams) SearchableParams ¶ added in v1.0.0
func (params RepositoryParams) SearchableParams() []github.FetchRepositoryParam
func (RepositoryParams) SlicedParams ¶ added in v1.2.0
func (params RepositoryParams) SlicedParams() [][]github.FetchRepositoryParam
type StdoutReporter ¶ added in v1.0.0
type StdoutReporter struct {
// contains filtered or unexported fields
}
func NewStdoutReporter ¶ added in v1.0.0
func NewStdoutReporter(diagnosis map[string]Diagnosis, strict_mode bool) *StdoutReporter
func (*StdoutReporter) Report ¶ added in v1.0.0
func (r *StdoutReporter) Report() error
Click to show internal directories.
Click to hide internal directories.