Documentation ¶
Index ¶
- Constants
- 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 ProtocolNameToAzureProtocolString(protocol string) string
- func ProtocolNameToOCIProtocolNumber(protocol string) int
- type TemplateLoader
- type Templates
Constants ¶
const ( TerraformerTemplates = "services/terraformer/templates" AnsiblerTemplates = "services/ansibler/templates" KuberTemplates = "services/kuber/templates" KubeElevenTemplates = "services/kube-eleven/templates" TestingTemplates = "templates" //due to how tests are run, the path to templates is absolute to testing-framework directory )
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 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 TemplateLoader ¶
type TemplateLoader struct {
Directory string
}
directory - template directory MUST be relative to base directory, i.e. services/terraformer/etc
func (TemplateLoader) LoadTemplate ¶
func (tl TemplateLoader) LoadTemplate(tplFile string) (*template.Template, error)
loads the template from directory specified in TemplateLoader the directory MUST be relative to base directory, i.e. services/terraformer/templates
type Templates ¶
type Templates struct {
Directory string
}
directory - output directory MUST be relative to base directory, i.e. services/terraformer/etc