func (er EgressRule) GetDNSKeys(cookie keyvalue.Cookie, trafficType kernel.TrafficType, action interface{}) ([]*keyvalue.KeyValue, error) {
	var err error
	rep := []*keyvalue.KeyValue{}
	for _, fqdn := range er.FQDNs {
		kv := keyvalue.KeyValue{
			Value: action,
		}
		if kv.Key, err = keyvalue.NewDNSKey(
			trafficType,
			cookie,
			3,
			fqdn,
		); err != nil {
			return nil, err
		}
		rep = append(rep, &kv)
	}
	return rep, nil
}
// GetDNSKeys - Returns the DNS keys for this rule
Returns the DNS keys for this rule
// GetDNSKeys - Returns the DNS keys for this rule
func (er EgressRule) GetDNSKeys(cookie keyvalue.Cookie, trafficType kernel.TrafficType, action interface{}) ([]*keyvalue.KeyValue, error) {
	var err error
	rep := []*keyvalue.KeyValue{}
	for _, fqdn := range er.FQDNs {
		kv := keyvalue.KeyValue{
			Value: action,
		}
		if kv.Key, err = keyvalue.NewDNSKey(
			trafficType,
			cookie,
			3,
			fqdn,
		); err != nil {
			return nil, err
		}
		rep = append(rep, &kv)
	}
	return rep, nil
}
func ( er EgressRule ) GetDNSKeys ( cookie keyvalue . Cookie , trafficType kernel . TrafficType , action interface { } ) ( [ ] * keyvalue . KeyValue , error ) { var err error rep := [ ] * keyvalue . KeyValue { } for _ , fqdn := range er . FQDNs { kv := keyvalue . KeyValue { Value : action , } if kv . Key , err = keyvalue . NewDNSKey ( trafficType , cookie , 3 , fqdn , ) ; err != nil { return nil , err } rep = append ( rep , & kv ) } return rep , nil }
Returns the DNS keys for this rule
Returns the DNS keys for this rule