models

package
v0.0.0-...-49d2269 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Model
	DeploymentID uint
	AppName      string
}

type AppBuildDefinition

type AppBuildDefinition struct {
	Dockerfile  string
	IgnoreFile  string
	BuildTarget string
	Args        map[string]string
}

type AppDefinition

type AppDefinition struct {
	Type        string
	RepoUrl     string
	Build       AppBuildDefinition
	Env         map[string]string
	HttpService AppHttpServiceDefinition
	HealthCheck AppHealthCheckDefinition
	Disks       map[string]AppDiskDefinition
}

type AppDeployDefinition

type AppDeployDefinition struct {
	Command        string
	ReleaseCommand string
}

type AppDiskDefinition

type AppDiskDefinition struct {
	MountPath string
	Size      string
}

type AppHealthCheckDefinition

type AppHealthCheckDefinition struct {
	GracePeriod string
	Interval    string
	Timeout     string
	Command     string
	Request     string
}

type AppHttpServiceDefinition

type AppHttpServiceDefinition struct {
	ContainerPort string
	KeepAlive     bool
}

type Deployment

type Deployment struct {
	Model
	Name        string
	StackID     uint
	StackDefRaw []byte
	DeployedFor string
}

type Disk

type Disk struct {
	Model
	WorkerID     string
	Size         int
	DeploymentID uint
}

type Model

type Model struct {
	ID        uint           `json:"id" gorm:"primaryKey"`
	CreatedAt time.Time      `json:"created_at"`
	UpdatedAt time.Time      `json:"updated_at"`
	DeletedAt gorm.DeletedAt `json:"deleted_at" gorm:"index"`
}

type ServiceDefinition

type ServiceDefinition struct {
	Image string
	Env   map[string]string
}

type Stack

type Stack struct {
	Model
	Name             string     `json:"name"`
	CurrentVersionID uint       `json:"current_version_id"`
	Definitions      []StackDef `json:"definitions"`
}

type StackDef

type StackDef struct {
	Model
	StackID       uint
	RootApp       string
	RawDefinition []byte
}

Jump to

Keyboard shortcuts

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