Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(db *gorm.DB) repository_intf.ImageRepository
Types ¶
type ImageModel ¶
type ImageModel struct { Id int `gorm:"column:id"` Digest string `gorm:"column:digest"` Image string `gorm:"column:image"` Project string `gorm:"column:project"` Repository string `gorm:"column:repository"` Description string `gorm:"column:description"` CreatedBy int `gorm:"column:created_by"` CreatedAt *time.Time `gorm:"column:created_at"` UpdatedAt *time.Time `gorm:"column:updated_at"` }
func (ImageModel) FromImageEntity ¶
func (ImageModel) FromImageEntity(i entity.Image) *ImageModel
func (*ImageModel) ToImageEntity ¶
func (im *ImageModel) ToImageEntity() *entity.Image
Click to show internal directories.
Click to hide internal directories.