Skip to content

Commit

Permalink
Add initial driver interface for regin and zone info
Browse files Browse the repository at this point in the history
  • Loading branch information
powerkimhub committed Sep 13, 2023
1 parent f728aeb commit 87df2f2
Showing 1 changed file with 41 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// Cloud Driver Interface 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 Resouces interfaces of Cloud Driver.
//
// by CB-Spider Team, 2023.09.

package resources

// -------- Const
type ZoneStatus string

const (
ZoneAvailable ZoneStatus = "Available"
ZoneUnavailable ZoneStatus = "Unavailable"
)

type RegionZoneInfo struct {
Name string
DisplayName string
ZoneList []ZoneInfo

KeyValueList []KeyValue
}

type ZoneInfo struct {
Name string
DisplayName string
Status ZoneStatus // Available | Unavailable

KeyValueList []KeyValue
}

type RegionZoneHandler interface {
ListRegionZone() ([]*RegionZoneInfo, error)
ListOrgRegion() (string, error) // return string: json format
ListOrgZone() (string, error) // return string: json format
}

0 comments on commit 87df2f2

Please sign in to comment.