code: func loadStateEntry(c context.Context, jobID, repo string) (*Repository, error) {
  	id, err := repositoryID(jobID, repo)
  	if err != nil {
  		return nil, err
  	}
  	entry := &Repository{ID: id}
  	if err := ds.Get(c, entry); err == ds.ErrNoSuchEntity {
  		return nil, err
  	} else {
  		return entry, transient.Tag.Apply(err)
  	}
  }
docs: // loadStateEntry loads Repository instance from datastore.