Documentation ¶
Index ¶
- func ExtractCloudDescription(description *string) (*cloudresource.CloudRuleDescription, bool)
- func FindResourcesBasedOnKind(cloudResources []*cloudresource.CloudResource) (map[string]struct{}, map[string]struct{})
- func GenerateCloudDescription(namespacedName string) (string, error)
- func GenerateShortResourceIdentifier(id string, prefixToAdd string) string
- func GetCloudResourceCRName(providerType, name string) string
- func IsNepheControllerCreatedSG(cloudSgName string) (string, bool, bool)
- func SplitCloudRulesByDirection(rules []*cloudresource.CloudRule) ([]*cloudresource.CloudRule, []*cloudresource.CloudRule)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractCloudDescription ¶ added in v0.6.0
func ExtractCloudDescription(description *string) (*cloudresource.CloudRuleDescription, bool)
ExtractCloudDescription converts a string to a CloudRuleDescription object.
func FindResourcesBasedOnKind ¶ added in v0.6.0
func FindResourcesBasedOnKind(cloudResources []*cloudresource.CloudResource) (map[string]struct{}, map[string]struct{})
func GenerateCloudDescription ¶ added in v0.6.0
GenerateCloudDescription generates a CloudRuleDescription object and converts to string.
func GetCloudResourceCRName ¶
GetCloudResourceCRName gets corresponding cr name from cloud resource id based on cloud type.
func IsNepheControllerCreatedSG ¶ added in v0.6.0
IsNepheControllerCreatedSG checks an SG is created by nephe and returns if it's an AppliedToGroup/AddressGroup sg and the sg name.
func SplitCloudRulesByDirection ¶ added in v0.6.0
func SplitCloudRulesByDirection(rules []*cloudresource.CloudRule) ([]*cloudresource.CloudRule, []*cloudresource.CloudRule)
SplitCloudRulesByDirection splits the given CloudRule slice into two, one for ingress rules and one for egress rules.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.