code: func (m *systemdUnitManager) GetUnitState(name string) (*unit.UnitState, error) {
  	m.mutex.Lock()
  	defer m.mutex.Unlock()
  	us, err := m.getUnitState(name)
  	if err != nil {
  		return nil, err
  	}
  	if h, ok := m.hashes[name]; ok {
  		us.UnitHash = h.String()
  	}
  	return us, nil
  }
docs: // GetUnitState generates a UnitState object representing the
  // current state of a Unit