mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 19:13:34 +00:00
26 lines
510 B
Go
26 lines
510 B
Go
package api
|
|
|
|
const (
|
|
ServiceModeReplicated = "replicated"
|
|
ServiceModeGlobal = "global"
|
|
)
|
|
|
|
type ServiceSpec struct {
|
|
Container ContainerSpec
|
|
// Mode is the replication mode of the service. Default is ServiceModeReplicated if empty.
|
|
Mode string
|
|
Name string
|
|
}
|
|
|
|
type ContainerSpec struct {
|
|
Command []string
|
|
Image string
|
|
// Run a custom init inside the container. If nil, use the daemon's configured settings.
|
|
Init *bool
|
|
}
|
|
|
|
type MachineContainerID struct {
|
|
MachineID string
|
|
ContainerID string
|
|
}
|