forked from security/hakurei
internal/pkg: pass cure context as single value
This cleans up the function signature and makes backwards compatible API changes possible. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -7,8 +7,6 @@ import (
|
||||
"net/http"
|
||||
"sync"
|
||||
"syscall"
|
||||
|
||||
"hakurei.app/container/check"
|
||||
)
|
||||
|
||||
// An httpArtifact is an [Artifact] backed by a [http] url string. The method is
|
||||
@@ -101,7 +99,7 @@ func (a *httpArtifact) do() (data []byte, err error) {
|
||||
}
|
||||
|
||||
// Cure returns syscall.ENOTSUP. Callers should use Data instead.
|
||||
func (a *httpArtifact) Cure(*check.Absolute, *check.Absolute, CacheDataFunc) error {
|
||||
func (a *httpArtifact) Cure(*CureContext) error {
|
||||
return syscall.ENOTSUP
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user