Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Admin Role - has full access permissions OwnerRoleName = "Owner" // Contributor Role - has full access, but can't assign or create roles ContributorRoleName = "Contributor" // Reader Role - has access to view all resource, but can't make changes ReaderRoleName = "Reader" // Location Contributor Role - has permissions to run any operation on the location resource LocationContributorRoleName = "LocationContributor" // Group Contributor Role - has permissions to run any operation on the group resource GroupContributorRoleName = "GroupContributor" // Node Contributor Role - has permissions to create and get nodes NodeContributorRoleName = "NodeContributor" // Cluster Contributor Role - has permissions to create and get clusters ClusterContributorRoleName = "ClusterContributor" // MacPool Contributor Role - has permissions to run any operation on mac pools MacPoolContributorRoleName = "MacPoolContributor" // VipPool Contributor Role - has permissions to run any operation on vip pools VipPoolContributorRoleName = "VipPoolContributor" // GalleryImage Contributor Role - has permissions to run any operation on gallery images GalleryImageContributorRoleName = "GalleryImageContributor" // ControlPlane Contributor Role - has permissions to run any operation on control planes ControlPlaneContributorRoleName = "ControlPlaneContributor" // StorageContainer Contributor Role - has permissions to run any operation on storage containers StorageContainerContributorRoleName = "StorageContainerContributor" // LB Contributor Role - has permissions to run any operation on LBs LBContributorRoleName = "LBContributor" // Network Interface Contributor Role - has permissions to run any operation on network interfaces NIContributorRoleName = "NetworkInterfaceContributor" // Network Security Group Contributor Role - has permissions to run any operation on network security groups NSGContributorRoleName = "NetworkSecurityGroupContributor" // VM Contributor Role - has permissions to run any operation on VMs VMContributorRoleName = "VMContributor" // VM Updater Role - has permissions to update VMs VMUpdaterRoleName = "VMUpdater" // VirtualMachineImage Contributor Role - has permissions to run any operation on VirtualMachineImages VMIContributorRoleName = "VirtualMachineImageContributor" // VirtualMachineScaleSet Contributor Role - has permissions to run any operation on VirtualMachineScaleSets VMSSContributorRoleName = "VMSSContributor" // BareMetalMachine Contributor Role - has permissions to run any operation on BareMetalMachines BMMContributorRoleName = "BareMetalMachineContributor" // VirtualNetwork Contributor Role - has permissions to run any operation on VirtualNetworks VNetContributorRoleName = "VirtualNetworkContributor" // LogicalNetwork Contributor Role - has permissions to run any operation on LogicalNetworks LNetContributorRoleName = "LogicalNetworkContributor" // VirtualHardDisk Contributor Role - has permissions to run any operation on VirtualHardDisks VHDContributorRoleName = "VirtualHardDiskContributor" // Kubernetes Contributor Role - has permissions to run any operation on Kubernetes resources KubernetesContributorRoleName = "KubernetesContributor" // EtcdCluster Contributor Role - has permissions to run any operation on EtcdClusters EtcdClusterContributorRoleName = "EtcdClusterContributor" // EtcdServer Contributor Role - has permissions to run any operation on EtcdServers EtcdServerContributorRoleName = "EtcdServerContributor" // Role Contributor Role - has permissions to operate on roles and assign them RoleContributorRoleName = "RoleContributor" // Identity Contributor Role - has permissions to run any operation on Identities IdentityContributorRoleName = "IdentityContributor" // Certificate Contributor Role - has permissions to run any operation on Certificates CertContributorRoleName = "CertificateContributor" // KeyVault Contributor Role - has permissions to run any operation on KeyVaults KeyVaultContributorRoleName = "KeyVaultContributor" // Key Contributor role - has permissions to run any operation on Keys KeyContributorRoleName = "KeyContributor" // Secret Contributor role - has permissions to run any operation on Secrets SecretContributorRoleName = "SecretContributor" // AvailabilitySet Contributor Role - has permissions to run any operations on AvailabilitySets AvailabilitySetContributorRoleName = "AvailabilitySetContributor" // AvailabilityZone Contributor Role - has permissions to run any operations on AvailabilityZones AvailabilityZoneContributorRoleName = "AvailabilityZoneContributor" // Location Reader role - has permissions to run read operations on locations LocationReaderRoleName = "LocationReader" // Group Reader Role - has permissions to run read operations on the group resource GroupReaderRoleName = "GroupReader" // Node Reader Role - has permissions to get nodes NodeReaderRoleName = "NodeReader" // Cluster Reader Role - has permissions to get clusters ClusterReaderRoleName = "ClusterReader" // MacPool Reader Role - has permissions to run read operations on mac pools MacPoolReaderRoleName = "MacPoolReader" // VipPool Reader Role - has permissions to run read operations on vip pools VipPoolReaderRoleName = "VipPoolReader" // GalleryImage Reader Role - has permissions to run read operations on gallery images GalleryImageReaderRoleName = "GalleryImageReader" // ControlPlane Reader Role - has permissions to run read operations on control planes ControlPlaneReaderRoleName = "ControlPlaneReader" // StorageContainer Reader Role - has permissions to run read operations on storage containers StorageContainerReaderRoleName = "StorageContainerReader" // LB Reader Role - has permissions to run read operations on LBs and interfaces LBReaderRoleName = "LBReader" // Network Interface Reader Role - has permissions to run read operations on network interfaces NIReaderRoleName = "NetworkInterfaceReader" // Network Security Group Reader Role - has permissions to run read operations on network security groups NSGReaderRoleName = "NetworkSecurityGroupReader" // VM Reader Role - has permissions to run read operations on VMs VMReaderRoleName = "VMReader" // VirtualMachineImage Reader Role - has permissions to run read operations on VirtualMachineImages VMIReaderRoleName = "VirtualMachineImageReader" // VirtualMachineScaleSet Reader Role - has permissions to run read operations on VirtualMachineScaleSets VMSSReaderRoleName = "VMSSReader" // BareMetalMachine Reader Role - has permissions to run read operations on BareMetalMachines BMMReaderRoleName = "BareMetalMachineReader" // VirtualNetwork Reader Role - has permissions to run read operations on VirtualNetworks VNetReaderRoleName = "VirtualNetworkReader" // LogicalNetwork Reader Role - has permissions to run read operations on LogicalNetworks LNetReaderRoleName = "LogicalNetworkReader" // VirtualHardDisk Reader Role - has permissions to run read operations on VirtualHardDisks VHDReaderRoleName = "VirtualHardDiskReader" // Kubernetes Reader Role - has permissions to run read operations on Kubernetes resources KubernetesReaderRoleName = "KubernetesReader" // EtcdCluster Reader Role - has permissions to run read operations on EtcdClusters EtcdClusterReaderRoleName = "EtcdClusterReader" // EtcdServer Reader Role - has permissions to run read operations on EtcdServers EtcdServerReaderRoleName = "EtcdServerReader" // Identity Reader Role - has permissions to run read operations on Identities IdentityReaderRoleName = "IdentityReader" // Role Reader Role - has permissions to operate on roles and assign them RoleReaderRoleName = "RoleReader" // Certificate Reader Role - has permissions to run read operations on Certificates CertReaderRoleName = "CertificateReader" // KeyVault Reader Role - has permissions to run read operations on KeyVaults KeyVaultReaderRoleName = "KeyVaultReader" // Key Reader role - has permissions to run read operations on Keys KeyReaderRoleName = "KeyReader" // Secret Reader role - has permissions to run read operations on Secrets SecretReaderRoleName = "SecretReader" // Health Reader role - has permissions to read agent health information HealthReaderRoleName = "HealthReader" // AvailabilitySet Reader Role - has permissions to run read operations on AvailabilitySets AvailabilitySetReaderRoleName = "AvailabilitySetReader" // Certificate Signer Role - has permissions to run sign and renew operations on Certificates CertSignerRoleName = "CertificateSigner" // AvailabilityZone Reader Role - has permissions to run read operations on AvailabilityZones AvailabilityZoneReaderRoleName = "AvailabilityZoneReader" )
Default Roles
View Source
const ( NvidiaT4Name = "NVIDIA Tesla T4" NvidiaA2Name = "NVIDIA A2" NvidiaA16Name = "NVIDIA A16" NvidiaA30Name = "NVIDIA A30" NvidiaA100_40Name = "NVIDIA A100 40GB" NvidiaA100_80Name = "NVIDIA A100 80GB" NvidiaH100Name = "NVIDIA H100" NvidiaM60Name = "NVIDIA Tesla M60" )
GPU Type names for Moc
View Source
const (
DefaultServerContextTimeout = 120 * time.Second
)
Variables ¶
View Source
var VirtualMachineSize_value = map[pb.VirtualMachineSizeType]VmSize{ pb.VirtualMachineSizeType_Default: { CpuCount: 4, MemoryMB: 4096, }, pb.VirtualMachineSizeType_Standard_A2_v2: { CpuCount: 2, MemoryMB: 4096, }, pb.VirtualMachineSizeType_Standard_A4_v2: { CpuCount: 4, MemoryMB: 8192, }, pb.VirtualMachineSizeType_Standard_D2s_v3: { CpuCount: 2, MemoryMB: 8192, }, pb.VirtualMachineSizeType_Standard_D4s_v3: { CpuCount: 4, MemoryMB: 16384, }, pb.VirtualMachineSizeType_Standard_D8s_v3: { CpuCount: 8, MemoryMB: 32768, }, pb.VirtualMachineSizeType_Standard_D16s_v3: { CpuCount: 16, MemoryMB: 65536, }, pb.VirtualMachineSizeType_Standard_D32s_v3: { CpuCount: 32, MemoryMB: 131072, }, pb.VirtualMachineSizeType_Standard_DS2_v2: { CpuCount: 2, MemoryMB: 7168, }, pb.VirtualMachineSizeType_Standard_DS3_v2: { CpuCount: 2, MemoryMB: 14336, }, pb.VirtualMachineSizeType_Standard_DS4_v2: { CpuCount: 8, MemoryMB: 28672, }, pb.VirtualMachineSizeType_Standard_DS5_v2: { CpuCount: 16, MemoryMB: 57344, }, pb.VirtualMachineSizeType_Standard_DS13_v2: { CpuCount: 8, MemoryMB: 57344, }, pb.VirtualMachineSizeType_Standard_K8S_v1: { CpuCount: 4, MemoryMB: 2048, }, pb.VirtualMachineSizeType_Standard_K8S2_v1: { CpuCount: 2, MemoryMB: 2048, }, pb.VirtualMachineSizeType_Standard_K8S3_v1: { CpuCount: 4, MemoryMB: 6144, }, pb.VirtualMachineSizeType_Standard_K8S4_v1: { CpuCount: 4, MemoryMB: 4096, }, pb.VirtualMachineSizeType_Standard_K8S5_v1: { CpuCount: 2, MemoryMB: 1024, }, pb.VirtualMachineSizeType_Standard_F16s_HPN: { CpuCount: 16, MemoryMB: 32768, }, pb.VirtualMachineSizeType_Standard_NK6: { CpuCount: 6, GpuCount: 1, GpuName: NvidiaT4Name, MemoryMB: 12288, GpuAssignMode: GpuAssignTypeDDA, }, pb.VirtualMachineSizeType_Standard_NK12: { CpuCount: 12, GpuCount: 2, GpuName: NvidiaT4Name, MemoryMB: 24576, GpuAssignMode: GpuAssignTypeDDA, }, pb.VirtualMachineSizeType_Standard_NV6: { CpuCount: 6, GpuCount: 1, GpuName: NvidiaM60Name, MemoryMB: 57344, GpuAssignMode: GpuAssignTypeDDA, }, pb.VirtualMachineSizeType_Standard_NV12: { CpuCount: 12, GpuCount: 2, GpuName: NvidiaM60Name, MemoryMB: 131072, GpuAssignMode: GpuAssignTypeDDA, }, pb.VirtualMachineSizeType_Standard_NC4_A2: { CpuCount: 4, GpuCount: 1, GpuName: NvidiaA2Name, MemoryMB: 8192, GpuAssignMode: GpuAssignTypeDDA, }, pb.VirtualMachineSizeType_Standard_NC8_A2: { CpuCount: 8, GpuCount: 1, GpuName: NvidiaA2Name, MemoryMB: 16384, GpuAssignMode: GpuAssignTypeDDA, }, pb.VirtualMachineSizeType_Standard_NC16_A2: { CpuCount: 16, GpuCount: 2, GpuName: NvidiaA2Name, MemoryMB: 65536, GpuAssignMode: GpuAssignTypeDDA, }, pb.VirtualMachineSizeType_Standard_NC32_A2: { CpuCount: 32, GpuCount: 2, GpuName: NvidiaA2Name, MemoryMB: 131072, GpuAssignMode: GpuAssignTypeDDA, }, pb.VirtualMachineSizeType_Standard_NC4_A16: { CpuCount: 4, GpuCount: 1, GpuName: NvidiaA16Name, MemoryMB: 8192, GpuAssignMode: GpuAssignTypeDDA, }, pb.VirtualMachineSizeType_Standard_NC8_A16: { CpuCount: 8, GpuCount: 1, GpuName: NvidiaA16Name, MemoryMB: 16384, GpuAssignMode: GpuAssignTypeDDA, }, pb.VirtualMachineSizeType_Standard_NC16_A16: { CpuCount: 16, GpuCount: 2, GpuName: NvidiaA16Name, MemoryMB: 65536, GpuAssignMode: GpuAssignTypeDDA, }, pb.VirtualMachineSizeType_Standard_NC32_A16: { CpuCount: 32, GpuCount: 2, GpuName: NvidiaA16Name, MemoryMB: 131072, GpuAssignMode: GpuAssignTypeDDA, }, pb.VirtualMachineSizeType_Standard_NC4_A30: { CpuCount: 4, GpuCount: 1, GpuName: NvidiaA30Name, MemoryMB: 8192, GpuAssignMode: GpuAssignTypeDDA, }, pb.VirtualMachineSizeType_Standard_NC8_A30: { CpuCount: 8, GpuCount: 1, GpuName: NvidiaA30Name, MemoryMB: 16384, GpuAssignMode: GpuAssignTypeDDA, }, pb.VirtualMachineSizeType_Standard_NC16_A30: { CpuCount: 16, GpuCount: 2, GpuName: NvidiaA30Name, MemoryMB: 65536, GpuAssignMode: GpuAssignTypeDDA, }, pb.VirtualMachineSizeType_Standard_NC32_A30: { CpuCount: 32, GpuCount: 2, GpuName: NvidiaA30Name, MemoryMB: 131072, GpuAssignMode: GpuAssignTypeDDA, }, pb.VirtualMachineSizeType_Standard_NC4_A100_40: { CpuCount: 4, GpuCount: 1, GpuName: NvidiaA100_40Name, MemoryMB: 8192, GpuAssignMode: GpuAssignTypeDDA, }, pb.VirtualMachineSizeType_Standard_NC8_A100_40: { CpuCount: 8, GpuCount: 1, GpuName: NvidiaA100_40Name, MemoryMB: 16384, GpuAssignMode: GpuAssignTypeDDA, }, pb.VirtualMachineSizeType_Standard_NC16_A100_40: { CpuCount: 16, GpuCount: 2, GpuName: NvidiaA100_40Name, MemoryMB: 65536, GpuAssignMode: GpuAssignTypeDDA, }, pb.VirtualMachineSizeType_Standard_NC32_A100_40: { CpuCount: 32, GpuCount: 2, GpuName: NvidiaA100_40Name, MemoryMB: 131072, GpuAssignMode: GpuAssignTypeDDA, }, pb.VirtualMachineSizeType_Standard_NC4_A100_80: { CpuCount: 4, GpuCount: 1, GpuName: NvidiaA100_80Name, MemoryMB: 8192, GpuAssignMode: GpuAssignTypeDDA, }, pb.VirtualMachineSizeType_Standard_NC8_A100_80: { CpuCount: 8, GpuCount: 1, GpuName: NvidiaA100_80Name, MemoryMB: 16384, GpuAssignMode: GpuAssignTypeDDA, }, pb.VirtualMachineSizeType_Standard_NC16_A100_80: { CpuCount: 16, GpuCount: 2, GpuName: NvidiaA100_80Name, MemoryMB: 65536, GpuAssignMode: GpuAssignTypeDDA, }, pb.VirtualMachineSizeType_Standard_NC32_A100_80: { CpuCount: 32, GpuCount: 2, GpuName: NvidiaA100_80Name, MemoryMB: 131072, GpuAssignMode: GpuAssignTypeDDA, }, pb.VirtualMachineSizeType_Standard_NC24_H100: { CpuCount: 24, GpuCount: 1, GpuName: NvidiaH100Name, MemoryMB: 225280, GpuAssignMode: GpuAssignTypeDDA, }, pb.VirtualMachineSizeType_Standard_NC48_H100: { CpuCount: 48, GpuCount: 2, GpuName: NvidiaH100Name, MemoryMB: 450560, GpuAssignMode: GpuAssignTypeDDA, }, pb.VirtualMachineSizeType_Standard_NC80_H100: { CpuCount: 80, GpuCount: 8, GpuName: NvidiaH100Name, MemoryMB: 921600, GpuAssignMode: GpuAssignTypeDDA, }, pb.VirtualMachineSizeType_Standard_NC96_H100: { CpuCount: 96, GpuCount: 8, GpuName: NvidiaH100Name, MemoryMB: 1945600, GpuAssignMode: GpuAssignTypeDDA, }, }
innerMap is captured in the closure returned below
Functions ¶
This section is empty.
Types ¶
type GpuAssignType ¶ added in v0.10.16
type GpuAssignType = int32
const ( GpuAssignTypeNone GpuAssignType = 0 GpuAssignTypeDDA GpuAssignType = 1 GpuAssignTypeGpuPv GpuAssignType = 2 )
type VmSize ¶ added in v0.10.16
type VmSize struct { CpuCount int GpuCount int GpuName string MemoryMB int GpuAssignMode GpuAssignType GpuList []*pb.VirtualMachineGPU }
Click to show internal directories.
Click to hide internal directories.