mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
支持natgateway同步
This commit is contained in:
@@ -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{}
|
||||
}
|
||||
@@ -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")
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
@@ -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")
|
||||
}
|
||||
Reference in New Issue
Block a user