spec

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 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"`
}

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