gaulthiergain-tools/srcs/common/data.go

36 lines
1.2 KiB
Go
Raw Normal View History

2020-09-16 09:14:26 +02:00
// Copyright 2019 The UNICORE Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file
//
// Author: Gaulthier Gain <gaulthier.gain@uliege.be>
package common
2023-03-15 11:29:53 +01:00
// Exported struct that represents static, dynamic and sources data.
2020-09-16 09:14:26 +02:00
type Data struct {
StaticData StaticData `json:"static_data"`
DynamicData DynamicData `json:"dynamic_data"`
2023-03-15 11:29:53 +01:00
SourcesData SourcesData `json:"sources_data"`
2020-09-16 09:14:26 +02:00
}
// Exported struct that represents data for static dependency analysis.
type StaticData struct {
SharedLibs map[string][]string `json:"shared_libs"`
SystemCalls map[string]int `json:"system_calls"`
2020-09-16 09:14:26 +02:00
Symbols map[string]string `json:"symbols"`
2022-09-09 11:43:03 +02:00
Dependencies map[string][]string `json:"dependencies"`
2020-09-16 09:14:26 +02:00
}
// Exported struct that represents data for dynamic dependency analysis.
type DynamicData struct {
SharedLibs map[string][]string `json:"shared_libs"`
SystemCalls map[string]int `json:"system_calls"`
2020-09-16 09:14:26 +02:00
Symbols map[string]string `json:"symbols"`
}
2023-03-15 11:29:53 +01:00
// Exported struct that represents data for sources dependency analysis.
type SourcesData struct {
SystemCalls map[string]int `json:"system_calls"`
Symbols map[string]string `json:"symbols"`
}