Documentation ¶
Index ¶
- func AssignPriority(index int) int
- func EnableAccNet(vmSize string) string
- func ExtractNetmaskFromCIDR(cidr string) string
- func ExtractTargetPorts(loadBalancers []*pb.LBcluster) []int
- func IsMissing[K comparable](item K, items []K) bool
- func LoadTemplate(tplFile string) (*template.Template, error)
- func ProtocolNameToAzureProtocolString(protocol string) string
- func ProtocolNameToOCIProtocolNumber(protocol string) int
- type Templates
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssignPriority ¶
AssignPriority returns a priority for firewall rule with basePriority + index
func EnableAccNet ¶
EnableAccNet will check if accelerated networking can be enabled based on conditions specified here https://azure.microsoft.com/en-us/updates/accelerated-networking-in-expanded-preview/ we will look only at VM sizes, since all regions are supported now all reasonable operating systems
func ExtractNetmaskFromCIDR ¶
ExtractNetmaskFromCIDR extracts the netmask from the CIDR notation.
func ExtractTargetPorts ¶
ExtractTargetPorts extracts target ports defined inside the role in the LoadBalancer.
func IsMissing ¶
func IsMissing[K comparable](item K, items []K) bool
IsMissing checks if item is missing in the list of items.
func LoadTemplate ¶ added in v0.3.2
LoadTemplate creates template instance with auxiliary functions from specified template.
func ProtocolNameToAzureProtocolString ¶
ProtocolNameToAzureProtocolString returns string constants for transport protocols
func ProtocolNameToOCIProtocolNumber ¶
ProtocolNameToOCIProtocolNumber translates between a string version of a protocol to a number version that can be used within OCI. More info in the following link: https://docs.oracle.com/en-us/iaas/tools/terraform-provider-oci/4.96/docs/r/core_security_list.html
Types ¶
type Templates ¶
type Templates struct {
Directory string
}
directory - output directory MUST be relative to base directory, i.e. services/terraformer/etc