// FilterTarget implements the Filter.
FilterTarget implements the Filter.
// FilterTarget implements the Filter .
func (f *kindFilter) Target(opt opt.Options, store *core.StoreInfo) bool {
	storageMedium := store.GetStorageMedium()
	architecture := store.GetArchitecture()
	for key, value := range f.kindCondition {
		switch {
			case key == "storageMedium" :
				if !FitIn(storageMedium, value) {
					return true
				}
			case key == "architecture" :
				if !FitIn(architecture, value) {
					return true
				}
		}
	}
	return false
}
func ( f * kindFilter ) Target ( opt opt . Options , store * core . StoreInfo ) bool { storageMedium := store . GetStorageMedium ( ) architecture := store . GetArchitecture ( ) for key , value := range f . kindCondition { switch { case key == " " : if ! FitIn ( storageMedium , value ) { return true } case key == " " : if ! FitIn ( architecture , value ) { return true } } } return false }
FilterTarget implements the Filter.
FilterTarget implements the Filter .
//fmt.Printf("store: %d - storageMedium: %s - architecture: %s\n", store.GetID(), storageMedium, architecture) //fmt.Printf("kindCondition - storageMedium: %s\n", value) //fmt.Printf("[kindFilter] filt target - store %d\n", store.GetID()) //fmt.Printf("kindCondition - architecture: %s\n", value) //fmt.Printf("[kindFilter] filt target - store %d\n", store.GetID()) //fmt.Printf("[kindFilter] pass target - store %d\n", store.GetID())