func (sps SecurityProfileSpec) GetProfileKeyValues() ([]*keyvalue.KeyValue, error) {
	rep := []*keyvalue.KeyValue{
		sps.GetNetworkAttacksKeyValue(),
		sps.GetActionKeyValue(),
	}
	action := keyvalue.SecurityProfileActionValue{
		Action: sps.GetActionFlag(),
	}
	defaultKeys, err := sps.DefaultNetworkPolicy.GetProfileKeyValues(sps.securityProfileID, action)
	if err != nil {
		return nil, err
	}
	rep = append(rep, defaultKeys...)
	for _, pp := range sps.ProcessProfiles {
		profileKeys, err := pp.NetworkPolicy.GetProfileKeyValues(pp.binaryPathID, action)
		if err != nil {
			return nil, err
		}
		rep = append(rep, profileKeys...)
	}
	pathKeys, err := sps.GetProfilePathsKeyValues()
	if err != nil {
		return nil, err
	}
	rep = append(rep, pathKeys...)
	return rep, nil
}
// GetProfileKeyValues - Returns the profile key-values of the security profile
Returns the profile key-values of the security profile
// GetProfileKeyValues - Returns the profile key - values of the security profile
func (sps SecurityProfileSpec) GetProfileKeyValues() ([]*keyvalue.KeyValue, error) {
	rep := []*keyvalue.KeyValue{
		sps.GetNetworkAttacksKeyValue(),
		sps.GetActionKeyValue(),
	}
	action := keyvalue.SecurityProfileActionValue{
		Action: sps.GetActionFlag(),
	}
	defaultKeys, err := sps.DefaultNetworkPolicy.GetProfileKeyValues(sps.securityProfileID, action)
	if err != nil {
		return nil, err
	}
	rep = append(rep, defaultKeys...)
	for _, pp := range sps.ProcessProfiles {
		profileKeys, err := pp.NetworkPolicy.GetProfileKeyValues(pp.binaryPathID, action)
		if err != nil {
			return nil, err
		}
		rep = append(rep, profileKeys...)
	}
	pathKeys, err := sps.GetProfilePathsKeyValues()
	if err != nil {
		return nil, err
	}
	rep = append(rep, pathKeys...)
	return rep, nil
}
func ( sps SecurityProfileSpec ) GetProfileKeyValues ( ) ( [ ] * keyvalue . KeyValue , error ) { rep := [ ] * keyvalue . KeyValue { sps . GetNetworkAttacksKeyValue ( ) , sps . GetActionKeyValue ( ) , } action := keyvalue . SecurityProfileActionValue { Action : sps . GetActionFlag ( ) , } defaultKeys , err := sps . DefaultNetworkPolicy . GetProfileKeyValues ( sps . securityProfileID , action ) if err != nil { return nil , err } rep = append ( rep , defaultKeys ... ) for _ , pp := range sps . ProcessProfiles { profileKeys , err := pp . NetworkPolicy . GetProfileKeyValues ( pp . binaryPathID , action ) if err != nil { return nil , err } rep = append ( rep , profileKeys ... ) } pathKeys , err := sps . GetProfilePathsKeyValues ( ) if err != nil { return nil , err } rep = append ( rep , pathKeys ... ) return rep , nil }
Returns the profile key-values of the security profile
Returns the profile key - values of the security profile