azurehandler

package
v0.0.0-...-6e548bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Proof of Concepts for the Cloud-Barista Multi-Cloud Project.

AZURE COMPUTE Hander (AZURE-SDK-FOR-GO:COMPUTE Version 28.0.0, Thanks AZURE.)

by powerkim@powerkim.co.kr, 2019.04.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateGroup

func CreateGroup(connInfo ConnectionInfo, groupName string, location string) (resources.Group, error)

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 GetNic

func GetNic(connInfo ConnectionInfo, groupName string, nicName string) (network.Interface, error)

GetNic returns an existing network interface

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

type ImageInfo

type ImageInfo struct {
	Publisher string
	Offer     string
	Sku       string
	Version   string
}

type NICInfo

type NICInfo struct {
	VirtualNetworkName   string
	SubnetName           string
	NetworkSecurityGroup string
}

type VMInfo

type VMInfo struct {
	UserName         string
	Password         string
	SshPublicKeyPath string
}

Directories

Path Synopsis
Proof of Concepts for the Cloud-Barista Multi-Cloud Project.
Proof of Concepts for the Cloud-Barista Multi-Cloud Project.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL