Documentation ¶
Overview ¶
* * File : vm.go * Author : Iman Tabrizian <[email protected]> * Date : 04.04.2019 * Last Modified Date: 17.05.2019 * Last Modified By : Iman Tabrizian <[email protected]>
Index ¶
- func AuthRequest(verb string, url string, body string, authToken string) []byte
- type App
- type AuthConfiguration
- type Configuration
- type IOpenStackClient
- type IVMConfiguration
- type VM
- func CreateOrFindVM(osClient IOpenStackClient, name string, vmConfiguration IVMConfiguration) (*VM, error)
- func GetVM(osClient IOpenStackClient, id string) (*VM, error)
- func GetVMByName(osClient IOpenStackClient, name string) (*VM, error)
- func NewVM(osClient IOpenStackClient, name string, vmConfiguration IVMConfiguration) (*VM, error)
- type VMConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthConfiguration ¶
type Configuration ¶
type Configuration struct { Auth AuthConfiguration VM VMConfiguration }
type IOpenStackClient ¶
type IVMConfiguration ¶
type VM ¶
type VM struct { Name string IP []string OverlayIp string Id string OsClient IOpenStackClient }
func CreateOrFindVM ¶
func CreateOrFindVM(osClient IOpenStackClient, name string, vmConfiguration IVMConfiguration) (*VM, error)
func GetVMByName ¶
func GetVMByName(osClient IOpenStackClient, name string) (*VM, error)
func NewVM ¶
func NewVM(osClient IOpenStackClient, name string, vmConfiguration IVMConfiguration) (*VM, error)
type VMConfiguration ¶
func (*VMConfiguration) GetFlavor ¶
func (vmConfiguration *VMConfiguration) GetFlavor() string
func (*VMConfiguration) GetImage ¶
func (vmConfiguration *VMConfiguration) GetImage() string
func (*VMConfiguration) GetNetwork ¶
func (vmConfiguration *VMConfiguration) GetNetwork() string
func (*VMConfiguration) GetSecgroup ¶
func (vmConfiguration *VMConfiguration) GetSecgroup() string
Click to show internal directories.
Click to hide internal directories.