1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/pkg/globalcontext/invalid/entry.go
Charles-Edouard Brétéché b59353c657
chore: move global context package out of engine (#9618)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2024-02-02 14:35:24 +00:00

21 lines
291 B
Go

package invalid
import (
"github.com/pkg/errors"
)
type entry struct {
err error
}
func (i *entry) Get() (any, error) {
return nil, errors.Wrapf(i.err, "failed to create cached context entry")
}
func (i *entry) Stop() {}
func New(err error) *entry {
return &entry{
err: err,
}
}