model

package
v0.0.0-...-29910c1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	ID         uuid.UUID `gorm:"primarykey;type:uuid;default:uuid_generate_v4()"`
	Endpoint   string
	Metadata   datatypes.JSON
	Type       pb.AppType
	AppGroupId uuid.UUID `gorm:"type:uuid;"`
	UpdatedAt  time.Time
	CreatedAt  time.Time
}

Application contains endpoints and metadata of each application.

func (*Application) BeforeCreate

func (c *Application) BeforeCreate(tx *gorm.DB) (err error)

type ApplicationGroup

type ApplicationGroup struct {
	ID            uuid.UUID `gorm:"primarykey;type:uuid;default:uuid_generate_v4()"`
	Name          string
	Type          pb.AppGroupType
	Status        pb.AppGroupStatus
	ClusterId     uuid.UUID `gorm:"type:uuid;"`
	ExternalLabel string
	UpdatedAt     time.Time
	CreatedAt     time.Time
}

ApplicationGroup represents an application group data in Database.

func (*ApplicationGroup) BeforeCreate

func (c *ApplicationGroup) BeforeCreate(tx *gorm.DB) (err error)

Jump to

Keyboard shortcuts

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