mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
b59353c657
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
21 lines
291 B
Go
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,
|
|
}
|
|
}
|