func WithTargetFilter(targetFilter TargetFilter) Option {
	return func(opts *Opts) error {
		opts.TargetFilter = targetFilter
		return nil
	}
}
WithTargetFilter encapsulates  resmgmtclient TargetFilter targets to resmgmtclient Option
package resmgmtclient
import (
	"time"
	fab "github.com/hyperledger/fabric-sdk-go/api/apifabclient"
)
func WithTargets(targets ...fab.Peer) Option {
	return func(opts *Opts) error {
		opts.Targets = targets
		return nil
	}
}