Documentation ¶
Overview ¶
Proof of Concepts for the Cloud-Barista Multi-Cloud Project.
- Cloud-Barista: https://github.com/cloud-barista
AZURE COMPUTE Hander (AZURE-SDK-FOR-GO:COMPUTE Version 28.0.0, Thanks AZURE.)
by powerkim@powerkim.co.kr, 2019.04.
Index ¶
- func CreateGroup(connInfo ConnectionInfo, groupName string, location string) (resources.Group, error)
- func CreateInstances(connInfo ConnectionInfo, groupName, location, baseName string, nicInfo NICInfo, ...) []*string
- func CreateNIC(connInfo ConnectionInfo, ...) (nic network.Interface, err error)
- func CreateNetworkSecurityGroup(connInfo ConnectionInfo, groupName, location, nsgName string) (nsg network.SecurityGroup, err error)
- func CreatePublicIP(connInfo ConnectionInfo, groupName, location, ipName string) (ip network.PublicIPAddress, err error)
- func CreateVirtualNetworkAndSubnets(connInfo ConnectionInfo, ...) (vnet network.VirtualNetwork, err error)
- func DeleteGroup(connInfo ConnectionInfo, groupName string) (result resources.GroupsDeleteFuture, err error)
- func DestroyInstances(connInfo ConnectionInfo, groupName string, instanceNames []*string)
- func GetNetworkSecurityGroup(connInfo ConnectionInfo, groupName, nsgName string) (network.SecurityGroup, error)
- func GetNic(connInfo ConnectionInfo, groupName string, nicName string) (network.Interface, error)
- func GetPublicIP(connInfo ConnectionInfo, groupName, ipName string) (network.PublicIPAddress, error)
- func GetVirtualNetworkSubnet(connInfo ConnectionInfo, groupName, vnetName string, subnetName string) (network.Subnet, error)
- type ConnectionInfo
- type ImageInfo
- type NICInfo
- type VMInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateGroup ¶
func CreateInstances ¶
func CreateInstances(connInfo ConnectionInfo, groupName, location, baseName string, nicInfo NICInfo, imageInfo ImageInfo, vmInfo VMInfo, maxCount int) []*string
CreateVM creates a new virtual machine with the specified name using the specified NIC. Username, password, and sshPublicKeyPath determine logon credentials.
func CreateNIC ¶
func CreateNIC(connInfo ConnectionInfo, groupName, location, vnetName, subnetName, nsgName, ipName, nicName string) (nic network.Interface, err error)
CreateNIC creates a new network interface. The Network Security Group is not a required parameter
func CreateNetworkSecurityGroup ¶
func CreateNetworkSecurityGroup(connInfo ConnectionInfo, groupName, location, nsgName string) (nsg network.SecurityGroup, err error)
CreateNetworkSecurityGroup creates a new network security group with rules set for allowing SSH and HTTPS use
func CreatePublicIP ¶
func CreatePublicIP(connInfo ConnectionInfo, groupName, location, ipName string) (ip network.PublicIPAddress, err error)
CreatePublicIP creates a new public IP
func CreateVirtualNetworkAndSubnets ¶
func CreateVirtualNetworkAndSubnets(connInfo ConnectionInfo, groupName, location, vnetName, subnet1Name, subnet2Name string) (vnet network.VirtualNetwork, err error)
func DeleteGroup ¶
func DeleteGroup(connInfo ConnectionInfo, groupName string) (result resources.GroupsDeleteFuture, err error)
func DestroyInstances ¶
func DestroyInstances(connInfo ConnectionInfo, groupName string, instanceNames []*string)
func GetNetworkSecurityGroup ¶
func GetNetworkSecurityGroup(connInfo ConnectionInfo, groupName, nsgName string) (network.SecurityGroup, error)
GetNetworkSecurityGroup returns an existing network security group
func GetPublicIP ¶
func GetPublicIP(connInfo ConnectionInfo, groupName, ipName string) (network.PublicIPAddress, error)
GetPublicIP returns an existing public IP
func GetVirtualNetworkSubnet ¶
func GetVirtualNetworkSubnet(connInfo ConnectionInfo, groupName, vnetName string, subnetName string) (network.Subnet, error)
GetVirtualNetworkSubnet returns an existing subnet from a virtual network
Types ¶
type ConnectionInfo ¶
type ConnectionInfo struct {
// contains filtered or unexported fields
}
Information for connection
func Connect ¶
func Connect(credentialFilePath string) ConnectionInfo