metadata/resource.go
func (r *Resource) GetAction(name string) *Action {
	for _, a := range r.Actions {
		if a.Name == name {
			return a
		}
	}
	return nil
}
func (r *Resource) GetAction(name string) *Action {
	for _, a := range r.Actions {
		if a.Name == name {
			return a
		}
	}
	return nil
}
// GetAction returns the action with the given name, returns nil if none is found.