Skip to content

Commit 07cb4f3

Browse files
authored
Merge branch 'main' into feat/rdb-benchmarks
2 parents da08bd6 + 2d46e5d commit 07cb4f3

86 files changed

Lines changed: 9063 additions & 112 deletions

File tree

Some content is hidden

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

.github/workflows/lint.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ jobs:
3131
runs-on: "${{ vars.RUNS_ON || 'ubuntu-latest' }}"
3232
steps:
3333
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
34+
- name: Install Go # We need the go binary to be available to run some checks (formatter, gomod_salt, ...)
35+
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
36+
with:
37+
go-version: stable
3438
- name: golangci-lint
3539
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
3640
with:
@@ -44,6 +48,10 @@ jobs:
4448
steps:
4549
- name: Checkout Actions Repository
4650
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
51+
- name: Install wget
52+
run: |
53+
sudo apt-get update
54+
sudo apt-get install -y --no-install-recommends wget
4755
- name: Spell Check Repo
4856
uses: crate-ci/typos@631208b7aac2daa8b707f55e7331f9112b0e062d # v1.44.0
4957
env:

_typos.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ Vertexes = "Vertexes"
1414
ba = "ba"
1515
Viw = "Viw"
1616
UE = "UE"
17+
gost = "gost"

cmd/scw/testdata/test-all-usage-audit-trail-event-list-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ USAGE:
77

88
ARGS:
99
[project-id] (Optional) ID of the Project containing the Audit Trail events
10-
[resource-type] (Optional) Type of the Scaleway resource (unknown_type | secm_secret | secm_secret_version | kube_cluster | kube_pool | kube_node | kube_acl | keym_key | iam_user | iam_application | iam_group | iam_policy | iam_api_key | iam_ssh_key | iam_rule | iam_saml | iam_saml_certificate | iam_scim | iam_scim_token | secret_manager_secret | secret_manager_version | key_manager_key | account_user | account_organization | account_project | account_contract_signature | instance_server | instance_placement_group | instance_security_group | instance_volume | instance_snapshot | instance_image | instance_template | apple_silicon_server | baremetal_server | baremetal_setting | ipam_ip | sbs_volume | sbs_snapshot | load_balancer_lb | load_balancer_ip | load_balancer_frontend | load_balancer_backend | load_balancer_route | load_balancer_acl | load_balancer_certificate | sfs_filesystem | vpc_private_network | vpc_vpc | vpc_subnet | vpc_route | vpc_acl | edge_services_plan | edge_services_pipeline | edge_services_dns_stage | edge_services_tls_stage | edge_services_cache_stage | edge_services_route_stage | edge_services_route_rules | edge_services_waf_stage | edge_services_backend_stage | s2s_vpn_gateway | s2s_customer_gateway | s2s_routing_policy | s2s_connection | vpc_gw_gateway | vpc_gw_gateway_network | vpc_gw_dhcp | vpc_gw_dhcp_entry | vpc_gw_pat_rule | vpc_gw_ip | audit_trail_export_job | rdb_instance | rdb_instance_backup | rdb_instance_endpoint | rdb_instance_logs | rdb_instance_read_replica | rdb_instance_snapshot | mongodb_instance | mongodb_instance_snapshot | mongodb_instance_endpoint | apple_silicon_runner | audit_trail_alert_rule)
10+
[resource-type] (Optional) Type of the Scaleway resource (unknown_type | secm_secret | secm_secret_version | kube_cluster | kube_pool | kube_node | kube_acl | keym_key | iam_user | iam_application | iam_group | iam_policy | iam_api_key | iam_ssh_key | iam_rule | iam_saml | iam_saml_certificate | iam_scim | iam_scim_token | secret_manager_secret | secret_manager_version | key_manager_key | account_user | account_organization | account_project | account_contract_signature | instance_server | instance_placement_group | instance_security_group | instance_volume | instance_snapshot | instance_image | instance_template | instance_private_network_interface | apple_silicon_server | baremetal_server | baremetal_setting | ipam_ip | sbs_volume | sbs_snapshot | load_balancer_lb | load_balancer_ip | load_balancer_frontend | load_balancer_backend | load_balancer_route | load_balancer_acl | load_balancer_certificate | sfs_filesystem | vpc_private_network | vpc_vpc | vpc_subnet | vpc_route | vpc_acl | vpc_connector | edge_services_plan | edge_services_pipeline | edge_services_dns_stage | edge_services_tls_stage | edge_services_cache_stage | edge_services_route_stage | edge_services_route_rules | edge_services_waf_stage | edge_services_backend_stage | s2s_vpn_gateway | s2s_customer_gateway | s2s_routing_policy | s2s_connection | vpc_gw_gateway | vpc_gw_gateway_network | vpc_gw_dhcp | vpc_gw_dhcp_entry | vpc_gw_pat_rule | vpc_gw_ip | audit_trail_export_job | rdb_instance | rdb_instance_backup | rdb_instance_endpoint | rdb_instance_logs | rdb_instance_read_replica | rdb_instance_snapshot | mongodb_instance | mongodb_instance_snapshot | mongodb_instance_endpoint | apple_silicon_runner | audit_trail_alert_rule)
1111
[method-name] (Optional) Name of the method of the API call performed
1212
[status] (Optional) HTTP status code of the request. Returns either `200` if the request was successful or `403` if the permission was denied
1313
[recorded-after] (Optional) The `recorded_after` parameter defines the earliest timestamp from which Audit Trail events are retrieved. Returns `one hour ago` by default
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Check whether contacts are compatible with a domain or a TLD.
4+
If contacts are not compatible with either the domain or the TLD, the information that needs to be corrected is returned.
5+
6+
USAGE:
7+
scw domain contact check-compatibility [arg=value ...]
8+
9+
ARGS:
10+
[domains.{index}]
11+
[tlds.{index}]
12+
[owner-contact-id]
13+
[owner-contact.legal-form] (legal_form_unknown | individual | corporate | association | other)
14+
[owner-contact.firstname]
15+
[owner-contact.lastname]
16+
[owner-contact.company-name]
17+
[owner-contact.email]
18+
[owner-contact.email-alt]
19+
[owner-contact.phone-number]
20+
[owner-contact.fax-number]
21+
[owner-contact.address-line-1]
22+
[owner-contact.address-line-2]
23+
[owner-contact.zip]
24+
[owner-contact.city]
25+
[owner-contact.country]
26+
[owner-contact.vat-identification-code]
27+
[owner-contact.company-identification-code]
28+
[owner-contact.lang] (unknown_language_code | en_US | fr_FR | de_DE)
29+
[owner-contact.resale]
30+
[owner-contact.extension-fr.mode] (mode_unknown | individual | company_identification_code | duns | local | association | trademark | code_auth_afnic)
31+
[owner-contact.extension-fr.individual-info.whois-opt-in]
32+
[owner-contact.extension-fr.duns-info.duns-id]
33+
[owner-contact.extension-fr.duns-info.local-id]
34+
[owner-contact.extension-fr.association-info.publication-jo]
35+
[owner-contact.extension-fr.association-info.publication-jo-page]
36+
[owner-contact.extension-fr.trademark-info.trademark-inpi]
37+
[owner-contact.extension-fr.code-auth-afnic-info.code-auth-afnic]
38+
[owner-contact.extension-eu.european-citizenship]
39+
[owner-contact.whois-opt-in]
40+
[owner-contact.state]
41+
[owner-contact.extension-nl.legal-form] (legal_form_unknown | other | non_dutch_eu_company | non_dutch_legal_form_enterprise_subsidiary | limited_company | limited_company_in_formation | cooperative | limited_partnership | sole_company | european_economic_interest_group | religious_entity | partnership | public_company | mutual_benefit_company | residential | shipping_company | foundation | association | trading_partnership | natural_person)
42+
[owner-contact.extension-nl.legal-form-registration-number]
43+
[owner-contact.extension-it.pin] Domain name registrant's Taxcode (mandatory / only optional when the trustee is used)
44+
[owner-contact.questions.{index}.question]
45+
[owner-contact.questions.{index}.answer]
46+
[administrative-contact-id]
47+
[administrative-contact.legal-form] (legal_form_unknown | individual | corporate | association | other)
48+
[administrative-contact.firstname]
49+
[administrative-contact.lastname]
50+
[administrative-contact.company-name]
51+
[administrative-contact.email]
52+
[administrative-contact.email-alt]
53+
[administrative-contact.phone-number]
54+
[administrative-contact.fax-number]
55+
[administrative-contact.address-line-1]
56+
[administrative-contact.address-line-2]
57+
[administrative-contact.zip]
58+
[administrative-contact.city]
59+
[administrative-contact.country]
60+
[administrative-contact.vat-identification-code]
61+
[administrative-contact.company-identification-code]
62+
[administrative-contact.lang] (unknown_language_code | en_US | fr_FR | de_DE)
63+
[administrative-contact.resale]
64+
[administrative-contact.extension-fr.mode] (mode_unknown | individual | company_identification_code | duns | local | association | trademark | code_auth_afnic)
65+
[administrative-contact.extension-fr.individual-info.whois-opt-in]
66+
[administrative-contact.extension-fr.duns-info.duns-id]
67+
[administrative-contact.extension-fr.duns-info.local-id]
68+
[administrative-contact.extension-fr.association-info.publication-jo]
69+
[administrative-contact.extension-fr.association-info.publication-jo-page]
70+
[administrative-contact.extension-fr.trademark-info.trademark-inpi]
71+
[administrative-contact.extension-fr.code-auth-afnic-info.code-auth-afnic]
72+
[administrative-contact.extension-eu.european-citizenship]
73+
[administrative-contact.whois-opt-in]
74+
[administrative-contact.state]
75+
[administrative-contact.extension-nl.legal-form] (legal_form_unknown | other | non_dutch_eu_company | non_dutch_legal_form_enterprise_subsidiary | limited_company | limited_company_in_formation | cooperative | limited_partnership | sole_company | european_economic_interest_group | religious_entity | partnership | public_company | mutual_benefit_company | residential | shipping_company | foundation | association | trading_partnership | natural_person)
76+
[administrative-contact.extension-nl.legal-form-registration-number]
77+
[administrative-contact.extension-it.pin] Domain name registrant's Taxcode (mandatory / only optional when the trustee is used)
78+
[administrative-contact.questions.{index}.question]
79+
[administrative-contact.questions.{index}.answer]
80+
[technical-contact-id]
81+
[technical-contact.legal-form] (legal_form_unknown | individual | corporate | association | other)
82+
[technical-contact.firstname]
83+
[technical-contact.lastname]
84+
[technical-contact.company-name]
85+
[technical-contact.email]
86+
[technical-contact.email-alt]
87+
[technical-contact.phone-number]
88+
[technical-contact.fax-number]
89+
[technical-contact.address-line-1]
90+
[technical-contact.address-line-2]
91+
[technical-contact.zip]
92+
[technical-contact.city]
93+
[technical-contact.country]
94+
[technical-contact.vat-identification-code]
95+
[technical-contact.company-identification-code]
96+
[technical-contact.lang] (unknown_language_code | en_US | fr_FR | de_DE)
97+
[technical-contact.resale]
98+
[technical-contact.extension-fr.mode] (mode_unknown | individual | company_identification_code | duns | local | association | trademark | code_auth_afnic)
99+
[technical-contact.extension-fr.individual-info.whois-opt-in]
100+
[technical-contact.extension-fr.duns-info.duns-id]
101+
[technical-contact.extension-fr.duns-info.local-id]
102+
[technical-contact.extension-fr.association-info.publication-jo]
103+
[technical-contact.extension-fr.association-info.publication-jo-page]
104+
[technical-contact.extension-fr.trademark-info.trademark-inpi]
105+
[technical-contact.extension-fr.code-auth-afnic-info.code-auth-afnic]
106+
[technical-contact.extension-eu.european-citizenship]
107+
[technical-contact.whois-opt-in]
108+
[technical-contact.state]
109+
[technical-contact.extension-nl.legal-form] (legal_form_unknown | other | non_dutch_eu_company | non_dutch_legal_form_enterprise_subsidiary | limited_company | limited_company_in_formation | cooperative | limited_partnership | sole_company | european_economic_interest_group | religious_entity | partnership | public_company | mutual_benefit_company | residential | shipping_company | foundation | association | trading_partnership | natural_person)
110+
[technical-contact.extension-nl.legal-form-registration-number]
111+
[technical-contact.extension-it.pin] Domain name registrant's Taxcode (mandatory / only optional when the trustee is used)
112+
[technical-contact.questions.{index}.question]
113+
[technical-contact.questions.{index}.answer]
114+
115+
DEPRECATED ARGS:
116+
[owner-contact.extension-it.european-citizenship] This option is useless anymore
117+
[owner-contact.extension-it.tax-code] Tax_code is renamed to pin
118+
[administrative-contact.extension-it.european-citizenship] This option is useless anymore
119+
[administrative-contact.extension-it.tax-code] Tax_code is renamed to pin
120+
[technical-contact.extension-it.european-citizenship] This option is useless anymore
121+
[technical-contact.extension-it.tax-code] Tax_code is renamed to pin
122+
123+
FLAGS:
124+
-h, --help help for check-compatibility
125+
--list-sub-commands List all subcommands
126+
127+
GLOBAL FLAGS:
128+
-c, --config string The path to the config file
129+
-D, --debug Enable debug mode
130+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
131+
-p, --profile string The config profile to use
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Retrieve a contact's details from the registrar using the given contact's ID.
4+
5+
USAGE:
6+
scw domain contact get [arg=value ...]
7+
8+
ARGS:
9+
contact-id
10+
11+
FLAGS:
12+
-h, --help help for get
13+
--list-sub-commands List all subcommands
14+
15+
GLOBAL FLAGS:
16+
-c, --config string The path to the config file
17+
-D, --debug Enable debug mode
18+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
19+
-p, --profile string The config profile to use
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Retrieve the list of contacts and their associated domains and roles.
4+
You can filter the list by domain name.
5+
6+
USAGE:
7+
scw domain contact list [arg=value ...]
8+
9+
ARGS:
10+
[domain]
11+
[project-id]
12+
[role] (unknown_role | owner | administrative | technical)
13+
[email-status] (email_status_unknown | validated | not_validated | invalid_email)
14+
[organization-id]
15+
16+
FLAGS:
17+
-h, --help help for list
18+
--list-sub-commands List all subcommands
19+
20+
GLOBAL FLAGS:
21+
-c, --config string The path to the config file
22+
-D, --debug Enable debug mode
23+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
24+
-p, --profile string The config profile to use

0 commit comments

Comments
 (0)