Documentation ¶
Overview ¶
Package cbr ...
Index ¶
- type CBR
- type CBRInterface
- type StorageCBR
- func (storageCBR *StorageCBR) CreateCBRRule(zoneID string, serviceName string) (string, error)
- func (storageCBR *StorageCBR) CreateCBRRuleForCOSService(zoneID string) (string, error)
- func (storageCBR *StorageCBR) CreateCBRRuleForContainerK8sService(zoneID string) (string, error)
- func (storageCBR *StorageCBR) CreateCBRRuleForISService(zoneID string) (string, error)
- func (storageCBR *StorageCBR) CreateCBRRuleForKMSService(zoneID string) (string, error)
- func (storageCBR *StorageCBR) CreateCBRZone(name string, cbrInput CBR) (string, error)
- func (storageCBR *StorageCBR) DeleteCBRRuleWithPattern(ruleDescription string) ([]string, error)
- func (storageCBR *StorageCBR) DeleteCBRRuleZone(ruleID string, zoneID string) error
- func (storageCBR *StorageCBR) DeleteCBRZoneWithPattern(zoneDescription string) ([]string, error)
- func (storageCBR *StorageCBR) SetApiTypes() *contextbasedrestrictionsv1.NewRuleOperations
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CBR ¶
type CBR struct { VPC []string `json:"VPC,omitempty"` //The VPCs allowed in the zone. Input in the form 'value,value,...' where value is VPC CRN Address []string `json:"Address,omitempty"` //The list of addresses in the zone. Only addresses of type 'ipAddress', 'ipRange', and 'subnet' are allowed in a comma delimited format. ServiceRef []string `json:"ServiceRef,omitempty"` //The service refs in the zone. Input in the form 'value,value,...' }
type CBRInterface ¶
type CBRInterface interface { // CreateCBRZone ... CreateCBRZone(name string, cbrInput CBR) (string, error) // CreateCBRRuleForContainerK8sService ... CreateCBRRuleForContainerK8sService(zoneID string) (string, error) // CreateCBRRuleForISService ... CreateCBRRuleForISService(zoneID string) (string, error) // CreateCBRRuleForKMSService ... CreateCBRRuleForKMSService(zoneID string) (string, error) // CreateCBRRuleForCOSService ... CreateCBRRuleForCOSService(zoneID string) (string, error) // CreateCBRRule ... CreateCBRRule(zoneID string, serviceName string) (string, error) // DeleteCBRRuleZone ... DeleteCBRRuleZone(ruleID string, zoneID string) error // DeleteCBRZoneWithPattern ... DeleteCBRZoneWithPattern(zoneDescription string) ([]string, error) // DeleteCBRRuleWithPattern ... DeleteCBRRuleWithPattern(ruleDescription string) ([]string, error) }
CBRInterface ...
type StorageCBR ¶
type StorageCBR struct {
// contains filtered or unexported fields
}
StorageCBR ...
func NewStorageCBR ¶
func NewStorageCBR(apiKey, accountID, resourceGroupID, clusterID, pattern string) *StorageCBR
NewCBRInterface ...
func (*StorageCBR) CreateCBRRule ¶
func (storageCBR *StorageCBR) CreateCBRRule(zoneID string, serviceName string) (string, error)
func (*StorageCBR) CreateCBRRuleForCOSService ¶
func (storageCBR *StorageCBR) CreateCBRRuleForCOSService(zoneID string) (string, error)
func (*StorageCBR) CreateCBRRuleForContainerK8sService ¶
func (storageCBR *StorageCBR) CreateCBRRuleForContainerK8sService(zoneID string) (string, error)
func (*StorageCBR) CreateCBRRuleForISService ¶
func (storageCBR *StorageCBR) CreateCBRRuleForISService(zoneID string) (string, error)
func (*StorageCBR) CreateCBRRuleForKMSService ¶
func (storageCBR *StorageCBR) CreateCBRRuleForKMSService(zoneID string) (string, error)
func (*StorageCBR) CreateCBRZone ¶
func (storageCBR *StorageCBR) CreateCBRZone(name string, cbrInput CBR) (string, error)
func (*StorageCBR) DeleteCBRRuleWithPattern ¶
func (storageCBR *StorageCBR) DeleteCBRRuleWithPattern(ruleDescription string) ([]string, error)
DeleteCBRRuleWithPattern ...
func (*StorageCBR) DeleteCBRRuleZone ¶
func (storageCBR *StorageCBR) DeleteCBRRuleZone(ruleID string, zoneID string) error
func (*StorageCBR) DeleteCBRZoneWithPattern ¶
func (storageCBR *StorageCBR) DeleteCBRZoneWithPattern(zoneDescription string) ([]string, error)
DeleteCBRZoneWithPattern ...
func (*StorageCBR) SetApiTypes ¶
func (storageCBR *StorageCBR) SetApiTypes() *contextbasedrestrictionsv1.NewRuleOperations
SetApiTypes ...
Click to show internal directories.
Click to hide internal directories.