{"modulePath":"github.com/devigned/aks-engine","version":"v0.38.5","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package engine\n\n## Functions\n\n```go\nfunc ParseInput(path string) (*api.VlabsARMContainerService, error)\n```\nParseInput takes a template path and will parse that into a api.VlabsARMContainerService\n\n```go\nfunc ParseOutput(path string) (*api.ContainerService, error)\n```\nParseOutput takes the generated api model and will parse that into a api.ContainerService\n\n## Types\n\n```go\ntype Config struct {\n\tClientID              string `envconfig:\"CLIENT_ID\"`\n\tClientSecret          string `envconfig:\"CLIENT_SECRET\"`\n\tClientObjectID        string `envconfig:\"CLIENT_OBJECTID\"`\n\tMasterDNSPrefix       string `envconfig:\"DNS_PREFIX\"`\n\tAgentDNSPrefix        string `envconfig:\"DNS_PREFIX\"`\n\tPublicSSHKey          string `envconfig:\"PUBLIC_SSH_KEY\"`\n\tWindowsAdminPasssword string `envconfig:\"WINDOWS_ADMIN_PASSWORD\"`\n\tOrchestratorRelease   string `envconfig:\"ORCHESTRATOR_RELEASE\"`\n\tOrchestratorVersion   string `envconfig:\"ORCHESTRATOR_VERSION\"`\n\tOutputDirectory       string `envconfig:\"OUTPUT_DIR\" default:\"_output\"`\n\tCreateVNET            bool   `envconfig:\"CREATE_VNET\" default:\"false\"`\n\tEnableKMSEncryption   bool   `envconfig:\"ENABLE_KMS_ENCRYPTION\" default:\"false\"`\n\tDistro                string `envconfig:\"DISTRO\"`\n\tSubscriptionID        string `envconfig:\"SUBSCRIPTION_ID\"`\n\tTenantID              string `envconfig:\"TENANT_ID\"`\n\tImageName             string `envconfig:\"IMAGE_NAME\"`\n\tImageResourceGroup    string `envconfig:\"IMAGE_RESOURCE_GROUP\"`\n\n\tClusterDefinitionPath     string // The original template we want to use to build the cluster from.\n\tClusterDefinitionTemplate string // This is the template after we splice in the environment variables\n\tGeneratedDefinitionPath   string // Holds the contents of running aks-engine generate\n\tOutputPath                string // This is the root output path\n\tDefinitionName            string // Unique cluster name\n\tGeneratedTemplatePath     string // azuredeploy.json path\n\tGeneratedParametersPath   string // azuredeploy.parameters.json path\n}\n```\nConfig represents the configuration values of a template stored as env vars\n\n```go\nfunc ParseConfig(cwd, clusterDefinition, name string) (*Config, error)\n```\nParseConfig will return a new engine config struct taking values from env vars\n\n```go\ntype Engine struct {\n\tConfig             *Config\n\tClusterDefinition  *api.VlabsARMContainerService // Holds the parsed ClusterDefinition\n\tExpandedDefinition *api.ContainerService         // Holds the expanded ClusterDefinition\n}\n```\nEngine holds necessary information to interact with aks-engine cli\n\n```go\nfunc Build(cfg *config.Config, masterSubnetID string, agentSubnetIDs []string, isVMSS bool) (*Engine, error)\n```\nBuild takes a template path and will inject values based on provided environment variables it will then serialize the structs back into json and save it to outputPath\n\n```go\nfunc (e *Engine) AnyAgentIsLinux() bool\n```\nAnyAgentIsLinux will return true if there is at least 1 linux agent pool\n\n```go\nfunc (e *Engine) Deploy(location string) error\n```\nDeploy will run aks-engine deploy on a given cluster definition\n\n```go\nfunc (e *Engine) Generate() error\n```\nGenerate will run aks-engine generate on a given cluster definition\n\n```go\nfunc (e *Engine) GetWindowsTestImages() (*WindowsTestImages, error)\n```\nGetWindowsTestImages will return the right list of container images for the Windows version used\n\n```go\nfunc (e *Engine) HasAddon(name string) (bool, api.KubernetesAddon)\n```\nHasAddon will return true if an addon is enabled\n\n```go\nfunc (e *Engine) HasNetworkPolicy(name string) bool\n```\nHasNetworkPolicy will return true if the specified network policy is enabled\n\n```go\nfunc (e *Engine) HasWindowsAgents() bool\n```\nHasWindowsAgents will return true is there is at least 1 windows agent pool\n\n```go\nfunc (e *Engine) NodeCount() int\n```\nNodeCount returns the number of nodes that should be provisioned for a given cluster definition\n\n```go\nfunc (e *Engine) Write() error\n```\nWrite will write the cluster definition to disk\n\n```go\ntype WindowsTestImages struct {\n\tIIS        string\n\tServerCore string\n}\n```\nWindowsTestImages holds the Windows container image names used in this test pass\n\n","path":"github.com/devigned/aks-engine/test/e2e/engine","name":"engine","synopsis":"","isRedistributable":true}
