spec

package
v1.3.0-rc.0...-d217119 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 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 Addon

type Addon struct {
	Id      string                 `json:"id"`
	Name    string                 `json:"name"`
	Type    string                 `json:"type"`
	Plan    string                 `json:"plan"`
	As      string                 `json:"as"`
	Options map[string]string      `json:"options"`
	Actions map[string]interface{} `json:"actions"`
}

type ExecCheck

type ExecCheck struct {
	Cmd      string `json:"cmd"`
	Duration int    `json:"duration,string"`
}

type HTTPCheck

type HTTPCheck struct {
	Port     int    `json:"port,string"`
	Path     string `json:"path"`
	Duration int    `json:"duration,string"`
}

type HealthCheck

type HealthCheck struct {
	HTTP *HTTPCheck `json:"http,omitempty"`
	Exec *ExecCheck `json:"exec,omitempty"`
}

type LegacyDice

type LegacyDice struct {
	Name         string                 `json:"name"`
	Endpoints    map[string]*Service    `json:"endpoints,omitempty"`
	Services     map[string]*Service    `json:"services,omitempty"`
	Addons       map[string]*Addon      `json:"addons,omitempty"`
	AddonActions map[string]interface{} `json:"addonActions,omitempty"`
	Branch       string                 `json:"branch"`
	GlobalEnv    map[string]string      `json:"globalEnv,omitempty"`
}

type Resources

type Resources struct {
	CPU  float64 `json:"cpu"`
	Mem  float64 `json:"mem"`
	Disk float64 `json:"disk"`

	MaxMem                   float64 `json:"max_mem"`
	MaxCPU                   float64 `json:"max_cpu"`
	EmptyDirCapacity         float64 `json:"emptydir_size"`
	EphemeralStorageCapacity float64 `json:"ephemeral_storage_size"`
}

type RuntimeUniqueId

type RuntimeUniqueId struct {
	ApplicationId uint64
	Workspace     string
	Name          string
}

type Service

type Service struct {
	Scale       *int                        `json:"scale,omitempty"`
	Ports       []int                       `json:"ports,omitempty"`
	Depends     []string                    `json:"depends,omitempty"`
	Environment map[string]string           `json:"environment,omitempty"`
	Resources   *Resources                  `json:"resources,omitempty"`
	Cmd         string                      `json:"cmd"`
	Hosts       []string                    `json:"hosts"`
	Volumes     []string                    `json:"volumes"`
	Image       string                      `json:"image"`
	HealthCheck HealthCheck                 `json:"health_check"`
	SideCars    map[string]*diceyml.SideCar `yaml:"sidecars,omitempty" json:"sidecars,omitempty"`
}

Jump to

Keyboard shortcuts

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