func (np NetworkPolicy) GetProfileKeyValues(cookie keyvalue.Cookie, action interface{}) ([]*keyvalue.KeyValue, error) {
	rep := []*keyvalue.KeyValue{}
	egressKeys, err := np.Egress.GetProfileKeyValues(cookie, action)
	if err != nil {
		return nil, err
	}
	rep = append(rep, egressKeys...)
	ingressKeys, err := np.Ingress.GetProfileKeyValues(cookie, action)
	if err != nil {
		return nil, err
	}
	rep = append(rep, ingressKeys...)
	return rep, nil
}
// GetProfileKeyValues - Returns the profile key-values of the network policy
Returns the profile key-values of the network policy
// GetProfileKeyValues - Returns the profile key - values of the network policy
func (np NetworkPolicy) GetProfileKeyValues(cookie keyvalue.Cookie, action interface{}) ([]*keyvalue.KeyValue, error) {
	rep := []*keyvalue.KeyValue{}
	egressKeys, err := np.Egress.GetProfileKeyValues(cookie, action)
	if err != nil {
		return nil, err
	}
	rep = append(rep, egressKeys...)
	ingressKeys, err := np.Ingress.GetProfileKeyValues(cookie, action)
	if err != nil {
		return nil, err
	}
	rep = append(rep, ingressKeys...)
	return rep, nil
}
func ( np NetworkPolicy ) GetProfileKeyValues ( cookie keyvalue . Cookie , action interface { } ) ( [ ] * keyvalue . KeyValue , error ) { rep := [ ] * keyvalue . KeyValue { } egressKeys , err := np . Egress . GetProfileKeyValues ( cookie , action ) if err != nil { return nil , err } rep = append ( rep , egressKeys ... ) ingressKeys , err := np . Ingress . GetProfileKeyValues ( cookie , action ) if err != nil { return nil , err } rep = append ( rep , ingressKeys ... ) return rep , nil }
Returns the profile key-values of the network policy
Returns the profile key - values of the network policy