cbr

package
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 Imports: 7 Imported by: 0

Documentation

Overview

Package cbr ...

Index

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 ...

Jump to

Keyboard shortcuts

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