code: func (lst *LogStreamState) ArchivalState() ArchivalState {
  	if lst.ArchivedTime.IsZero() {
  		// Not archived, have we dispatched an archival?
  		if len(lst.ArchivalKey) > 0 {
  			return ArchiveTasked
  		}
  		return NotArchived
  	}
  
  	if lst.ArchiveLogEntryCount > lst.TerminalIndex {
  		return ArchivedComplete
  	}
  	return ArchivedPartial
  }
docs: // ArchivalState returns the archival state of the log stream.