Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(db *gorm.DB) repository_intf.ScaleRepository
Types ¶
type ScaleModel ¶
type ScaleModel struct { Id int `gorm:"column:id"` Project string `gorm:"column:project"` Env string `gorm:"column:env"` Name string `gorm:"column:name"` MinReplica int `gorm:"column:min_replica"` MaxReplica int `gorm:"column:max_replica"` MinCpu int `gorm:"column:min_cpu"` MaxCpu int `gorm:"column:max_cpu"` MinMemory int `gorm:"column:min_memory"` MaxMemory int `gorm:"column:max_memory"` TargetCPUUtilization int `gorm:"column:target_cpu"` CreatedBy int `gorm:"column:created_by"` CreatedAt *time.Time `gorm:"column:created_at"` UpdatedAt *time.Time `gorm:"column:updated_at"` }
func (ScaleModel) FromScaleEntity ¶
func (ScaleModel) FromScaleEntity(s entity.Scale) *ScaleModel
func (*ScaleModel) ToScaleEntity ¶
func (sm *ScaleModel) ToScaleEntity() *entity.Scale
Click to show internal directories.
Click to hide internal directories.