Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCloudRepo ¶
func NewCloudRepo(m mongodbClient) repository.Cloud
func NewPodRepo ¶
func NewPodRepo(cfg *Config) repository.Pod
Types ¶
type DCloudConf ¶
type DCloudConf struct { Id string `bson:"id" json:"id"` Name string `bson:"name" json:"name"` Specs []SpecDO `bson:"specs" json:"specs"` Images []ImageDO `bson:"images" json:"images"` Feature string `bson:"feature" json:"feature"` Processor string `bson:"processor" json:"processor"` SingleLimited int `bson:"single_limited" json:"single_limited"` MultiLimited int `bson:"multi_limited" json:"multi_limited"` Credit int64 `bson:"credit" json:"credit"` }
type TPod ¶
type TPod struct { Id string `gorm:"type:uuid;default:gen_random_uuid();primaryKey"` CloudId string `gorm:"column:cloud_id;not null"` Owner string `gorm:"column:owner;not null"` Status string `gorm:"column:status;not null"` Expiry int64 `gorm:"column:expiry;not null"` Error string `gorm:"column:error"` AccessURL string `gorm:"column:access_url"` CreatedAt int64 `gorm:"column:created_at;not null;default:extract(epoch from now())"` CardsNum int `gorm:"column:cards_num;not null"` Image string `gorm:"column:image;not null"` }
Click to show internal directories.
Click to hide internal directories.