scale_repository

package
v0.0.0-...-3439342 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL