You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: delete_util.go
    path of file: ./repos/wal-g/internal
    
    the code of the file until where you have to start completion: package internal

import (
	"fmt"
	"strings"

	"github.com/spf13/cobra"
	"github.com/wal-g/tracelog"
	"github.com/wal-g/wal-g/pkg/storages/storage"
	"github.com/wal-g/wal-g/utility"
)

func FatalOnUnrecoverableMetadataError(backupTime BackupTime, err error) {
	if _, ok := err.(storage.ObjectNotFoundError); ok {
		tracelog.Inf
    
func IsPermanent(objectName string, permanentBackups map[string]bool, backupNameLength int) bool {
	if strings.HasPrefix(objectName, utility.BaseBackupPath) &&
		len(objectName) >= len(utility.BaseBackupPath)+backupNameLength {
		backup := objectName[len(utility.BaseBackupPath) : len(utility.BaseBackupPath)+backupNameLength]
		return permanentBackups[backup]
	}
	// impermanent backup or binlogs
	return false
}