code: func (dsw *desiredStateOfWorld) AddSnapshot(snapshot *crdv1.VolumeSnapshot) error {
  	if snapshot == nil {
  		return fmt.Errorf("nil snapshot spec")
  	}
  
  	dsw.Lock()
  	defer dsw.Unlock()
  
  	snapshotName := MakeSnapshotName(snapshot)
  	glog.Infof("Adding new snapshot to desired state of world: %s", snapshotName)
  	dsw.snapshots[snapshotName] = snapshot
  	return nil
  }
docs: // Adds a snapshot to the list of snapshots to be created