mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
892b8f921d
* refactor: introduce engine api package Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * status Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * refactor: clean engine api package Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * cleanup Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> --------- Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
15 lines
317 B
Go
15 lines
317 B
Go
package api
|
|
|
|
// ResourceSpec resource action applied on
|
|
type ResourceSpec struct {
|
|
Kind string
|
|
APIVersion string
|
|
Namespace string
|
|
Name string
|
|
UID string
|
|
}
|
|
|
|
// String implements Stringer interface
|
|
func (rs ResourceSpec) String() string {
|
|
return rs.Kind + "/" + rs.Namespace + "/" + rs.Name
|
|
}
|