module
Version:
v0.0.0-...-1c6ecc6
Opens a new window with list of versions in this module.
Published: Jul 26, 2023
License: Apache-2.0
Opens a new window with license information.
README
¶
ibmcloud-storage-cbr
Common lib to manage cbr related interfaces which will be used by all container storage components for their e2e
1.) Inputs required
- Function Account ID
- Admin API key for function ID account.
- CBR Resource Group ID
- List of VPCs from which access need to be restricted.
- List of address/subnet range from which access need to be restricted.
type cbr struct {
vpc []
address []
serviceRef []
}
Methods
AccountID , APIKey, resourceGroupId will be required to initialise the library.
- NewCBRInterface( apiKey string, accountID string, resourceGroupID string )
Approach : User can create rules service wise on demand for single zone or multiple zones.
- CreateCBRZone(name , input cbr ) zoneID.
- CreateCBRForContainerK8sService( zoneID) ruleID
- CreateCBRForISService( zoneID) ruleID
- CreateCBRForKMSService( zoneID ) ruleID
- CreateCBRForCOSService( zoneID ) ruleID
- CreateCBRRule( zoneID, serviceName ) ruleID
- DeleteCBRRuleZone (ruleID, zoneID)
Directories
¶
Click to show internal directories.
Click to hide internal directories.