15 lines
272 B
Go
15 lines
272 B
Go
//go:build e2e
|
|
|
|
package e2e
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"github.com/arescom/docker-migrate/internal/sshx"
|
|
)
|
|
|
|
// asHostKeyError unwraps err into a *sshx.HostKeyError if it is one.
|
|
func asHostKeyError(err error, target **sshx.HostKeyError) bool {
|
|
return errors.As(err, target)
|
|
}
|