internal/providercache: Remove unused retry events
This commit is contained in:
parent
e27a36cafd
commit
070c3018f8
|
@ -63,11 +63,9 @@ type InstallerEvents struct {
|
||||||
// identifier to correlate between successive events.
|
// identifier to correlate between successive events.
|
||||||
//
|
//
|
||||||
// The Begin, Success, and Failure events will each occur only once per
|
// The Begin, Success, and Failure events will each occur only once per
|
||||||
// distinct provider. The Retry event can occur zero or more times, and
|
// distinct provider.
|
||||||
// signals a failure that the installer is considering transient.
|
|
||||||
QueryPackagesBegin func(provider addrs.Provider, versionConstraints getproviders.VersionConstraints)
|
QueryPackagesBegin func(provider addrs.Provider, versionConstraints getproviders.VersionConstraints)
|
||||||
QueryPackagesSuccess func(provider addrs.Provider, selectedVersion getproviders.Version)
|
QueryPackagesSuccess func(provider addrs.Provider, selectedVersion getproviders.Version)
|
||||||
QueryPackagesRetry func(provider addrs.Provider, err error)
|
|
||||||
QueryPackagesFailure func(provider addrs.Provider, err error)
|
QueryPackagesFailure func(provider addrs.Provider, err error)
|
||||||
|
|
||||||
// The LinkFromCache... family of events delimit the operation of linking
|
// The LinkFromCache... family of events delimit the operation of linking
|
||||||
|
@ -99,12 +97,10 @@ type InstallerEvents struct {
|
||||||
// or the FetchPackage... events, never both in the same install operation.
|
// or the FetchPackage... events, never both in the same install operation.
|
||||||
//
|
//
|
||||||
// The Query, Begin, Success, and Failure events will each occur only once
|
// The Query, Begin, Success, and Failure events will each occur only once
|
||||||
// per distinct provider. The Retry event can occur zero or more times, and
|
// per distinct provider.
|
||||||
// signals a failure that the installer is considering transient.
|
|
||||||
FetchPackageMeta func(provider addrs.Provider, version getproviders.Version) // fetching metadata prior to real download
|
FetchPackageMeta func(provider addrs.Provider, version getproviders.Version) // fetching metadata prior to real download
|
||||||
FetchPackageBegin func(provider addrs.Provider, version getproviders.Version, location getproviders.PackageLocation)
|
FetchPackageBegin func(provider addrs.Provider, version getproviders.Version, location getproviders.PackageLocation)
|
||||||
FetchPackageSuccess func(provider addrs.Provider, version getproviders.Version, localDir string, authResult *getproviders.PackageAuthenticationResult)
|
FetchPackageSuccess func(provider addrs.Provider, version getproviders.Version, localDir string, authResult *getproviders.PackageAuthenticationResult)
|
||||||
FetchPackageRetry func(provider addrs.Provider, version getproviders.Version, err error)
|
|
||||||
FetchPackageFailure func(provider addrs.Provider, version getproviders.Version, err error)
|
FetchPackageFailure func(provider addrs.Provider, version getproviders.Version, err error)
|
||||||
|
|
||||||
// HashPackageFailure is called if the installer is unable to determine
|
// HashPackageFailure is called if the installer is unable to determine
|
||||||
|
|
Loading…
Reference in New Issue