{"modulePath":"github.com/devigned/aks-engine","version":"v0.38.5","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package engine\n\nPackage engine takes an AKS cluster model and generates the corresponding template.\n\nCode generated by go-bindata. DO NOT EDIT. @generated sources: ../../parts/agentoutputs.t ../../parts/agentparams.t ../../parts/dcos/bstrap/bootstrapcustomdata.yml ../../parts/dcos/bstrap/bootstrapparams.t ../../parts/dcos/bstrap/bootstrapprovision.sh ../../parts/dcos/bstrap/bootstrapresources.t ../../parts/dcos/bstrap/bootstrapvars.t ../../parts/dcos/bstrap/dcos1.11.0.customdata.t ../../parts/dcos/bstrap/dcos1.11.2.customdata.t ../../parts/dcos/bstrap/dcosbase.t ../../parts/dcos/bstrap/dcosmasterresources.t ../../parts/dcos/bstrap/dcosmastervars.t ../../parts/dcos/bstrap/dcosprovision.sh ../../parts/dcos/dcosWindowsAgentResourcesVmas.t ../../parts/dcos/dcosWindowsAgentResourcesVmss.t ../../parts/dcos/dcosWindowsProvision.ps1 ../../parts/dcos/dcosagentresourcesvmas.t ../../parts/dcos/dcosagentresourcesvmss.t ../../parts/dcos/dcosagentvars.t ../../parts/dcos/dcosbase.t ../../parts/dcos/dcoscustomdata110.t ../../parts/dcos/dcoscustomdata184.t ../../parts/dcos/dcoscustomdata187.t ../../parts/dcos/dcoscustomdata188.t ../../parts/dcos/dcoscustomdata190.t ../../parts/dcos/dcoscustomdata198.t ../../parts/dcos/dcosmasterresources.t ../../parts/dcos/dcosmastervars.t ../../parts/dcos/dcosparams.t ../../parts/dcos/dcosprovision.sh ../../parts/dcos/dcosprovisionsource.sh ../../parts/iaasoutputs.t ../../parts/k8s/addons/1.10/kubernetesmasteraddons-kube-dns-deployment.yaml ../../parts/k8s/addons/1.15/kubernetesmasteraddons-azure-cloud-provider-deployment.yaml ../../parts/k8s/addons/1.15/kubernetesmasteraddons-pod-security-policy.yaml ../../parts/k8s/addons/1.16/kubernetesmasteraddons-azure-cloud-provider-deployment.yaml ../../parts/k8s/addons/1.16/kubernetesmasteraddons-flannel-daemonset.yaml ../../parts/k8s/addons/1.16/kubernetesmasteraddons-kube-dns-deployment.yaml ../../parts/k8s/addons/1.16/kubernetesmasteraddons-kube-proxy-daemonset.yaml ../../parts/k8s/addons/1.16/kubernetesmasteraddons-kubernetes-dashboard-deployment.yaml ../../parts/k8s/addons/1.16/kubernetesmasteraddons-pod-security-policy.yaml ../../parts/k8s/addons/1.6/kubernetesmasteraddons-kubernetes-dashboard-deployment.yaml ../../parts/k8s/addons/1.7/kubernetesmasteraddons-kube-dns-deployment.yaml ../../parts/k8s/addons/1.7/kubernetesmasteraddons-kubernetes-dashboard-deployment.yaml ../../parts/k8s/addons/1.8/kubernetesmasteraddons-kube-dns-deployment.yaml ../../parts/k8s/addons/1.8/kubernetesmasteraddons-kubernetes-dashboard-deployment.yaml ../../parts/k8s/addons/1.9/kubernetesmasteraddons-kube-dns-deployment.yaml ../../parts/k8s/addons/coredns.yaml ../../parts/k8s/addons/kubernetesmaster-audit-policy.yaml ../../parts/k8s/addons/kubernetesmasteraddons-aad-default-admin-group-rbac.yaml ../../parts/k8s/addons/kubernetesmasteraddons-azure-cloud-provider-deployment.yaml ../../parts/k8s/addons/kubernetesmasteraddons-cilium-daemonset.yaml ../../parts/k8s/addons/kubernetesmasteraddons-elb-svc.yaml ../../parts/k8s/addons/kubernetesmasteraddons-flannel-daemonset.yaml ../../parts/k8s/addons/kubernetesmasteraddons-kube-dns-deployment.yaml ../../parts/k8s/addons/kubernetesmasteraddons-kube-proxy-daemonset.yaml ../../parts/k8s/addons/kubernetesmasteraddons-managed-azure-storage-classes-custom.yaml ../../parts/k8s/addons/kubernetesmasteraddons-managed-azure-storage-classes.yaml ../../parts/k8s/addons/kubernetesmasteraddons-pod-security-policy.yaml ../../parts/k8s/addons/kubernetesmasteraddons-unmanaged-azure-storage-classes-custom.yaml ../../parts/k8s/addons/kubernetesmasteraddons-unmanaged-azure-storage-classes.yaml ../../parts/k8s/armparameters.t ../../parts/k8s/cloud-init/artifacts/apt-preferences ../../parts/k8s/cloud-init/artifacts/auditd-rules ../../parts/k8s/cloud-init/artifacts/cis.sh ../../parts/k8s/cloud-init/artifacts/cse\\_config.sh ../../parts/k8s/cloud-init/artifacts/cse\\_customcloud.sh ../../parts/k8s/cloud-init/artifacts/cse\\_helpers.sh ../../parts/k8s/cloud-init/artifacts/cse\\_install.sh ../../parts/k8s/cloud-init/artifacts/cse\\_main.sh ../../parts/k8s/cloud-init/artifacts/default-grub ../../parts/k8s/cloud-init/artifacts/dhcpv6.service ../../parts/k8s/cloud-init/artifacts/docker-monitor.service ../../parts/k8s/cloud-init/artifacts/docker-monitor.timer ../../parts/k8s/cloud-init/artifacts/docker\\_clear\\_mount\\_propagation\\_flags.conf ../../parts/k8s/cloud-init/artifacts/enable-dhcpv6.sh ../../parts/k8s/cloud-init/artifacts/etc-issue ../../parts/k8s/cloud-init/artifacts/etc-issue.net ../../parts/k8s/cloud-init/artifacts/etcd.service ../../parts/k8s/cloud-init/artifacts/generateproxycerts.sh ../../parts/k8s/cloud-init/artifacts/health-monitor.sh ../../parts/k8s/cloud-init/artifacts/kms.service ../../parts/k8s/cloud-init/artifacts/kubelet-monitor.service ../../parts/k8s/cloud-init/artifacts/kubelet-monitor.timer ../../parts/k8s/cloud-init/artifacts/kubelet.service ../../parts/k8s/cloud-init/artifacts/modprobe-CIS.conf ../../parts/k8s/cloud-init/artifacts/mountetcd.sh ../../parts/k8s/cloud-init/artifacts/pam-d-common-auth ../../parts/k8s/cloud-init/artifacts/pam-d-common-password ../../parts/k8s/cloud-init/artifacts/pam-d-su ../../parts/k8s/cloud-init/artifacts/profile-d-cis.sh ../../parts/k8s/cloud-init/artifacts/pwquality-CIS.conf ../../parts/k8s/cloud-init/artifacts/rsyslog-d-60-CIS.conf ../../parts/k8s/cloud-init/artifacts/setup-custom-search-domains.sh ../../parts/k8s/cloud-init/artifacts/sshd\\_config ../../parts/k8s/cloud-init/artifacts/sshd\\_config\\_1604 ../../parts/k8s/cloud-init/artifacts/sys-fs-bpf.mount ../../parts/k8s/cloud-init/artifacts/sysctl-d-60-CIS.conf ../../parts/k8s/cloud-init/jumpboxcustomdata.yml ../../parts/k8s/cloud-init/masternodecustomdata.yml ../../parts/k8s/cloud-init/nodecustomdata.yml ../../parts/k8s/containeraddons/1.16/azure-cni-networkmonitor.yaml ../../parts/k8s/containeraddons/1.16/ip-masq-agent.yaml ../../parts/k8s/containeraddons/1.16/kubernetesmasteraddons-aad-pod-identity-deployment.yaml ../../parts/k8s/containeraddons/1.16/kubernetesmasteraddons-aci-connector-deployment.yaml ../../parts/k8s/containeraddons/1.16/kubernetesmasteraddons-azure-npm-daemonset.yaml ../../parts/k8s/containeraddons/1.16/kubernetesmasteraddons-blobfuse-flexvolume-installer.yaml ../../parts/k8s/containeraddons/1.16/kubernetesmasteraddons-calico-daemonset.yaml ../../parts/k8s/containeraddons/1.16/kubernetesmasteraddons-cluster-autoscaler-deployment.yaml ../../parts/k8s/containeraddons/1.16/kubernetesmasteraddons-keyvault-flexvolume-installer.yaml ../../parts/k8s/containeraddons/1.16/kubernetesmasteraddons-kube-rescheduler-deployment.yaml ../../parts/k8s/containeraddons/1.16/kubernetesmasteraddons-metrics-server-deployment.yaml ../../parts/k8s/containeraddons/1.16/kubernetesmasteraddons-omsagent-daemonset.yaml ../../parts/k8s/containeraddons/1.16/kubernetesmasteraddons-smb-flexvolume-installer.yaml ../../parts/k8s/containeraddons/1.16/kubernetesmasteraddons-tiller-deployment.yaml ../../parts/k8s/containeraddons/1.6/kubernetesmasteraddons-heapster-deployment.yaml ../../parts/k8s/containeraddons/1.7/kubernetesmasteraddons-heapster-deployment.yaml ../../parts/k8s/containeraddons/1.8/kubernetesmasteraddons-heapster-deployment.yaml ../../parts/k8s/containeraddons/azure-cni-networkmonitor.yaml ../../parts/k8s/containeraddons/dns-autoscaler.yaml ../../parts/k8s/containeraddons/ip-masq-agent.yaml ../../parts/k8s/containeraddons/kubernetesmasteraddons-aad-pod-identity-deployment.yaml ../../parts/k8s/containeraddons/kubernetesmasteraddons-aci-connector-deployment.yaml ../../parts/k8s/containeraddons/kubernetesmasteraddons-azure-npm-daemonset.yaml ../../parts/k8s/containeraddons/kubernetesmasteraddons-blobfuse-flexvolume-installer.yaml ../../parts/k8s/containeraddons/kubernetesmasteraddons-calico-daemonset.yaml ../../parts/k8s/containeraddons/kubernetesmasteraddons-cluster-autoscaler-deployment.yaml ../../parts/k8s/containeraddons/kubernetesmasteraddons-heapster-deployment.yaml ../../parts/k8s/containeraddons/kubernetesmasteraddons-keyvault-flexvolume-installer.yaml ../../parts/k8s/containeraddons/kubernetesmasteraddons-kube-rescheduler-deployment.yaml ../../parts/k8s/containeraddons/kubernetesmasteraddons-kubernetes-dashboard-deployment.yaml ../../parts/k8s/containeraddons/kubernetesmasteraddons-metrics-server-deployment.yaml ../../parts/k8s/containeraddons/kubernetesmasteraddons-nvidia-device-plugin-daemonset.yaml ../../parts/k8s/containeraddons/kubernetesmasteraddons-omsagent-daemonset.yaml ../../parts/k8s/containeraddons/kubernetesmasteraddons-smb-flexvolume-installer.yaml ../../parts/k8s/containeraddons/kubernetesmasteraddons-tiller-deployment.yaml ../../parts/k8s/kubeconfig.json ../../parts/k8s/kubernetesparams.t ../../parts/k8s/kuberneteswindowsfunctions.ps1 ../../parts/k8s/kuberneteswindowssetup.ps1 ../../parts/k8s/manifests/kubernetesmaster-cloud-controller-manager.yaml ../../parts/k8s/manifests/kubernetesmaster-kube-addon-manager.yaml ../../parts/k8s/manifests/kubernetesmaster-kube-apiserver.yaml ../../parts/k8s/manifests/kubernetesmaster-kube-controller-manager-custom.yaml ../../parts/k8s/manifests/kubernetesmaster-kube-controller-manager.yaml ../../parts/k8s/manifests/kubernetesmaster-kube-scheduler.yaml ../../parts/k8s/windowsazurecnifunc.ps1 ../../parts/k8s/windowscnifunc.ps1 ../../parts/k8s/windowsconfigfunc.ps1 ../../parts/k8s/windowsinstallopensshfunc.ps1 ../../parts/k8s/windowskubeletfunc.ps1 ../../parts/masteroutputs.t ../../parts/masterparams.t ../../parts/swarm/Install-ContainerHost-And-Join-Swarm.ps1 ../../parts/swarm/Join-SwarmMode-cluster.ps1 ../../parts/swarm/configure-swarm-cluster.sh ../../parts/swarm/configure-swarmmode-cluster.sh ../../parts/swarm/swarmagentresourcesvmas.t ../../parts/swarm/swarmagentresourcesvmss.t ../../parts/swarm/swarmagentvars.t ../../parts/swarm/swarmbase.t ../../parts/swarm/swarmmasterresources.t ../../parts/swarm/swarmmastervars.t ../../parts/swarm/swarmparams.t ../../parts/swarm/swarmwinagentresourcesvmas.t ../../parts/swarm/swarmwinagentresourcesvmss.t ../../parts/windowsparams.t\n\n## Constants\n\n```go\nconst (\n\t// Mesos is the string constant for MESOS orchestrator type\n\tMesos string = \"Mesos\"\n\t// DCOS is the string constant for DCOS orchestrator type and defaults to DCOS188\n\tDCOS string = \"DCOS\"\n\t// Swarm is the string constant for the Swarm orchestrator type\n\tSwarm string = \"Swarm\"\n\t// Kubernetes is the string constant for the Kubernetes orchestrator type\n\tKubernetes string = \"Kubernetes\"\n\t// SwarmMode is the string constant for the Swarm Mode orchestrator type\n\tSwarmMode string = \"SwarmMode\"\n)\n```\n\n```go\nconst (\n\t// DefaultVNETCIDR is the default CIDR block for the VNET\n\tDefaultVNETCIDR = \"10.0.0.0/8\"\n\t// DefaultVNETCIDRIPv6 is the default IPv6 CIDR block for the VNET\n\tDefaultVNETCIDRIPv6 = \"2001:1234:5678:9a00::/56\"\n\t// DefaultInternalLbStaticIPOffset specifies the offset of the internal LoadBalancer's IP\n\t// address relative to the first consecutive Kubernetes static IP\n\tDefaultInternalLbStaticIPOffset = 10\n\t// NetworkPolicyNone is the string expression for the deprecated NetworkPolicy usage pattern \"none\"\n\tNetworkPolicyNone = \"none\"\n\t// NetworkPolicyCalico is the string expression for calico network policy config option\n\tNetworkPolicyCalico = \"calico\"\n\t// NetworkPolicyCilium is the string expression for cilium network policy config option\n\tNetworkPolicyCilium = \"cilium\"\n\t// NetworkPluginCilium is the string expression for cilium network plugin config option\n\tNetworkPluginCilium = NetworkPolicyCilium\n\t// NetworkPolicyAzure is the string expression for Azure CNI network policy manager\n\tNetworkPolicyAzure = \"azure\"\n\t// NetworkPluginAzure is the string expression for Azure CNI plugin\n\tNetworkPluginAzure = \"azure\"\n\t// NetworkPluginKubenet is the string expression for kubenet network plugin\n\tNetworkPluginKubenet = \"kubenet\"\n\t// NetworkPluginFlannel is the string expression for flannel network plugin\n\tNetworkPluginFlannel = \"flannel\"\n\t// KubeDNSAddonName is the name of the kube-dns-deployment addon\n\tKubeDNSAddonName = \"kube-dns-deployment\"\n\t// CoreDNSAddonName is the name of the coredns addon\n\tCoreDNSAddonName = \"coredns\"\n\t// DNSAutoscalerAddonName is the name of the coredns addon\n\tDNSAutoscalerAddonName = \"dns-autoscaler\"\n\t// KubeProxyAddonName is the name of the kube-proxy config addon\n\tKubeProxyAddonName = \"kube-proxy-daemonset\"\n\t// AzureStorageClassesAddonName is the name of the azure storage classes addon\n\tAzureStorageClassesAddonName = \"azure-storage-classes\"\n\t// AzureNetworkPolicyAddonName is the name of the azure npm daemon set addon\n\tAzureNetworkPolicyAddonName = \"azure-npm-daemonset\"\n\t// CalicoAddonName is the name of calico daemonset addon\n\tCalicoAddonName = \"calico-daemonset\"\n\t// CiliumAddonName is the name of cilium daemonset addon\n\tCiliumAddonName = \"cilium-daemonset\"\n\t// FlannelAddonName is the name of flannel plugin daemonset addon\n\tFlannelAddonName = \"flannel-daemonset\"\n\t// AADAdminGroupAddonName is the name of the default admin group RBAC addon\n\tAADAdminGroupAddonName = \"aad-default-admin-group-rbac\"\n\t// AzureCloudProviderAddonName is the name of the azure cloud provider deployment addon\n\tAzureCloudProviderAddonName = \"azure-cloud-provider-deployment\"\n\t// AzureCNINetworkMonitorAddonName is the name of the azure cni network monitor addon\n\tAzureCNINetworkMonitorAddonName = \"azure-cni-networkmonitor\"\n\t// AuditPolicyAddonName is the name of the audit policy addon\n\tAuditPolicyAddonName = \"audit-policy\"\n\t// TillerAddonName is the name of the tiller addon deployment\n\tTillerAddonName = \"tiller\"\n\t// AADPodIdentityAddonName is the name of the aad-pod-identity addon deployment\n\tAADPodIdentityAddonName = \"aad-pod-identity\"\n\t// ACIConnectorAddonName is the name of the aci-connector addon deployment\n\tACIConnectorAddonName = \"aci-connector\"\n\t// AppGwIngressAddonName appgw addon\n\tAppGwIngressAddonName = \"appgw-ingress\"\n\t// DashboardAddonName is the name of the kubernetes-dashboard addon deployment\n\tDashboardAddonName = \"kubernetes-dashboard\"\n\t// ClusterAutoscalerAddonName is the name of the autoscaler addon deployment\n\tClusterAutoscalerAddonName = \"cluster-autoscaler\"\n\t// BlobfuseFlexVolumeAddonName is the name of the blobfuse flexvolume addon\n\tBlobfuseFlexVolumeAddonName = \"blobfuse-flexvolume\"\n\t// SMBFlexVolumeAddonName is the name of the smb flexvolume addon\n\tSMBFlexVolumeAddonName = \"smb-flexvolume\"\n\t// KeyVaultFlexVolumeAddonName is the name of the keyvault flexvolume addon deployment\n\tKeyVaultFlexVolumeAddonName = \"keyvault-flexvolume\"\n\t// ELBServiceAddonName is the name of the elb service addon deployment\n\tELBServiceAddonName = \"elb-svc\"\n\t// DefaultGeneratorCode specifies the source generator of the cluster template.\n\tDefaultGeneratorCode = \"aksengine\"\n\t// ReschedulerAddonName is the name of the rescheduler addon deployment\n\tReschedulerAddonName = \"rescheduler\"\n\t// HeapsterAddonName is the name of the heapster addon deployment\n\tHeapsterAddonName = \"heapster\"\n\t// MetricsServerAddonName is the name of the kubernetes Metrics server addon deployment\n\tMetricsServerAddonName = \"metrics-server\"\n\t// NVIDIADevicePluginAddonName is the name of the kubernetes NVIDIA Device Plugin daemon set\n\tNVIDIADevicePluginAddonName = \"nvidia-device-plugin\"\n\t// ContainerMonitoringAddonName is the name of the kubernetes Container Monitoring addon deployment\n\tContainerMonitoringAddonName = \"container-monitoring\"\n\t// AzureCNINetworkMonitoringAddonName is the name of the Azure CNI networkmonitor addon\n\tAzureCNINetworkMonitoringAddonName = \"azure-cni-networkmonitor\"\n\t// IPMASQAgentAddonName is the name of the ip masq agent addon\n\tIPMASQAgentAddonName = \"ip-masq-agent\"\n\t// PodSecurityPolicyAddonName is the name of the PodSecurityPolicy addon\n\tPodSecurityPolicyAddonName = \"pod-security-policy\"\n\t// DefaultKubernetesKubeletMaxPods is the max pods per kubelet\n\tDefaultKubernetesKubeletMaxPods = 110\n\t// DefaultMasterEtcdServerPort is the default etcd server port for Kubernetes master nodes\n\tDefaultMasterEtcdServerPort = 2380\n\t// DefaultMasterEtcdClientPort is the default etcd client port for Kubernetes master nodes\n\tDefaultMasterEtcdClientPort = 2379\n)\n```\n\n```go\nconst (\n\t//DefaultExtensionsRootURL  Root URL for extensions\n\tDefaultExtensionsRootURL = \"https://raw.githubusercontent.com/Azure/aks-engine/master/\"\n\t// DefaultDockerEngineRepo for grabbing docker engine packages\n\tDefaultDockerEngineRepo = \"https://download.docker.com/linux/ubuntu\"\n\t// DefaultDockerComposeURL for grabbing docker images\n\tDefaultDockerComposeURL = \"https://github.com/docker/compose/releases/download\"\n)\n```\n\n```go\nconst (\n\t// AzureStackSuffix is appended to kubernetes version on Azure Stack instances\n\tAzureStackSuffix = \"-azs\"\n)\n```\n\n```go\nconst (\n\t//DefaultConfigurationScriptRootURL  Root URL for configuration script (used for script extension on RHEL)\n\tDefaultConfigurationScriptRootURL = \"https://raw.githubusercontent.com/Azure/aks-engine/master/parts/\"\n)\n```\n\n## Functions\n\n```go\nfunc Asset(name string) ([]byte, error)\n```\nAsset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.\n\n```go\nfunc AssetDir(name string) ([]string, error)\n```\nAssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:\n\n\tdata/\n\t  foo.txt\n\t  img/\n\t    a.png\n\t    b.png\n\nthen AssetDir(\"data\") would return \\[]string{\"foo.txt\", \"img\"} AssetDir(\"data/img\") would return \\[]string{\"a.png\", \"b.png\"} AssetDir(\"foo.txt\") and AssetDir(\"notexist\") would return an error AssetDir(\"\") will return \\[]string{\"data\"}.\n\n```go\nfunc AssetInfo(name string) (os.FileInfo, error)\n```\nAssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.\n\n```go\nfunc AssetNames() []string\n```\nAssetNames returns the names of the assets.\n\n```go\nfunc CreateKeyVaultVMAS(cs *api.ContainerService) map[string]interface{}\n```\n\n```go\nfunc CreateKeyVaultVMSS(cs *api.ContainerService) map[string]interface{}\n```\n\n```go\nfunc GenerateARMResources(cs *api.ContainerService) []interface{}\n```\n\n```go\nfunc GenerateKubeConfig(properties *api.Properties, location string) (string, error)\n```\nGenerateKubeConfig returns a JSON string representing the KubeConfig\n\n```go\nfunc GetKubernetesOutputs(cs *api.ContainerService) map[string]interface{}\n```\n\n```go\nfunc GetKubernetesVariables(cs *api.ContainerService) (map[string]interface{}, error)\n```\n\n```go\nfunc GetTenantID(resourceManagerEndpoint string, subscriptionID string) (string, error)\n```\nGetTenantID figures out the AAD tenant ID of the subscription by making an unauthenticated request to the Get Subscription Details endpoint and parses the value from WWW-Authenticate header. TODO this should probably to to the armhelpers library\n\n```go\nfunc MustAsset(name string) []byte\n```\nMustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.\n\n```go\nfunc RestoreAsset(dir, name string) error\n```\nRestoreAsset restores an asset under the given directory\n\n```go\nfunc RestoreAssets(dir, name string) error\n```\nRestoreAssets restores an asset under the given directory recursively\n\n## Types\n\n```go\ntype ARMResource struct {\n\tAPIVersion string            `json:\"apiVersion,omitempty\"`\n\tCopy       map[string]string `json:\"copy,omitempty\"`\n\tDependsOn  []string          `json:\"dependsOn,omitempty\"`\n}\n```\nARMResource contains the fields that are common to all Azure Resource Manager objects.\n\n```go\nfunc (arm ARMResource) MarshalJSON() ([]byte, error)\n```\nMarshalJSON is the custom marshaler for an ARMResource.\n\n```go\ntype ARMTemplate struct {\n\tSchema         string      `json:\"$schema,omitempty\"`\n\tContentVersion string      `json:\"contentVersion,omitempty\"`\n\tParameters     interface{} `json:\"parameters,omitempty\"`\n\tVariables      interface{} `json:\"variables,omitempty\"`\n\tResources      interface{} `json:\"resources,omitempty\"`\n\tOutputs        interface{} `json:\"outputs,omitempty\"`\n}\n```\n\n```go\ntype ApplicationGatewayARM struct {\n\tARMResource\n\tnetwork.ApplicationGateway\n}\n```\nApplicationGatewayARM embeds the ARMResource type in network.ApplicationGateway.\n\n```go\ntype ArtifactWriter struct {\n\tTranslator *i18n.Translator\n}\n```\nArtifactWriter represents the object that writes artifacts\n\n```go\nfunc (w *ArtifactWriter) WriteTLSArtifacts(containerService *api.ContainerService, apiVersion, template, parameters, artifactsDir string, certsGenerated bool, parametersOnly bool) error\n```\nWriteTLSArtifacts saves TLS certificates and keys to the server filesystem\n\n```go\ntype AvailabilitySetARM struct {\n\tARMResource\n\tcompute.AvailabilitySet\n}\n```\nAvailabilitySetARM embeds the ARMResource type in compute.AvailabilitySet.\n\n```go\nfunc CreateAvailabilitySet(cs *api.ContainerService, isManagedDisks bool) AvailabilitySetARM\n```\n\n```go\nfunc (a AvailabilitySetARM) MarshalJSON() ([]byte, error)\n```\nMarshalJSON is the custom marshaler for an AvailabilitySetARM. It acts as a decorator by replacing the JSON field \"platformFaultDomainCount\" with an ARM expression if the value was not set.\n\n```go\ntype AzureEndpointConfig struct {\n\tResourceManagerVMDNSSuffix string\n}\n```\nAzureEndpointConfig describes an Azure endpoint\n\n```go\ntype AzureOSImageConfig struct {\n\tImageOffer     string\n\tImageSku       string\n\tImagePublisher string\n\tImageVersion   string\n}\n```\nAzureOSImageConfig describes an Azure OS image\n\n```go\ntype Context struct {\n\tTranslator *i18n.Translator\n}\n```\nContext represents the object that is passed to the package\n\n```go\ntype CustomFileReader struct {\n\tSource io.Reader\n\tDest   string\n}\n```\nCustomFileReader takes represents the source text of a file as an io.Reader and the desired destination to add it to\n\n```go\ntype DCOSSpecConfig struct {\n\tDCOS188BootstrapDownloadURL     string\n\tDCOS190BootstrapDownloadURL     string\n\tDCOS198BootstrapDownloadURL     string\n\tDCOS110BootstrapDownloadURL     string\n\tDCOS111BootstrapDownloadURL     string\n\tDCOSWindowsBootstrapDownloadURL string\n\tDcosRepositoryURL               string // For custom install, for example CI, need these three addributes\n\tDcosClusterPackageListID        string // the id of the package list file\n\tDcosProviderPackageID           string // the id of the dcos-provider-xxx package\n}\n```\nDCOSSpecConfig is the configurations of DCOS\n\n```go\ntype DeploymentARM struct {\n\tDeploymentARMResource\n\tresources.DeploymentExtended\n}\n```\nDeploymentARM embeds the ARMResource type in resources.DeploymentExtended.\n\n```go\nfunc CreateCustomExtensions(properties *api.Properties) []DeploymentARM\n```\nCreateCustomExtensions returns a list of DeploymentARM objects for the custom extensions to be deployed\n\n```go\ntype DeploymentARMResource ARMResource\n```\nDeploymentARMResource is an alias for the ARMResource type to avoid MarshalJSON override\n\n```go\ntype DockerSpecConfig struct {\n\tDockerEngineRepo         string\n\tDockerComposeDownloadURL string\n}\n```\nDockerSpecConfig is the configurations of docker\n\n```go\ntype DocumentDBAccountARM struct {\n\tARMResource\n\tdocumentdb.DatabaseAccountCreateUpdateParameters\n}\n```\nDocumentDBAccountARM embeds the ARMResource type in documentdb.DatabaseAccountCreateUpdateParameters.\n\n```go\ntype IdentityRoleDefinition string\n```\n\n```go\nconst (\n\t// IdentityContributorRole means created user assigned identity will have \"Contributor\" role in created resource group\n\tIdentityContributorRole IdentityRoleDefinition = \"[variables('contributorRoleDefinitionId')]\"\n\t// IdentityReaderRole means created user assigned identity will have \"Reader\" role in created resource group\n\tIdentityReaderRole IdentityRoleDefinition = \"[variables('readerRoleDefinitionId')]\"\n\t// IdentityManagedIdentityOperatorRole means created user assigned identity or service principal will have operator access on a different managed identity\n\tIdentityManagedIdentityOperatorRole IdentityRoleDefinition = \"[variables('managedIdentityOperatorRoleDefinitionId')]\"\n)\n```\n\n```go\ntype ImageARM struct {\n\tARMResource\n\tcompute.Image\n}\n```\nImageARM embeds the ARMResource type in compute.Image.\n\n```go\ntype KeyVaultARM struct {\n\tARMResource\n\tkeyvault.Vault\n}\n```\nKeyVaultARM embeds the ARMResource type in keyvault.Vault.\n\n```go\ntype KeyVaultID struct {\n\tID string `json:\"id\"`\n}\n```\nKeyVaultID represents a KeyVault instance on Azure\n\n```go\ntype KeyVaultRef struct {\n\tKeyVault      KeyVaultID `json:\"keyVault\"`\n\tSecretName    string     `json:\"secretName\"`\n\tSecretVersion string     `json:\"secretVersion,omitempty\"`\n}\n```\nKeyVaultRef represents a reference to KeyVault instance on Azure\n\n```go\ntype KubernetesSpecConfig struct {\n\tKubernetesImageBase              string\n\tTillerImageBase                  string\n\tACIConnectorImageBase            string\n\tNVIDIAImageBase                  string\n\tAzureCNIImageBase                string\n\tEtcdDownloadURLBase              string\n\tKubeBinariesSASURLBase           string\n\tWindowsTelemetryGUID             string\n\tCNIPluginsDownloadURL            string\n\tVnetCNILinuxPluginsDownloadURL   string\n\tVnetCNIWindowsPluginsDownloadURL string\n\tContainerdDownloadURLBase        string\n}\n```\nKubernetesSpecConfig is the kubernetes container images used.\n\n```go\ntype LoadBalancerARM struct {\n\tARMResource\n\tnetwork.LoadBalancer\n}\n```\nLoadBalancerARM embeds the ARMResource type in network.LoadBalancer.\n\n```go\nfunc CreateClusterLoadBalancerForIPv6() LoadBalancerARM\n```\nCreateClusterLoadBalancerForIPv6 creates the cluster loadbalancer with IPv4 and IPv6 FE config this loadbalancer is created for the ipv6 dual stack feature and configured with 1 ipv4 FE, 1 ipv6 FE and 2 backend address pools - v4 and v6, 2 rules - v4 and v6. Atleast existence of 1 rule is a requirement now to allow egress. This can be removed later. TODO (aramase)\n\n```go\nfunc CreateLoadBalancer(prop *api.Properties, isVMSS bool) LoadBalancerARM\n```\n\n```go\nfunc CreateMasterInternalLoadBalancer(cs *api.ContainerService) LoadBalancerARM\n```\n\n```go\ntype NetworkInterfaceARM struct {\n\tARMResource\n\tnetwork.Interface\n}\n```\nNetworkInterfaceARM embeds the ARMResource type in network.Interface.\n\n```go\nfunc CreateNetworkInterfaces(cs *api.ContainerService) NetworkInterfaceARM\n```\n\n```go\ntype NetworkSecurityGroupARM struct {\n\tARMResource\n\tnetwork.SecurityGroup\n}\n```\nNetworkSecurityGroupARM embeds the ARMResource type in network.SecurityGroup.\n\n```go\nfunc CreateNetworkSecurityGroup(cs *api.ContainerService) NetworkSecurityGroupARM\n```\n\n```go\ntype PublicIPAddressARM struct {\n\tARMResource\n\tnetwork.PublicIPAddress\n}\n```\nPublicIPAddressARM embeds the ARMResource type in network.PublicIPAddress.\n\n```go\nfunc CreateClusterPublicIPAddress() PublicIPAddressARM\n```\nCreateClusterPublicIPAddress returns public ipv4 address resource for cluster this public ip address is created and added to the loadbalancer that's created with fqdn as name. ARM does not allow creating a loadbalancer with only ipv6 FE which is why a ipv4 fe is created here and added to lb.\n\n```go\nfunc CreateClusterPublicIPv6Address() PublicIPAddressARM\n```\nCreateClusterPublicIPv6Address returns public ipv6 address resource for cluster ipv6 fe is required to make egress work for ipv6 dual stack. This place holder can be removed in the future once changes are incorporated in the platform. TODO (aramase)\n\n```go\nfunc CreatePublicIPAddress() PublicIPAddressARM\n```\n\n```go\ntype RoleAssignmentARM struct {\n\tARMResource\n\tauthorization.RoleAssignment\n}\n```\nRoleAssignmentARM embeds the ARMResource type in authorization.RoleAssignment.\n\n```go\ntype RouteTableARM struct {\n\tARMResource\n\tnetwork.RouteTable\n}\n```\nRouteTableARM embeds the ARMResource type in network.RouteTable.\n\n```go\ntype StorageAccountARM struct {\n\tARMResource\n\tstorage.Account\n}\n```\nStorageAccountARM embeds the ARMResource type in storage.Account.\n\n```go\ntype SystemRoleAssignmentARM struct {\n\tARMResource\n\tsysauth.RoleAssignment\n}\n```\nSystemRoleAssignmentARM embeds the ARMResource type in authorization.SystemRoleAssignment(2018-01-01-preview).\n\n```go\ntype TemplateGenerator struct {\n\tTranslator *i18n.Translator\n}\n```\nTemplateGenerator represents the object that performs the template generation.\n\n```go\nfunc InitializeTemplateGenerator(ctx Context) (*TemplateGenerator, error)\n```\nInitializeTemplateGenerator creates a new template generator object\n\n```go\nfunc (t *TemplateGenerator) GenerateTemplate(containerService *api.ContainerService, generatorCode string, aksEngineVersion string) (templateRaw string, parametersRaw string, err error)\n```\nGenerateTemplate generates the template from the API Model\n\n```go\nfunc (t *TemplateGenerator) GenerateTemplateV2(containerService *api.ContainerService, generatorCode string, acsengineVersion string) (templateRaw string, parametersRaw string, err error)\n```\n\n```go\nfunc (t *TemplateGenerator) GetJumpboxCustomDataJSON(cs *api.ContainerService) string\n```\n\n```go\nfunc (t *TemplateGenerator) GetKubernetesLinuxNodeCustomDataJSONObject(cs *api.ContainerService, profile *api.AgentPoolProfile) string\n```\nGetKubernetesLinuxNodeCustomDataJSONObject returns Linux customData JSON object in the form { \"customData\": \"\\[base64(concat(\\\u003ccustomData string\u003e))]\" }\n\n```go\nfunc (t *TemplateGenerator) GetKubernetesWindowsNodeCustomDataJSONObject(cs *api.ContainerService, profile *api.AgentPoolProfile) string\n```\nGetKubernetesWindowsNodeCustomDataJSONObject returns Windows customData JSON object in the form { \"customData\": \"\\[base64(concat(\\\u003ccustomData string\u003e))]\" }\n\n```go\nfunc (t *TemplateGenerator) GetMasterCustomDataJSONObject(cs *api.ContainerService) string\n```\nGetMasterCustomDataJSONObject returns master customData JSON object in the form { \"customData\": \"\\[base64(concat(\\\u003ccustomData string\u003e))]\" }\n\n```go\ntype UserAssignedIdentitiesARM struct {\n\tARMResource\n\tmsi.Identity\n}\n```\nUserAssignedIdentitiesARM embeds the ARMResource type in msi.Identity.\n\n```go\ntype V20160330ContainerService struct {\n\tapi.TypeMeta\n\t*v20160330.ContainerService\n}\n```\nV20160330ContainerService is the type we read and write from file needed because the json that is sent to ARM and aks-engine is different from the json that the ACS RP Api gets from ARM\n\n```go\ntype VirtualMachineARM struct {\n\tARMResource\n\tcompute.VirtualMachine\n}\n```\nVirtualMachineARM embeds the ARMResource type in compute.VirtualMachine.\n\n```go\nfunc CreateMasterVM(cs *api.ContainerService) VirtualMachineARM\n```\n\n```go\ntype VirtualMachineExtensionARM struct {\n\tARMResource\n\tcompute.VirtualMachineExtension\n}\n```\nVirtualMachineExtensionARM embeds the ARMResource type in compute.VirtualMachineExtension.\n\n```go\nfunc CreateAKSBillingExtension(cs *api.ContainerService) VirtualMachineExtensionARM\n```\n\n```go\nfunc CreateAgentVMASAKSBillingExtension(cs *api.ContainerService, profile *api.AgentPoolProfile) VirtualMachineExtensionARM\n```\n\n```go\nfunc CreateCustomScriptExtension(cs *api.ContainerService) VirtualMachineExtensionARM\n```\n\n```go\ntype VirtualMachineScaleSetARM struct {\n\tARMResource\n\tcompute.VirtualMachineScaleSet\n}\n```\nVirtualMachineScaleSetARM embeds the ARMResource type in compute.VirtualMachineScaleSet.\n\n```go\nfunc CreateAgentVMSS(cs *api.ContainerService, profile *api.AgentPoolProfile) VirtualMachineScaleSetARM\n```\n\n```go\nfunc CreateMasterVMSS(cs *api.ContainerService) VirtualMachineScaleSetARM\n```\n\n```go\ntype VirtualNetworkARM struct {\n\tARMResource\n\tnetwork.VirtualNetwork\n}\n```\nVirtualNetworkARM embeds the ARMResource type in network.VirtualNetwork.\n\n```go\nfunc CreateVirtualNetwork(cs *api.ContainerService) VirtualNetworkARM\n```\n\n```go\ntype VlabsContainerService struct {\n\tapi.TypeMeta\n\t*vlabs.ContainerService\n}\n```\nVlabsContainerService is the type we read and write from file needed because the json that is sent to ARM and aks-engine is different from the json that the ACS RP Api gets from ARM\n\n","path":"github.com/devigned/aks-engine/pkg/engine","name":"engine","synopsis":"Package engine takes an AKS cluster model and generates the corresponding template.","isRedistributable":true}
