code: func (s *Restore) CAProviderState(state *structs.CAConsulProviderState) error {
  	if err := s.tx.Insert(caBuiltinProviderTableName, state); err != nil {
  		return fmt.Errorf("failed restoring built-in CA state: %s", err)
  	}
  	if err := indexUpdateMaxTxn(s.tx, state.ModifyIndex, caBuiltinProviderTableName); err != nil {
  		return fmt.Errorf("failed updating index: %s", err)
  	}
  
  	return nil
  }
docs: // CAProviderState is used when restoring from a snapshot.