1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-09 01:16:55 +00:00
kyverno/pkg/globalcontext/invalid/entry.go

22 lines
291 B
Go
Raw Normal View History

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,
}
}