ibmcloud-storage-cbr

module
v0.0.0-...-1c6ecc6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2023 License: Apache-2.0

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

Path Synopsis
Package cbr ...
Package cbr ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL