-
Notifications
You must be signed in to change notification settings - Fork 47
/
CloudConnect.go
32 lines (26 loc) · 1000 Bytes
/
CloudConnect.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Proof of Concepts of CB-Spider.
// The CB-Spider is a sub-Framework of the Cloud-Barista Multi-Cloud Project.
// The CB-Spider Mission is to connect all the clouds with a single interface.
//
// * Cloud-Barista: https://github.com/cloud-barista
//
// This is Connection interfaces of Cloud Driver.
//
// by CB-Spider Team, 2019.06.
package connect
import (
irs "github.com/cloud-barista/cb-spider/cloud-control-manager/cloud-driver/interfaces/resources"
)
type CloudConnection interface {
CreateImageHandler() (irs.ImageHandler, error)
//CreateVNetworkHandler() (irs.VNetworkHandler, error)
CreateVPCHandler() (irs.VPCHandler, error)
CreateSecurityHandler() (irs.SecurityHandler, error)
CreateKeyPairHandler() (irs.KeyPairHandler, error)
//CreateVNicHandler() (irs.VNicHandler, error)
//CreatePublicIPHandler() (irs.PublicIPHandler, error)
CreateVMHandler() (irs.VMHandler, error)
CreateVMSpecHandler() (irs.VMSpecHandler, error)
IsConnected() (bool, error)
Close() error
}