支持natgateway同步

This commit is contained in:
ioito
2019-06-12 11:49:19 +08:00
parent 2541ebc16c
commit 0d31819208
53 changed files with 2324 additions and 135 deletions
+17
View File
@@ -0,0 +1,17 @@
package multicloud
import "time"
type SBillingBase struct{}
func (self *SBillingBase) GetBillingType() string {
return ""
}
func (self *SBillingBase) GetCreatedAt() time.Time {
return time.Time{}
}
func (self *SBillingBase) GetExpiredAt() time.Time {
return time.Time{}
}
+24
View File
@@ -0,0 +1,24 @@
package multicloud
import (
"fmt"
"yunion.io/x/onecloud/pkg/cloudprovider"
)
type SNatGatewayBase struct {
SResourceBase
SBillingBase
}
func (nat *SNatGatewayBase) GetIEips() ([]cloudprovider.ICloudEIP, error) {
return nil, fmt.Errorf("Not Implemented GetIEips")
}
func (nat *SNatGatewayBase) GetINatDTables() ([]cloudprovider.ICloudNatDTable, error) {
return nil, fmt.Errorf("Not Implemented GetINatDTables")
}
func (nat *SNatGatewayBase) GetINatSTables() ([]cloudprovider.ICloudNatSTable, error) {
return nil, fmt.Errorf("Not Implemented GetINatSTables")
}
+17
View File
@@ -0,0 +1,17 @@
package multicloud
import "yunion.io/x/jsonutils"
type SResourceBase struct{}
func (self *SResourceBase) IsEmulated() bool {
return false
}
func (self *SResourceBase) GetMetadata() *jsonutils.JSONDict {
return nil
}
func (self *SResourceBase) Refresh() error {
return nil
}
+15
View File
@@ -0,0 +1,15 @@
package multicloud
import (
"fmt"
"yunion.io/x/onecloud/pkg/cloudprovider"
)
type SVpc struct {
SResourceBase
}
func (self *SVpc) GetINatGateways() ([]cloudprovider.ICloudNatGateway, error) {
return nil, fmt.Errorf("Not Implemented GetNatGateways")
}