models

package
v0.0.0-...-325dcee Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildType

type BuildType int
const (
	NodeJS BuildType = iota
	Go
	Rust
	Python
	ContainerImage
)

func (BuildType) String

func (b BuildType) String() string

type NullApplication

type NullApplication struct {
	ID                     int64                     `bun:",pk,autoincrement" json:"id"`
	Name                   string                    `bun:"name" json:"name"`
	OrgID                  int64                     `bun:"org_id" json:"org_id"`
	ResourceGroupID        int64                     `bun:"resource_group_id" json:"resource_group_id"`
	Namespace              string                    `bun:"namespace" json:"namespace"`
	NullApplicationService []*NullApplicationService `bun:"rel:has-many,join:id=null_application_id" json:"null_application_service"`
}

type NullApplicationService

type NullApplicationService struct {
	ID                int64     `bun:",pk,autoincrement" json:"id"`
	NullApplicationID int64     `bun:"null_application_id" json:"null_application_id"`
	Type              BuildType `bun:"type" json:"type"`
	GitRepo           string    `bun:"gitRepo" json:"git_repo"`
	GitSha            string    `bun:"gitSha" json:"git_sha"`
	Name              string    `bun:"name" json:"name"`
	Image             string    `bun:"image" json:"image"`
	Cpu               string    `bun:"cpu" json:"cpu"`
	Memory            string    `bun:"memory" json:"memory"`
	Storage           string    `bun:"storage" json:"storage"`
	BuildID           string    `bun:"build_id" json:"build_id"`
}

func (*NullApplicationService) Validate

func (n *NullApplicationService) Validate() error

Validate validates the NullApplicationService

Jump to

Keyboard shortcuts

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