models

package
v0.0.0-...-098cb9e Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConnectivyRequestBody

func NewConnectivyRequestBody(source, target VMDetails, port uint) *connectivityRequestBody

NewConnectivyRequestBody return a struct of models.ConnectivityRequestBody

Types

type ConnectivityResponseBody

type ConnectivityResponseBody struct {
	ConnectionStatus string `json:"connectionStatus"`
}

ConnectivityResponseBody response body structure for networkwatcher api

type VMDetails

type VMDetails struct {
	// contains filtered or unexported fields
}

VMDetails struct that holds the information of a VM within an Azure resource id

func NewVMDetails

func NewVMDetails(vmResourceID string) (*VMDetails, error)

NewVMDetails the resourceid returning a vmDetails structure if success`

func (*VMDetails) GetRegion

func (vm *VMDetails) GetRegion() string

GetRegion return the region

func (*VMDetails) GetResourceGroupName

func (vm *VMDetails) GetResourceGroupName() string

GetResourceGroupName return the resource group

func (*VMDetails) GetResourceID

func (vm *VMDetails) GetResourceID() string

GetResourceID return the resourceID

func (*VMDetails) GetSubscriptionID

func (vm *VMDetails) GetSubscriptionID() string

GetSubscriptionID return the subscription from id

func (*VMDetails) GetVMName

func (vm *VMDetails) GetVMName() string

GetVMName return the VM Name

func (*VMDetails) SetRegion

func (vm *VMDetails) SetRegion(region string)

SetRegion updates the region with the information retrieved from azure

Jump to

Keyboard shortcuts

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