func (er EgressRule) GetProfileKeyValues(cookie keyvalue.Cookie, action interface{}) ([]*keyvalue.KeyValue, error) {
	rep := []*keyvalue.KeyValue{}
	dnsKeys, err := er.GetDNSKeys(cookie, kernel.Egress, action)
	if err != nil {
		return nil, err
	}
	rep = append(rep, dnsKeys...)
	rep = append(rep, er.L3.GetProfileKeyValues(cookie, kernel.Egress, action)...)
	rep = append(rep, er.L4.GetProfileKeyValues(cookie, kernel.Egress, action)...)
	l7Keys, err := er.L7.GetProfileKeyValues(cookie, kernel.Egress, action)
	if err != nil {
		return nil, err
	}
	rep = append(rep, l7Keys...)
	return rep, nil
}
// GetProfileKeyValues - Returns the profile key-values of the EgressRule
Returns the profile key-values of the EgressRule
// GetProfileKeyValues - Returns the profile key - values of the EgressRule
func (er EgressRule) GetProfileKeyValues(cookie keyvalue.Cookie, action interface{}) ([]*keyvalue.KeyValue, error) {
	rep := []*keyvalue.KeyValue{}
	dnsKeys, err := er.GetDNSKeys(cookie, kernel.Egress, action)
	if err != nil {
		return nil, err
	}
	rep = append(rep, dnsKeys...)
	rep = append(rep, er.L3.GetProfileKeyValues(cookie, kernel.Egress, action)...)
	rep = append(rep, er.L4.GetProfileKeyValues(cookie, kernel.Egress, action)...)
	l7Keys, err := er.L7.GetProfileKeyValues(cookie, kernel.Egress, action)
	if err != nil {
		return nil, err
	}
	rep = append(rep, l7Keys...)
	return rep, nil
}
func ( er EgressRule ) GetProfileKeyValues ( cookie keyvalue . Cookie , action interface { } ) ( [ ] * keyvalue . KeyValue , error ) { rep := [ ] * keyvalue . KeyValue { } dnsKeys , err := er . GetDNSKeys ( cookie , kernel . Egress , action ) if err != nil { return nil , err } rep = append ( rep , dnsKeys ... ) rep = append ( rep , er . L3 . GetProfileKeyValues ( cookie , kernel . Egress , action ) ... ) rep = append ( rep , er . L4 . GetProfileKeyValues ( cookie , kernel . Egress , action ) ... ) l7Keys , err := er . L7 . GetProfileKeyValues ( cookie , kernel . Egress , action ) if err != nil { return nil , err } rep = append ( rep , l7Keys ... ) return rep , nil }
Returns the profile key-values of the EgressRule
Returns the profile key - values of the EgressRule