Skip to content

Commit 2dc2601

Browse files
committed
Adding support for GetSecurityGroupByName
Signed-off-by: Sameer Shaikh <[email protected]>
1 parent adfefb0 commit 2dc2601

File tree

11 files changed

+46
-31
lines changed

11 files changed

+46
-31
lines changed

common/messages/messages_en.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,10 @@ var messagesEn = map[string]util.Message{
172172
},
173173
"ListSubnetsFailed": {
174174
Code: "ListSubnetsFailed",
175-
Description: "Unable to fetch list of subnets.",
175+
Description: "Unable to fetch list of subnet.",
176176
Type: util.RetrivalFailed,
177177
RC: 500,
178-
Action: "Unable to list subnets. Run 'ibmcloud is subnets' to list available subnets in your account.",
178+
Action: "Unable to list subnet. Run 'ibmcloud is subnets' to list available subnets in your account.",
179179
},
180180
"NextSubnetPageParsingError": {
181181
Code: "NextSubnetPageParsingError",
@@ -200,10 +200,10 @@ var messagesEn = map[string]util.Message{
200200
},
201201
"ListSecurityGroupsFailed": {
202202
Code: "ListSecurityGroupsFailed",
203-
Description: "Unable to fetch list of securityGroups.",
203+
Description: "Unable to fetch list of securityGroup.",
204204
Type: util.RetrivalFailed,
205205
RC: 500,
206-
Action: "Unable to list securityGroups. Run 'ibmcloud is securityGroups' to list available securityGroups in your account.",
206+
Action: "Unable to list securityGroup. Run 'ibmcloud is securityGroups' to list available securityGroups in your account.",
207207
},
208208
"NextSecurityGroupPageParsingError": {
209209
Code: "NextSecurityGroupPageParsingError",

common/vpcclient/vpcfilevolume/list_security_groups.go

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
1-
/*******************************************************************************
2-
* IBM Confidential
3-
* OCO Source Materials
4-
* IBM Cloud Kubernetes Service, 5737-D43
5-
* (C) Copyright IBM Corp. 2023 All Rights Reserved.
6-
* The source code for this program is not published or otherwise divested of
7-
* its trade secrets, irrespective of what has been deposited with
8-
* the U.S. Copyright Office.
9-
******************************************************************************/
1+
/**
2+
* Copyright 2023 IBM Corp.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
1016

1117
// Package vpcfilevolume ...
1218
package vpcfilevolume

common/vpcclient/vpcfilevolume/list_security_groups_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2021 IBM Corp.
2+
* Copyright 2023 IBM Corp.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

common/vpcclient/vpcfilevolume/list_subnets.go

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
1-
/*******************************************************************************
2-
* IBM Confidential
3-
* OCO Source Materials
4-
* IBM Cloud Kubernetes Service, 5737-D43
5-
* (C) Copyright IBM Corp. 2023 All Rights Reserved.
6-
* The source code for this program is not published or otherwise divested of
7-
* its trade secrets, irrespective of what has been deposited with
8-
* the U.S. Copyright Office.
9-
******************************************************************************/
1+
/**
2+
* Copyright 2023 IBM Corp.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
1016

1117
// Package vpcfilevolume ...
1218
package vpcfilevolume

common/vpcclient/vpcfilevolume/list_subnets_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2021 IBM Corp.
2+
* Copyright 2023 IBM Corp.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

file/provider/get_security_group.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2021 IBM Corp.
2+
* Copyright 2023 IBM Corp.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

file/provider/get_security_group_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2021 IBM Corp.
2+
* Copyright 2023 IBM Corp.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

file/provider/get_subnet.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2021 IBM Corp.
2+
* Copyright 2023 IBM Corp.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

file/provider/get_subnet_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2021 IBM Corp.
2+
* Copyright 2023 IBM Corp.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

go.mod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.19
55
require (
66
github.com/IBM-Cloud/ibm-cloud-cli-sdk v0.6.7
77
github.com/IBM/ibm-csi-common v1.1.6
8-
github.com/IBM/ibmcloud-volume-interface v1.1.5-0.20230911183341-6a25729a62fb
8+
github.com/IBM/ibmcloud-volume-interface v1.2.0
99
github.com/IBM/secret-common-lib v1.1.4
1010
github.com/IBM/secret-utils-lib v1.1.4
1111
github.com/fatih/structs v1.1.0
@@ -62,6 +62,7 @@ require (
6262
github.com/modern-go/reflect2 v1.0.2 // indirect
6363
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
6464
github.com/oklog/ulid v1.3.1 // indirect
65+
github.com/pierrre/gotestcover v0.0.0-20160517101806-924dca7d15f0 // indirect
6566
github.com/pkg/errors v0.9.1 // indirect
6667
github.com/pmezard/go-difflib v1.0.0 // indirect
6768
github.com/prometheus/client_golang v1.14.0 // indirect

0 commit comments

Comments
 (0)