Skip to content

Commit 969bb43

Browse files
authored
Change license to AGPLv3-or-later (#33)
Add a LICENSE and AUTHORS file, and add the copyright header to all relevant files (mainly Python and Go files). See issue #10 for more details.
1 parent e1e1825 commit 969bb43

File tree

85 files changed

+1164
-47
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+1164
-47
lines changed

AUTHORS

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# This is the list of DFaaS's significant contributors. To see the full list of
2+
# contributors, see the revision history in the Git repository.
3+
Alessandro Tundo
4+
Emanuele Petriglia
5+
Luca Cavenaghi
6+
Mattia Vincenzi
7+
Michele Ciavotta
8+
Nicolas Calmi
9+
Stefano Cattaneo

LICENSE

+661
Large diffs are not rendered by default.

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -201,3 +201,13 @@ The simulation code is available into the [simulation directory](simulation).
201201
Data gathered by the DFaaS system used for simulation are available [here](simulation/data).
202202

203203
For more information read associated [README](simulation/README.md) file.
204+
205+
## License
206+
207+
Copyright © 2021-2025 The DFaaS Authors.
208+
209+
The source code in this repository is licensed under the GNU Affero General Public License (AGPL), version 2.0 or later. See the [LICENSE](LICENSE) file for more information.
210+
211+
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
212+
213+
The complete list of The DFaaS Authors can be fond in the [AUTHORS](AUTHORS) file or in the [contributors page](https://github.com/unimib-datAI/dfaas/graphs/contributors) on the DFaaS GitHub repository.

dfaasagent/agent/agent.go

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// SPDX-License-Identifier: AGPL-3.0-or-later
2+
// Copyright 2021-2025 The DFaaS Authors. All rights reserved.
3+
// This file is licensed under the AGPL v3.0 or later license. See LICENSE and
4+
// AUTHORS file for more information.
5+
16
package agent
27

38
import (

dfaasagent/agent/communication/communication.go

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
// SPDX-License-Identifier: AGPL-3.0-or-later
2+
// Copyright 2021-2025 The DFaaS Authors. All rights reserved.
3+
// This file is licensed under the AGPL v3.0 or later license. See LICENSE and
4+
// AUTHORS file for more information.
5+
6+
// This package handles the p2p communication with PubSub
17
package communication
28

39
import (
@@ -8,8 +14,6 @@ import (
814
"github.com/pkg/errors"
915
)
1016

11-
// This package handles the p2p communication with PubSub
12-
1317
//////////////////// PUBLIC TYPES ////////////////////
1418

1519
// CBOnReceived represents a callback function called when a pubsub message is

dfaasagent/agent/config/config.go

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// SPDX-License-Identifier: AGPL-3.0-or-later
2+
// Copyright 2021-2025 The DFaaS Authors. All rights reserved.
3+
// This file is licensed under the AGPL v3.0 or later license. See LICENSE and
4+
// AUTHORS file for more information.
5+
16
package config
27

38
import (

dfaasagent/agent/constants/constants.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
package constants
1+
// SPDX-License-Identifier: AGPL-3.0-or-later
2+
// Copyright 2021-2025 The DFaaS Authors. All rights reserved.
3+
// This file is licensed under the AGPL v3.0 or later license. See LICENSE and
4+
// AUTHORS file for more information.
25

36
// This package contains only some constants
7+
package constants
48

59
const (
610
// HAProxyMaxWeight is the maximum possible weight value that should be used

dfaasagent/agent/discovery/kademlia/kademlia.go

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
// SPDX-License-Identifier: AGPL-3.0-or-later
2+
// Copyright 2021-2025 The DFaaS Authors. All rights reserved.
3+
// This file is licensed under the AGPL v3.0 or later license. See LICENSE and
4+
// AUTHORS file for more information.
5+
6+
// This package handles the Kademlia peer discovery process
17
package kademlia
28

39
import (
@@ -15,8 +21,6 @@ import (
1521
"gitlab.com/team-dfaas/dfaas/node-stack/dfaasagent/agent/logging"
1622
)
1723

18-
// This package handles the Kademlia peer discovery process
19-
2024
type BootstrapConfiguration struct {
2125
BootstrapNodes bool
2226
PublicBootstrapNodes bool

dfaasagent/agent/discovery/mdns/mdns.go

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
// SPDX-License-Identifier: AGPL-3.0-or-later
2+
// Copyright 2021-2025 The DFaaS Authors. All rights reserved.
3+
// This file is licensed under the AGPL v3.0 or later license. See LICENSE and
4+
// AUTHORS file for more information.
5+
6+
// This package handles the mDNS peer discovery process
17
package mdns
28

39
import (
@@ -11,8 +17,6 @@ import (
1117
"gitlab.com/team-dfaas/dfaas/node-stack/dfaasagent/agent/logging"
1218
)
1319

14-
// This package handles the mDNS peer discovery process
15-
1620
// mDNSDiscNotifee is a data structure that will be used as a "notifier" for the
1721
// mDNS discovery service. It must implement the discovery.Notifee interface
1822
type mDNSDiscNotifee struct {

dfaasagent/agent/hacfgupd/hacfgupd.go

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
// SPDX-License-Identifier: AGPL-3.0-or-later
2+
// Copyright 2021-2025 The DFaaS Authors. All rights reserved.
3+
// This file is licensed under the AGPL v3.0 or later license. See LICENSE and
4+
// AUTHORS file for more information.
5+
6+
// This package handles the HAProxy ConFiGuration UPDate process (caps are the
7+
// meaning of the acronym)
18
package hacfgupd
29

310
import (
@@ -10,9 +17,6 @@ import (
1017
"github.com/pkg/errors"
1118
)
1219

13-
// This package handles the HAProxy ConFiGuration UPDate process (caps are the
14-
// meaning of the acronym)
15-
1620
// updateStdoutDebugLogging decides wheather to enable or disable stdout logging
1721
// for the CmdOnUpdated command
1822
const updateStdoutDebugLogging = false

dfaasagent/agent/httpserver/httpserver.go

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
// SPDX-License-Identifier: AGPL-3.0-or-later
2+
// Copyright 2021-2025 The DFaaS Authors. All rights reserved.
3+
// This file is licensed under the AGPL v3.0 or later license. See LICENSE and
4+
// AUTHORS file for more information.
5+
6+
// This package handles a web server to expose endpoints on the agent (e.g.
7+
// endpoint for DFaaS node healthcheck)
18
package httpserver
29

310
import (
@@ -10,8 +17,6 @@ import (
1017
"gitlab.com/team-dfaas/dfaas/node-stack/dfaasagent/agent/infogath/forecaster"
1118
)
1219

13-
// This package handles a web server to expose endpoints on the agent (e.g. endpoint for DFaaS node healthcheck)
14-
1520
//////////////////// MAIN PRIVATE VARS AND INIT FUNCTION ////////////////////
1621

1722
var _config config.Configuration
@@ -82,4 +87,4 @@ func healthCheckOpenFaaS() (string, error) {
8287
defer resp.Body.Close()
8388

8489
return resp.Status, nil
85-
}
90+
}

dfaasagent/agent/infogath/forecaster/forecaster.go

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
// SPDX-License-Identifier: AGPL-3.0-or-later
2+
// Copyright 2021-2025 The DFaaS Authors. All rights reserved.
3+
// This file is licensed under the AGPL v3.0 or later license. See LICENSE and
4+
// AUTHORS file for more information.
5+
6+
// Package for sending requests to Forecaster to get predictions about the usage
7+
// metrics of the node (e.g. CPU, RAM, power consumption).
18
package forecaster
29

310
import (
@@ -9,8 +16,6 @@ import (
916
"github.com/pkg/errors"
1017
)
1118

12-
// Package for sending requests to Forecaster to get predictions about the usage metrics of the node (e.g. CPU, RAM, power consumption).
13-
1419
// Available endpoints on Forecaster
1520
const root_endpoint = ""
1621
const node_usage_endpoint = "node_usage"

dfaasagent/agent/infogath/hasock/hasock.go

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// SPDX-License-Identifier: AGPL-3.0-or-later
2+
// Copyright 2021-2025 The DFaaS Authors. All rights reserved.
3+
// This file is licensed under the AGPL v3.0 or later license. See LICENSE and
4+
// AUTHORS file for more information.
5+
16
package hasock
27

38
import (

dfaasagent/agent/infogath/offuncs/offuncs.go

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
// SPDX-License-Identifier: AGPL-3.0-or-later
2+
// Copyright 2021-2025 The DFaaS Authors. All rights reserved.
3+
// This file is licensed under the AGPL v3.0 or later license. See LICENSE and
4+
// AUTHORS file for more information.
5+
6+
// This package is for getting the functions list from the local OpenFaaS
7+
// cluster.
18
package offuncs
29

310
import (
@@ -10,9 +17,6 @@ import (
1017
"github.com/pkg/errors"
1118
)
1219

13-
// This package is for getting the functions list from the local OpenFaaS
14-
// cluster.
15-
1620
/*
1721
Example of response from "/system/functions":
1822

dfaasagent/agent/infogath/ofpromq/ofpromq.go

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
// SPDX-License-Identifier: AGPL-3.0-or-later
2+
// Copyright 2021-2025 The DFaaS Authors. All rights reserved.
3+
// This file is licensed under the AGPL v3.0 or later license. See LICENSE and
4+
// AUTHORS file for more information.
5+
6+
// This package is for communicating with a Prometheus instance of an OpenFaaS
7+
// cluster. The name of the package stands for: OpenFaas PROMetheus Querent.
18
package ofpromq
29

310
import (
@@ -13,9 +20,6 @@ import (
1320
"github.com/pkg/errors"
1421
)
1522

16-
// This package is for communicating with a Prometheus instance of an OpenFaaS
17-
// cluster. The name of the package stands for: OpenFaas PROMetheus Querent.
18-
1923
// Client for gathering information from Prometheus
2024
type Client struct {
2125
Hostname string

dfaasagent/agent/loadbalancer/dbglogging.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// SPDX-License-Identifier: AGPL-3.0-or-later
2+
// Copyright 2021-2025 The DFaaS Authors. All rights reserved.
3+
// This file is licensed under the AGPL v3.0 or later license. See LICENSE and
4+
// AUTHORS file for more information.
5+
16
package loadbalancer
27

38
import (
@@ -470,4 +475,4 @@ func debugWeightsNMS(weights map[string]map[string]uint) {
470475
logger.Debugf(" - Node " + node + ": " + "%d", weight)
471476
}
472477
}
473-
}
478+
}

dfaasagent/agent/loadbalancer/groupsreader.go

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// SPDX-License-Identifier: AGPL-3.0-or-later
2+
// Copyright 2021-2025 The DFaaS Authors. All rights reserved.
3+
// This file is licensed under the AGPL v3.0 or later license. See LICENSE and
4+
// AUTHORS file for more information.
5+
16
package loadbalancer
27

38
import (

dfaasagent/agent/loadbalancer/hacfgtypes.go

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// SPDX-License-Identifier: AGPL-3.0-or-later
2+
// Copyright 2021-2025 The DFaaS Authors. All rights reserved.
3+
// This file is licensed under the AGPL v3.0 or later license. See LICENSE and
4+
// AUTHORS file for more information.
5+
16
package loadbalancer
27

38
import (

dfaasagent/agent/loadbalancer/loadbalancer.go

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
// SPDX-License-Identifier: AGPL-3.0-or-later
2+
// Copyright 2021-2025 The DFaaS Authors. All rights reserved.
3+
// This file is licensed under the AGPL v3.0 or later license. See LICENSE and
4+
// AUTHORS file for more information.
5+
6+
// This package handles the main operational logic of the DFaaSAgent application
17
package loadbalancer
28

39
import (
@@ -9,8 +15,6 @@ import (
915
"gitlab.com/team-dfaas/dfaas/node-stack/dfaasagent/agent/constants"
1016
)
1117

12-
// This package handles the main operational logic of the DFaaSAgent application
13-
1418
//////////////////// MAIN PRIVATE VARS AND INIT FUNCTION ////////////////////
1519

1620
var _p2pHost host.Host

dfaasagent/agent/loadbalancer/msgtypes.go

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// SPDX-License-Identifier: AGPL-3.0-or-later
2+
// Copyright 2021-2025 The DFaaS Authors. All rights reserved.
3+
// This file is licensed under the AGPL v3.0 or later license. See LICENSE and
4+
// AUTHORS file for more information.
5+
16
package loadbalancer
27

38
import (

dfaasagent/agent/loadbalancer/nodemarginstrategy.go

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// SPDX-License-Identifier: AGPL-3.0-or-later
2+
// Copyright 2021-2025 The DFaaS Authors. All rights reserved.
3+
// This file is licensed under the AGPL v3.0 or later license. See LICENSE and
4+
// AUTHORS file for more information.
5+
16
package loadbalancer
27

38
import (

dfaasagent/agent/loadbalancer/recalcstrategy.go

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// SPDX-License-Identifier: AGPL-3.0-or-later
2+
// Copyright 2021-2025 The DFaaS Authors. All rights reserved.
3+
// This file is licensed under the AGPL v3.0 or later license. See LICENSE and
4+
// AUTHORS file for more information.
5+
16
package loadbalancer
27

38
import (

dfaasagent/agent/loadbalancer/strategyfactory.go

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// SPDX-License-Identifier: AGPL-3.0-or-later
2+
// Copyright 2021-2025 The DFaaS Authors. All rights reserved.
3+
// This file is licensed under the AGPL v3.0 or later license. See LICENSE and
4+
// AUTHORS file for more information.
5+
16
package loadbalancer
27

38
import (

dfaasagent/agent/logging/logging.go

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
// SPDX-License-Identifier: AGPL-3.0-or-later
2+
// Copyright 2021-2025 The DFaaS Authors. All rights reserved.
3+
// This file is licensed under the AGPL v3.0 or later license. See LICENSE and
4+
// AUTHORS file for more information.
5+
6+
// This packages handles logging in dfaasagent
17
package logging
28

39
import (
@@ -9,8 +15,6 @@ import (
915
"go.uber.org/zap/zapcore"
1016
)
1117

12-
// This packages handles logging in dfaasagent
13-
1418
var _zapConfig zap.Config
1519
var _zapLogger *zap.SugaredLogger
1620

dfaasagent/agent/nodestbl/init.go

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1+
// SPDX-License-Identifier: AGPL-3.0-or-later
2+
// Copyright 2021-2025 The DFaaS Authors. All rights reserved.
3+
// This file is licensed under the AGPL v3.0 or later license. See LICENSE and
4+
// AUTHORS file for more information.
5+
6+
// This package is for handling the information about the other nodes in the
7+
// network, such as the max rate limits and the address and port of the relative
8+
// HAProxy server instance
19
package nodestbl
210

311
import (
412
"gitlab.com/team-dfaas/dfaas/node-stack/dfaasagent/agent/config"
513
)
614

7-
// This package is for handling the information about the other nodes in the
8-
// network, such as the max rate limits and the address and port of the relative
9-
// HAProxy server instance
10-
1115
//////////////////// MAIN PRIVATE VARS AND INIT FUNCTION ////////////////////
1216

1317
var _config config.Configuration

dfaasagent/agent/nodestbl/nodestblnms.go

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// SPDX-License-Identifier: AGPL-3.0-or-later
2+
// Copyright 2021-2025 The DFaaS Authors. All rights reserved.
3+
// This file is licensed under the AGPL v3.0 or later license. See LICENSE and
4+
// AUTHORS file for more information.
5+
16
package nodestbl
27

38
import (

dfaasagent/agent/nodestbl/nodestblrecalc.go

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// SPDX-License-Identifier: AGPL-3.0-or-later
2+
// Copyright 2021-2025 The DFaaS Authors. All rights reserved.
3+
// This file is licensed under the AGPL v3.0 or later license. See LICENSE and
4+
// AUTHORS file for more information.
5+
16
package nodestbl
27

38
import (

dfaasagent/agent/utils/maddrhelp/maddrhelp.go

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
// SPDX-License-Identifier: AGPL-3.0-or-later
2+
// Copyright 2021-2025 The DFaaS Authors. All rights reserved.
3+
// This file is licensed under the AGPL v3.0 or later license. See LICENSE and
4+
// AUTHORS file for more information.
5+
6+
// This package contains some helper for multiaddresses
17
package maddrhelp
28

39
import (
@@ -8,8 +14,6 @@ import (
814
"github.com/multiformats/go-multiaddr"
915
)
1016

11-
// This package contains some helper for multiaddresses
12-
1317
// BuildHostFullMAddrs given a libp2p Host, returns a list containing full
1418
// multiaddresses that can be used by another agent to reach this host. For
1519
// example, "/ip4/10.0.2.15/tcp/35443/p2p/QmeEe5wmo4Ywi6FvLdbAJdEoV6V4r9tsgMsnTCbMy3gKEm"

0 commit comments

Comments
 (0)