port_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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type PortModel

type PortModel struct {
	Id        int        `gorm:"column:id"`
	Project   string     `gorm:"column:project"`
	Env       string     `gorm:"column:env"`
	Name      string     `gorm:"column:name"`
	Ports     []byte     `gorm:"column:ports"`
	CreatedBy int        `gorm:"column:created_by"`
	CreatedAt *time.Time `gorm:"column:created_at"`
	UpdatedAt *time.Time `gorm:"column:updated_at"`
}

func (PortModel) FromPortEntity

func (PortModel) FromPortEntity(p entity.Port) *PortModel

func (*PortModel) ToPortEntity

func (pm *PortModel) ToPortEntity() *entity.Port

type PortTemplateModel

type PortTemplateModel struct {
	Id           int        `gorm:"column:id"`
	TemplateName string     `gorm:"column:template_name"`
	Ports        []byte     `gorm:"column:ports"`
	CreatedAt    *time.Time `gorm:"column:created_at"`
	UpdatedAt    *time.Time `gorm:"column:updated_at"`
}

func (PortTemplateModel) FromPortTemplateEntity

func (PortTemplateModel) FromPortTemplateEntity(p entity.PortTemplate) *PortTemplateModel

func (*PortTemplateModel) ToPortTemplateEntity

func (pm *PortTemplateModel) ToPortTemplateEntity() *entity.PortTemplate

Jump to

Keyboard shortcuts

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