entities

package
v2.2.0-rc8 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToApplicationModel

func ToApplicationModel(application *Application) (*specV1.Application, error)

Types

type Application

type Application struct {
	Id         uint64    `db:"id"`
	Namespace  string    `db:"namespace"`
	Name       string    `db:"name"`
	Version    string    `db:"version"`
	IsDeleted  int       `db:"is_deleted"`
	CreateTime time.Time `db:"create_time"`
	UpdateTime time.Time `db:"update_time"`
	Content    string    `db:"content"`
}

func FromApplicationModel

func FromApplicationModel(application *specV1.Application) (*Application, error)

type Shadow

type Shadow struct {
	Id         int64     `db:"id"`
	Namespace  string    `db:"namespace"`
	Name       string    `db:"name"`
	CreateTime time.Time `db:"create_time"`
	UpdateTime time.Time `db:"update_time"`
	Report     string    `db:"report"`
	Desire     string    `db:"desire"`
}

func NewShadowFromShadowModel

func NewShadowFromShadowModel(shadow *models.Shadow) (*Shadow, error)

func (*Shadow) ToShadowModel

func (s *Shadow) ToShadowModel() (*models.Shadow, error)

Jump to

Keyboard shortcuts

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