package packs

import "strings"

// ActivePackBackfillOptions carries one distribution-owned registration
// snapshot and the packs whose legacy ownership cleanup is deferred to their
// already-planned component apply.
type ActivePackBackfillOptions struct {
	ComponentKindRegistrationSet ComponentKindRegistrationSet
	DeferredPackNames            map[string]struct{}
}

func (options ActivePackBackfillOptions) defers(packName string) bool {
	_, ok := options.DeferredPackNames[strings.ToLower(strings.TrimSpace(packName))]
	return ok
}
