Documentation
¶
Index ¶
- Constants
- Variables
- type BasicPull
- type BasicPullConfig
- type BasicPullProcessorFactory
- type IgnoredError
- type JSONDuration
- type NopProcessor
- type PullContext
- type PullProcessor
- type PullProcessorFactory
- type Repo
- type RepoConfig
- type RepoContext
- type RepoProcessorFactory
- type StaticBasicPullConfig
- type StaticRepoConfig
- type Timing
- type Warning
Constants ¶
View Source
const ( StatusSentToQueue = "sent_to_queue" StatusProcessing = "processing" StatusProcessed = "processed" StatusNotFound = "not_found" StatusError = "error" )
Variables ¶
View Source
var ( ErrNothingToAnalyze = errors.New("nothing to analyze") ErrUnrecoverable = errors.New("unrecoverable error") )
Functions ¶
This section is empty.
Types ¶
type BasicPull ¶
type BasicPull struct {
BasicPullConfig
}
func NewBasicPull ¶
func NewBasicPull(cfg *BasicPullConfig) *BasicPull
func (BasicPull) Process ¶
func (p BasicPull) Process(ctx *PullContext) error
type BasicPullConfig ¶
type BasicPullConfig struct { StaticBasicPullConfig Reporter reporters.Reporter Exec executors.Executor Wi workspaces.Installer Ec *experiments.Checker }
type BasicPullProcessorFactory ¶
type BasicPullProcessorFactory struct {
// contains filtered or unexported fields
}
func NewBasicPullProcessorFactory ¶
func NewBasicPullProcessorFactory(cfg *BasicPullConfig) *BasicPullProcessorFactory
func (BasicPullProcessorFactory) BuildProcessor ¶
func (pf BasicPullProcessorFactory) BuildProcessor(ctx *PullContext) (PullProcessor, func(), error)
type IgnoredError ¶
func (IgnoredError) Error ¶
func (e IgnoredError) Error() string
type JSONDuration ¶
func (JSONDuration) MarshalJSON ¶
func (d JSONDuration) MarshalJSON() ([]byte, error)
func (JSONDuration) String ¶
func (d JSONDuration) String() string
type NopProcessor ¶
type NopProcessor struct{}
type PullContext ¶
type PullProcessor ¶
type PullProcessor interface {
Process(ctx *PullContext) error
}
type PullProcessorFactory ¶
type PullProcessorFactory interface {
BuildProcessor(ctx *PullContext) (PullProcessor, func(), error)
}
type Repo ¶
type Repo struct {
RepoConfig
}
func NewRepo ¶
func NewRepo(cfg *RepoConfig) *Repo
func (Repo) Process ¶
func (r Repo) Process(ctx *RepoContext) error
type RepoConfig ¶
type RepoConfig struct { StaticRepoConfig Exec executors.Executor Wi workspaces.Installer Ec *experiments.Checker }
type RepoContext ¶
type RepoProcessorFactory ¶
type RepoProcessorFactory struct {
// contains filtered or unexported fields
}
func NewRepoProcessorFactory ¶
func NewRepoProcessorFactory(cfg *StaticRepoConfig) *RepoProcessorFactory
func (RepoProcessorFactory) BuildProcessor ¶
func (f RepoProcessorFactory) BuildProcessor(ctx *RepoContext) (*Repo, func(), error)
type StaticBasicPullConfig ¶
type StaticRepoConfig ¶
type Timing ¶
type Timing struct { Name string Duration JSONDuration `json:"DurationMs"` }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.