Skip to content

Commit 047a3c7

Browse files
chore: synced file(s) with orange-cloudavenue/workflows (#184)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 65450db commit 047a3c7

File tree

87 files changed

+879
-32
lines changed

Some content is hidden

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

87 files changed

+879
-32
lines changed

.licenserc.yaml

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
header: # `header` section is configurations for source codes license header.
2+
license:
3+
copyright-owner: Orange # the copyright owner to replace the [owner] in the `spdx-id` template.
4+
spdx-id: MPL-2.0
5+
content: |
6+
SPDX-FileCopyrightText: Copyright (c) [year] [owner]
7+
SPDX-License-Identifier: Mozilla Public License 2.0
8+
9+
This software is distributed under the MPL-2.0 license.
10+
the text of which is available at https://www.mozilla.org/en-US/MPL/2.0/
11+
or see the "LICENSE" file for more details.
12+
13+
pattern: |
14+
SPDX-FileCopyrightText: Copyright (c) [year] [owner]
15+
SPDX-License-Identifier: Mozilla Public License 2.0
16+
17+
This software is distributed under the MPL-2.0 license.
18+
the text of which is available at https://www.mozilla.org/en-US/MPL/2.0/
19+
or see the "LICENSE" file for more details.
20+
21+
paths: # `paths` are the path list that will be checked (and fixed) by license-eye, default is ['**'].
22+
- '**'
23+
24+
paths-ignore: # `paths-ignore` are the path list that will be ignored by license-eye.
25+
- 'dist'
26+
- 'licenses'
27+
- '**/*.md'
28+
- '**/testdata/**'
29+
- '**/go.mod'
30+
- '**/go.sum'
31+
- 'LICENSE'
32+
- 'LICENCE'
33+
- 'NOTICE'
34+
- '**/**.svg'
35+
- "**/zz_generated.*.go"
36+
- "GNUmakefile"
37+
- "Makefile"
38+
- "**/*.json"
39+
- ".gitignore"
40+
- "**/*.tmpl"
41+
- "**/*.tf"
42+
- ".changelog/"
43+
- ".archive/"
44+
- ".github/"
45+
- ".vscode/"
46+
- "**/*.code-snippets"
47+
- ".github"
48+
- ".pre-commit"
49+
- ".licenserc.yaml"
50+
- ".golangci.yml"
51+
- ".pre-commit-config.yaml"
52+
- "mkdocs.yml"
53+
54+
comment: on-failure # on what condition license-eye will comment on the pull request, `on-failure`, `always`, `never`.
55+
56+
# license-location-threshold specifies the index threshold where the license header can be located,
57+
# after all, a "header" cannot be TOO far from the file start.
58+
license-location-threshold: 80
59+
60+
language:
61+
Go:
62+
extensions:
63+
- ".go"
64+
comment_style_id: SlashAsterisk
65+
YAML:
66+
extensions:
67+
- ".yml"
68+
- ".yaml"
69+
comment_style_id: Hashtag
70+

LICENCE LICENSE

+44-32
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Mozilla Public License Version 2.0
22
==================================
33

44
1. Definitions
5+
56
--------------
67

78
1.1. "Contributor"
@@ -84,6 +85,7 @@ Mozilla Public License Version 2.0
8485
ownership of such entity.
8586

8687
2. License Grants and Conditions
88+
8789
--------------------------------
8890

8991
2.1. Grants
@@ -155,6 +157,7 @@ Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
155157
in Section 2.1.
156158

157159
3. Responsibilities
160+
158161
-------------------
159162

160163
3.1. Distribution of Source Form
@@ -217,6 +220,7 @@ disclaimers of warranty and limitations of liability specific to any
217220
jurisdiction.
218221

219222
4. Inability to Comply Due to Statute or Regulation
223+
220224
---------------------------------------------------
221225

222226
If it is impossible for You to comply with any of the terms of this
@@ -230,6 +234,7 @@ or regulation, such description must be sufficiently detailed for a
230234
recipient of ordinary skill to be able to understand it.
231235

232236
5. Termination
237+
233238
--------------
234239

235240
5.1. The rights granted under this License will terminate automatically
@@ -259,48 +264,53 @@ have been validly granted by You or Your distributors under this License
259264
prior to termination shall survive termination.
260265

261266
************************************************************************
267+
262268
* *
263-
* 6. Disclaimer of Warranty *
264-
* ------------------------- *
269+
* 6. Disclaimer of Warranty *
270+
* ------------------------- *
265271
* *
266-
* Covered Software is provided under this License on an "as is" *
267-
* basis, without warranty of any kind, either expressed, implied, or *
268-
* statutory, including, without limitation, warranties that the *
269-
* Covered Software is free of defects, merchantable, fit for a *
270-
* particular purpose or non-infringing. The entire risk as to the *
271-
* quality and performance of the Covered Software is with You. *
272-
* Should any Covered Software prove defective in any respect, You *
273-
* (not any Contributor) assume the cost of any necessary servicing, *
274-
* repair, or correction. This disclaimer of warranty constitutes an *
275-
* essential part of this License. No use of any Covered Software is *
276-
* authorized under this License except under this disclaimer. *
272+
* Covered Software is provided under this License on an "as is" *
273+
* basis, without warranty of any kind, either expressed, implied, or *
274+
* statutory, including, without limitation, warranties that the *
275+
* Covered Software is free of defects, merchantable, fit for a *
276+
* particular purpose or non-infringing. The entire risk as to the *
277+
* quality and performance of the Covered Software is with You. *
278+
* Should any Covered Software prove defective in any respect, You *
279+
* (not any Contributor) assume the cost of any necessary servicing, *
280+
* repair, or correction. This disclaimer of warranty constitutes an *
281+
* essential part of this License. No use of any Covered Software is *
282+
* authorized under this License except under this disclaimer. *
277283
* *
284+
278285
************************************************************************
279286

280287
************************************************************************
288+
281289
* *
282-
* 7. Limitation of Liability *
283-
* -------------------------- *
290+
* 7. Limitation of Liability *
291+
* -------------------------- *
284292
* *
285-
* Under no circumstances and under no legal theory, whether tort *
286-
* (including negligence), contract, or otherwise, shall any *
287-
* Contributor, or anyone who distributes Covered Software as *
288-
* permitted above, be liable to You for any direct, indirect, *
289-
* special, incidental, or consequential damages of any character *
290-
* including, without limitation, damages for lost profits, loss of *
291-
* goodwill, work stoppage, computer failure or malfunction, or any *
292-
* and all other commercial damages or losses, even if such party *
293-
* shall have been informed of the possibility of such damages. This *
294-
* limitation of liability shall not apply to liability for death or *
295-
* personal injury resulting from such party's negligence to the *
296-
* extent applicable law prohibits such limitation. Some *
297-
* jurisdictions do not allow the exclusion or limitation of *
298-
* incidental or consequential damages, so this exclusion and *
299-
* limitation may not apply to You. *
293+
* Under no circumstances and under no legal theory, whether tort *
294+
* (including negligence), contract, or otherwise, shall any *
295+
* Contributor, or anyone who distributes Covered Software as *
296+
* permitted above, be liable to You for any direct, indirect, *
297+
* special, incidental, or consequential damages of any character *
298+
* including, without limitation, damages for lost profits, loss of *
299+
* goodwill, work stoppage, computer failure or malfunction, or any *
300+
* and all other commercial damages or losses, even if such party *
301+
* shall have been informed of the possibility of such damages. This *
302+
* limitation of liability shall not apply to liability for death or *
303+
* personal injury resulting from such party's negligence to the *
304+
* extent applicable law prohibits such limitation. Some *
305+
* jurisdictions do not allow the exclusion or limitation of *
306+
* incidental or consequential damages, so this exclusion and *
307+
* limitation may not apply to You. *
300308
* *
309+
301310
************************************************************************
302311

303312
8. Litigation
313+
304314
-------------
305315

306316
Any litigation relating to this License may be brought only in the
@@ -311,6 +321,7 @@ Nothing in this Section shall prevent a party's ability to bring
311321
cross-claims or counter-claims.
312322

313323
9. Miscellaneous
324+
314325
----------------
315326

316327
This License represents the complete agreement concerning the subject
@@ -321,6 +332,7 @@ that the language of a contract shall be construed against the drafter
321332
shall not be used to construe this License against a Contributor.
322333

323334
10. Versions of the License
335+
324336
---------------------------
325337

326338
10.1. New Versions
@@ -357,7 +369,7 @@ Exhibit A - Source Code Form License Notice
357369

358370
This Source Code Form is subject to the terms of the Mozilla Public
359371
License, v. 2.0. If a copy of the MPL was not distributed with this
360-
file, You can obtain one at http://mozilla.org/MPL/2.0/.
372+
file, You can obtain one at <http://mozilla.org/MPL/2.0/>.
361373

362374
If it is not possible or desirable to put the notice in a particular
363375
file, then You may include the notice in a location (such as a LICENSE
@@ -370,4 +382,4 @@ Exhibit B - "Incompatible With Secondary Licenses" Notice
370382
---------------------------------------------------------
371383

372384
This Source Code Form is "Incompatible With Secondary Licenses", as
373-
defined by the Mozilla Public License, v. 2.0.
385+
defined by the Mozilla Public License, v. 2.0.

cloudavenue.go

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*
2+
* SPDX-FileCopyrightText: Copyright (c) 2025 Orange
3+
* SPDX-License-Identifier: Mozilla Public License 2.0
4+
*
5+
* This software is distributed under the MPL-2.0 license.
6+
* the text of which is available at https://www.mozilla.org/en-US/MPL/2.0/
7+
* or see the "LICENSE" file for more details.
8+
*/
9+
110
package cloudavenue
211

312
import (

internal/utils/ptr.go

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*
2+
* SPDX-FileCopyrightText: Copyright (c) 2025 Orange
3+
* SPDX-License-Identifier: Mozilla Public License 2.0
4+
*
5+
* This software is distributed under the MPL-2.0 license.
6+
* the text of which is available at https://www.mozilla.org/en-US/MPL/2.0/
7+
* or see the "LICENSE" file for more details.
8+
*/
9+
110
package utils
211

312
// ToPTR is a generic function that takes a value and returns a pointer to it.

pkg/clients/cloudavenue/cloudavenue.go

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*
2+
* SPDX-FileCopyrightText: Copyright (c) 2025 Orange
3+
* SPDX-License-Identifier: Mozilla Public License 2.0
4+
*
5+
* This software is distributed under the MPL-2.0 license.
6+
* the text of which is available at https://www.mozilla.org/en-US/MPL/2.0/
7+
* or see the "LICENSE" file for more details.
8+
*/
9+
110
package clientcloudavenue
211

312
import (

pkg/clients/cloudavenue/org.go

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*
2+
* SPDX-FileCopyrightText: Copyright (c) 2025 Orange
3+
* SPDX-License-Identifier: Mozilla Public License 2.0
4+
*
5+
* This software is distributed under the MPL-2.0 license.
6+
* the text of which is available at https://www.mozilla.org/en-US/MPL/2.0/
7+
* or see the "LICENSE" file for more details.
8+
*/
9+
110
package clientcloudavenue
211

312
import (

pkg/clients/cloudavenue/token.go

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*
2+
* SPDX-FileCopyrightText: Copyright (c) 2025 Orange
3+
* SPDX-License-Identifier: Mozilla Public License 2.0
4+
*
5+
* This software is distributed under the MPL-2.0 license.
6+
* the text of which is available at https://www.mozilla.org/en-US/MPL/2.0/
7+
* or see the "LICENSE" file for more details.
8+
*/
9+
110
package clientcloudavenue
211

312
import (

pkg/clients/consoles/consoles.go

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*
2+
* SPDX-FileCopyrightText: Copyright (c) 2025 Orange
3+
* SPDX-License-Identifier: Mozilla Public License 2.0
4+
*
5+
* This software is distributed under the MPL-2.0 license.
6+
* the text of which is available at https://www.mozilla.org/en-US/MPL/2.0/
7+
* or see the "LICENSE" file for more details.
8+
*/
9+
110
package consoles
211

312
import (

pkg/clients/consoles/consoles_test.go

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*
2+
* SPDX-FileCopyrightText: Copyright (c) 2025 Orange
3+
* SPDX-License-Identifier: Mozilla Public License 2.0
4+
*
5+
* This software is distributed under the MPL-2.0 license.
6+
* the text of which is available at https://www.mozilla.org/en-US/MPL/2.0/
7+
* or see the "LICENSE" file for more details.
8+
*/
9+
110
package consoles
211

312
import (

pkg/clients/model/model.go

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*
2+
* SPDX-FileCopyrightText: Copyright (c) 2025 Orange
3+
* SPDX-License-Identifier: Mozilla Public License 2.0
4+
*
5+
* This software is distributed under the MPL-2.0 license.
6+
* the text of which is available at https://www.mozilla.org/en-US/MPL/2.0/
7+
* or see the "LICENSE" file for more details.
8+
*/
9+
110
package model
211

312
type (

pkg/clients/netbackup/netbackup.go

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*
2+
* SPDX-FileCopyrightText: Copyright (c) 2025 Orange
3+
* SPDX-License-Identifier: Mozilla Public License 2.0
4+
*
5+
* This software is distributed under the MPL-2.0 license.
6+
* the text of which is available at https://www.mozilla.org/en-US/MPL/2.0/
7+
* or see the "LICENSE" file for more details.
8+
*/
9+
110
package clientnetbackup
211

312
import (

pkg/clients/netbackup/netbackup_test.go

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*
2+
* SPDX-FileCopyrightText: Copyright (c) 2025 Orange
3+
* SPDX-License-Identifier: Mozilla Public License 2.0
4+
*
5+
* This software is distributed under the MPL-2.0 license.
6+
* the text of which is available at https://www.mozilla.org/en-US/MPL/2.0/
7+
* or see the "LICENSE" file for more details.
8+
*/
9+
110
package clientnetbackup
211

312
import (

pkg/clients/netbackup/token.go

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*
2+
* SPDX-FileCopyrightText: Copyright (c) 2025 Orange
3+
* SPDX-License-Identifier: Mozilla Public License 2.0
4+
*
5+
* This software is distributed under the MPL-2.0 license.
6+
* the text of which is available at https://www.mozilla.org/en-US/MPL/2.0/
7+
* or see the "LICENSE" file for more details.
8+
*/
9+
110
package clientnetbackup
211

312
import (

pkg/clients/s3/s3.go

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*
2+
* SPDX-FileCopyrightText: Copyright (c) 2025 Orange
3+
* SPDX-License-Identifier: Mozilla Public License 2.0
4+
*
5+
* This software is distributed under the MPL-2.0 license.
6+
* the text of which is available at https://www.mozilla.org/en-US/MPL/2.0/
7+
* or see the "LICENSE" file for more details.
8+
*/
9+
110
package s3
211

312
import (

pkg/clients/s3/token.go

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*
2+
* SPDX-FileCopyrightText: Copyright (c) 2025 Orange
3+
* SPDX-License-Identifier: Mozilla Public License 2.0
4+
*
5+
* This software is distributed under the MPL-2.0 license.
6+
* the text of which is available at https://www.mozilla.org/en-US/MPL/2.0/
7+
* or see the "LICENSE" file for more details.
8+
*/
9+
110
package s3
211

312
import (

0 commit comments

Comments
 (0)