model

package
v0.0.0-...-f22f8d3 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: AGPL-3.0 Imports: 6 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 string
	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            string `gorm:"primarykey"`
	Name          string
	Type          pb.AppGroupType
	WorkflowId    string
	Status        pb.AppGroupStatus
	StatusDesc    string
	ClusterId     string
	ExternalLabel string
	Creator       uuid.UUID
	Description   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