Documentation
¶
Overview ¶
Package appexport renders an app as plain Docker Compose plus an env template so leaving Levelrail never needs Levelrail. Secret values are never part of the input type; the caller classifies env before export.
Index ¶
Constants ¶
View Source
const SecretPlaceholder = "CHANGE_ME"
SecretPlaceholder stands in for every value that must not leave the server.
Variables ¶
View Source
var ErrInvalidName = errors.New("appexport: invalid service or variable name")
ErrInvalidName marks a service key or env name that cannot be written to compose or .env without breaking the file structure.
Functions ¶
Types ¶
type Probe ¶
type Probe struct {
Path string
Scheme string
TCP bool
Exec []string
Interval string
Timeout string
Failures int
}
Probe is the readiness probe of a service.
type Service ¶
type Service struct {
Key string
Image string
Command []string
Entrypoint []string
Port int
Domains []string
Env map[string]string
SecretEnv []string
Refs map[string]string
Volumes []Volume
BindMounts []BindMount
Ports []Port
Health *Probe
DependsOn []string
DependsOnHealthy []string
Restart string
MemoryBytes int64
NanoCPUs int64
PullPolicy string
FilePaths []string
}
Service is one container of the app. Env holds only non-secret values as stored; SecretEnv and Refs hold names and descriptions, never values.
Click to show internal directories.
Click to hide internal directories.