Improve updater.Resource.Export() documentation

This commit is contained in:
Daniel 2022-06-22 09:44:38 +02:00
parent e7d9ee9db0
commit aef3f523ce

View file

@ -118,6 +118,8 @@ func (rv *ResourceVersion) isBetaVersionNumber() bool { //nolint:unused
}
// Export makes a copy of the resource with only the exposed information.
// Attributes are copied and safe to access.
// Any ResourceVersion must not be modified.
func (res *Resource) Export() *Resource {
res.Lock()
defer res.Unlock()