mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-08 17:06:57 +00:00
19 lines
291 B
Go
19 lines
291 B
Go
|
package annotations
|
||
|
|
||
|
type info struct {
|
||
|
RKind string
|
||
|
RNs string
|
||
|
RName string
|
||
|
//TODO:Hack as slice makes the struct unhasable
|
||
|
Patch *[]byte
|
||
|
}
|
||
|
|
||
|
func newInfo(rkind, rns, rname string, patch []byte) info {
|
||
|
return info{
|
||
|
RKind: rkind,
|
||
|
RNs: rns,
|
||
|
RName: rname,
|
||
|
Patch: &patch,
|
||
|
}
|
||
|
}
|