{"modulePath":"github.com/devigned/aks-engine","version":"v0.38.5","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package vlabs\n\nPackage vlabs stores an experimental API model.\n\n## Constants\n\n```go\nconst (\n\t// MinAgentCount are the minimum number of agents\n\tMinAgentCount = 1\n\t// MaxAgentCount are the maximum number of agents\n\tMaxAgentCount = 100\n\t// MinDiskSizeGB specifies the minimum attached disk size\n\tMinDiskSizeGB = 1\n\t// MaxDiskSizeGB specifies the maximum attached disk size\n\tMaxDiskSizeGB = 1023\n)\n```\nvalidation values\n\n```go\nconst (\n\t// StorageAccount means that the nodes use raw storage accounts for their os and attached volumes\n\tStorageAccount = \"StorageAccount\"\n\t// ManagedDisks means that the nodes use managed disks for their os and attached volumes\n\tManagedDisks = \"ManagedDisks\"\n)\n```\nstorage profiles\n\n```go\nconst (\n\t// APIVersion is the version of this API\n\tAPIVersion = \"vlabs\"\n)\n```\n\n## Types\n\n```go\ntype AccessProfile struct {\n\tRoleName   string `json:\"roleName\"`\n\tKubeConfig string `json:\"kubeConfig\"`\n}\n```\nAccessProfile represents role name and kubeconfig\n\n```go\ntype AgentPoolProfile struct {\n\tName                string `json:\"name\" validate:\"required\"`\n\tCount               int    `json:\"count\" validate:\"required,min=1,max=100\"`\n\tVMSize              string `json:\"vmSize\" validate:\"required\"`\n\tOSDiskSizeGB        int    `json:\"osDiskSizeGB,omitempty\" validate:\"min=0,max=1023\"`\n\tAvailabilityProfile string `json:\"availabilityProfile\"`\n\tStorageProfile      string `json:\"storageProfile\" validate:\"eq=StorageAccount|eq=ManagedDisks|len=0\"`\n\tVnetSubnetID        string `json:\"vnetSubnetID,omitempty\"`\n\n\t// OSType is the operating system type for agents\n\t// Set as nullable to support backward compat because\n\t// this property was added later.\n\t// If the value is null or not set, it defaulted to Linux.\n\tOSType OSType `json:\"osType,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nAgentPoolProfile represents configuration of VMs running agent daemons that register with the master and offer resources to host applications in containers.\n\n```go\nfunc (a *AgentPoolProfile) GetSubnet() string\n```\nGetSubnet returns the read-only subnet for the agent pool\n\n```go\nfunc (a *AgentPoolProfile) IsCustomVNET() bool\n```\nIsCustomVNET returns true if the customer brought their own VNET\n\n```go\nfunc (a *AgentPoolProfile) IsLinux() bool\n```\nIsLinux returns true if the agent pool is linux\n\n```go\nfunc (a *AgentPoolProfile) IsManagedDisks() bool\n```\nIsManagedDisks returns true if the customer specified managed disks\n\n```go\nfunc (a *AgentPoolProfile) IsStorageAccount() bool\n```\nIsStorageAccount returns true if the customer specified storage account\n\n```go\nfunc (a *AgentPoolProfile) IsWindows() bool\n```\nIsWindows returns true if the agent pool is windows\n\n```go\nfunc (a *AgentPoolProfile) SetSubnet(subnet string)\n```\nSetSubnet sets the read-only subnet for the agent pool\n\n```go\nfunc (a *AgentPoolProfile) UnmarshalJSON(b []byte) error\n```\nUnmarshalJSON unmarshal json using the default behavior And do fields manipulation, such as populating default value\n\n```go\nfunc (a *AgentPoolProfile) Validate() error\n```\nValidate implements APIObject\n\n```go\ntype CertificateProfile struct {\n\t// CaCertificate is the certificate authority certificate.\n\tCaCertificate string `json:\"caCertificate,omitempty\"`\n\t// CaPrivateKey is the certificate authority key.\n\tCaPrivateKey string `json:\"caPrivateKey,omitempty\"`\n\t// ApiServerCertificate is the rest api server certificate, and signed by the CA\n\tAPIServerCertificate string `json:\"apiServerCertificate,omitempty\"`\n\t// ApiServerPrivateKey is the rest api server private key, and signed by the CA\n\tAPIServerPrivateKey string `json:\"apiServerPrivateKey,omitempty\"`\n\t// ClientCertificate is the certificate used by the client kubelet services and signed by the CA\n\tClientCertificate string `json:\"clientCertificate,omitempty\"`\n\t// ClientPrivateKey is the private key used by the client kubelet services and signed by the CA\n\tClientPrivateKey string `json:\"clientPrivateKey,omitempty\"`\n\t// KubeConfigCertificate is the client certificate used for kubectl cli and signed by the CA\n\tKubeConfigCertificate string `json:\"kubeConfigCertificate,omitempty\"`\n\t// KubeConfigPrivateKey is the client private key used for kubectl cli and signed by the CA\n\tKubeConfigPrivateKey string `json:\"kubeConfigPrivateKey,omitempty\"`\n}\n```\nCertificateProfile contains cert material for the Kubernetes cluster\n\n```go\ntype LinuxProfile struct {\n\tAdminUsername string `json:\"adminUsername\" validate:\"required\"`\n\n\tSSH struct {\n\t\tPublicKeys []PublicKey `json:\"publicKeys\" validate:\"required,len=1\"`\n\t} `json:\"ssh\" validate:\"required\"`\n}\n```\nLinuxProfile represents the Linux configuration passed to the cluster\n\n```go\nfunc (l *LinuxProfile) Validate() error\n```\nValidate implements APIObject\n\n```go\ntype ManagedCluster struct {\n\tID       string                `json:\"id,omitempty\"`\n\tLocation string                `json:\"location,omitempty\" validate:\"required\"`\n\tName     string                `json:\"name,omitempty\"`\n\tPlan     *ResourcePurchasePlan `json:\"plan,omitempty\"`\n\tTags     map[string]string     `json:\"tags,omitempty\"`\n\tType     string                `json:\"type,omitempty\"`\n\n\tProperties *Properties `json:\"properties\"`\n}\n```\nManagedCluster complies with the ARM model of resource definition in a JSON template.\n\n```go\ntype OSType string\n```\nOSType represents OS types of agents\n\n```go\nconst (\n\t// Windows OSType\n\tWindows OSType = \"Windows\"\n\t// Linux OSType\n\tLinux OSType = \"Linux\"\n)\n```\n\n```go\ntype Properties struct {\n\tProvisioningState       ProvisioningState        `json:\"provisioningState,omitempty\"`\n\tKubernetesVersion       string                   `json:\"kubernetesVersion\"`\n\tDNSPrefix               string                   `json:\"dnsPrefix\" validate:\"required\"`\n\tFQDN                    string                   `json:\"fqdn,omitempty\"`\n\tAgentPoolProfiles       []*AgentPoolProfile      `json:\"agentPoolProfiles,omitempty\" validate:\"dive,required\"`\n\tLinuxProfile            *LinuxProfile            `json:\"linuxProfile,omitempty\" validate:\"required\"`\n\tWindowsProfile          *WindowsProfile          `json:\"windowsProfile,omitempty\"`\n\tServicePrincipalProfile *ServicePrincipalProfile `json:\"servicePrincipalProfile,omitempty\"`\n\tAccessProfiles          map[string]AccessProfile `json:\"accessProfiles,omitempty\"`\n\tCertificateProfile      *CertificateProfile      `json:\"certificateProfile,omitempty\" validate:\"required\"`\n}\n```\nProperties represents the AKS cluster definition\n\n```go\nfunc (a *Properties) HasWindows() bool\n```\nHasWindows returns true if the cluster contains windows\n\n```go\nfunc (a *Properties) Validate() error\n```\nValidate implements APIObject\n\n```go\ntype ProvisioningState string\n```\nProvisioningState represents the current state of container service resource.\n\n```go\nconst (\n\t// Creating means ContainerService resource is being created.\n\tCreating ProvisioningState = \"Creating\"\n\t// Updating means an existing ContainerService resource is being updated\n\tUpdating ProvisioningState = \"Updating\"\n\t// Failed means resource is in failed state\n\tFailed ProvisioningState = \"Failed\"\n\t// Succeeded means resource created succeeded during last create/update\n\tSucceeded ProvisioningState = \"Succeeded\"\n\t// Deleting means resource is in the process of being deleted\n\tDeleting ProvisioningState = \"Deleting\"\n\t// Migrating means resource is being migrated from one subscription or\n\t// resource group to another\n\tMigrating ProvisioningState = \"Migrating\"\n\t// Upgrading means an existing resource is being upgraded\n\tUpgrading ProvisioningState = \"Upgrading\"\n)\n```\n\n```go\ntype PublicKey struct {\n\tKeyData string `json:\"keyData\"`\n}\n```\nPublicKey represents an SSH key for LinuxProfile\n\n```go\ntype ResourcePurchasePlan struct {\n\tName          string `json:\"name,omitempty\"`\n\tProduct       string `json:\"product,omitempty\"`\n\tPromotionCode string `json:\"promotionCode,omitempty\"`\n\tPublisher     string `json:\"publisher,omitempty\"`\n}\n```\nResourcePurchasePlan defines resource plan as required by ARM for billing purposes.\n\n```go\ntype ServicePrincipalProfile struct {\n\tClientID string `json:\"clientId,omitempty\" validate:\"required\"`\n\tSecret   string `json:\"secret,omitempty\"`\n}\n```\nServicePrincipalProfile contains the client and secret used by the cluster for Azure Resource CRUD The 'Secret' parameter could be either a plain text, or referenced to a secret in a keyvault. In the latter case, the format of the parameter's value should be \"/subscriptions/\\\u003cSUB\\_ID\u003e/resourceGroups/\\\u003cRG\\_NAME\u003e/providers/Microsoft.KeyVault/vaults/\\\u003cKV\\_NAME\u003e/secrets/\\\u003cNAME\u003e\\[/\\\u003cVERSION\u003e]\" where:\n\n\t\u003cSUB_ID\u003e is the subscription ID of the keyvault\n\t\u003cRG_NAME\u003e is the resource group of the keyvault\n\t\u003cKV_NAME\u003e is the name of the keyvault\n\t\u003cNAME\u003e is the name of the secret.\n\t\u003cVERSION\u003e (optional) is the version of the secret (default: the latest version)\n\n```go\ntype WindowsProfile struct {\n\tAdminUsername string `json:\"adminUsername,omitempty\" validate:\"required\"`\n\tAdminPassword string `json:\"adminPassword,omitempty\"`\n\tImageVersion  string `json:\"imageVersion,omitempty\"`\n}\n```\nWindowsProfile represents the Windows configuration passed to the cluster\n\n","path":"github.com/devigned/aks-engine/pkg/api/agentPoolOnlyApi/vlabs","name":"vlabs","synopsis":"Package vlabs stores an experimental API model.","isRedistributable":true}
