Documentation
¶
Index ¶
- func Acquire(ctx context.Context, org string, lister RepoLister, acquirer RepoAcquirer) (repos []source.RepoManifest, failures []source.RepoFailure, err error)
- func AcquireMaterialized(ctx context.Context, org string, lister RepoLister, ...) (repos []source.RepoManifest, failures []source.RepoFailure, err error)
- func IsCheckpointInputError(err error) bool
- func IsCheckpointMissingError(err error) bool
- func IsCheckpointSafetyError(err error) bool
- func SaveTargetSet(statePath string, targets []string, materializedRoot string) error
- func ValidateTargetSet(statePath string, targets []string, materializedRoot string) error
- type AcquireMaterializedOptions
- type ProgressReporter
- type RepoAcquirer
- type RepoLister
- type RepoMaterializer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Acquire ¶
func Acquire(ctx context.Context, org string, lister RepoLister, acquirer RepoAcquirer) (repos []source.RepoManifest, failures []source.RepoFailure, err error)
Acquire gathers repo manifests for an org and continues on per-repo acquisition failures.
func AcquireMaterialized ¶ added in v1.0.11
func AcquireMaterialized( ctx context.Context, org string, lister RepoLister, materializer RepoMaterializer, opts AcquireMaterializedOptions, ) (repos []source.RepoManifest, failures []source.RepoFailure, err error)
func IsCheckpointInputError ¶ added in v1.0.11
func IsCheckpointMissingError ¶ added in v1.1.1
func IsCheckpointSafetyError ¶ added in v1.0.11
func SaveTargetSet ¶ added in v1.1.1
Types ¶
type AcquireMaterializedOptions ¶ added in v1.0.11
type AcquireMaterializedOptions struct {
StatePath string
MaterializedRoot string
Resume bool
WorkerCount int
Progress ProgressReporter
}
type ProgressReporter ¶ added in v1.0.11
type ProgressReporter interface {
RepoDiscovery(org string, total int)
RepoMaterialize(org string, index, total int, repo string)
RepoMaterializeDone(org string, completed, total int, repo, status string)
Resume(org string, total, completed, pending int)
Complete(org string, total, completed, failed int)
}
type RepoAcquirer ¶
type RepoLister ¶
type RepoMaterializer ¶ added in v1.0.11
Click to show internal directories.
Click to hide internal directories.