Documentation
¶
Index ¶
- type ApplicationJSON
- type CommandJSON
- type ContainerJSON
- type Disk
- type DiskPersistence
- type DiskSource
- type DockerVolumeJSON
- type Filter
- type HTTPHealthCheck
- type HealthCheckJSON
- type IpAddressJSON
- type KillJson
- type NetworkJSON
- type PortMapping
- type ResourceJSON
- type Strategy
- type TCPHealthCheck
- type TimeRetry
- type UriJSON
- type VolumeSourceJSON
- type VolumesJSON
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationJSON ¶
type ApplicationJSON struct {
Name string `json:"name"`
Instances int `json:"instances"`
Resources *ResourceJSON `json:"resources"`
Command *CommandJSON `json:"command"`
Container *ContainerJSON `json:"container"`
HealthCheck *HealthCheckJSON `json:"healthcheck"`
Labels map[string]string `json:"labels"`
Filters []Filter `json:"filters"`
Retry *TimeRetry `json:"retry"`
Strategy Strategy `json:"strategy"`
}
type CommandJSON ¶
type ContainerJSON ¶
type ContainerJSON struct {
ContainerType *string `json:"type"`
ImageName *string `json:"image"`
Tag *string `json:"tag"`
Network []NetworkJSON `json:"network"`
Volumes []VolumesJSON `json:"volume"`
}
type Disk ¶
type Disk struct {
Size float64 `json:"size"`
Persistence *DiskPersistence `json:"persistence"`
Volume *VolumesJSON `json:"volume"`
Source *DiskSource `json:"source"`
}
type DiskPersistence ¶
type DiskSource ¶
type DockerVolumeJSON ¶
type HTTPHealthCheck ¶
type HealthCheckJSON ¶
type HealthCheckJSON struct {
DelaySeconds *float64 `json:"delay,omitempty"`
IntervalSeconds *float64 `json:"interval,omitempty"`
TimeoutSeconds *float64 `json:"timeout,omitempty"`
ConsecutiveFailures *uint32 `json:"fails,omitempty"`
GracePeriodSeconds *float64 `json:"graceperiod,omitempty"`
Type *string `json:"type,omitempty"`
Command *CommandJSON `json:"command,omitempty"`
Http *HTTPHealthCheck `json:"http,omitempty"`
Tcp *TCPHealthCheck `json:"tcp,omitempty"`
Endpoint *string `json:"endpoint,omitempty"`
}
type IpAddressJSON ¶
type NetworkJSON ¶
type NetworkJSON struct {
IpAddresses []IpAddressJSON `json:"ipaddress,omitempty"`
Name *string `json:"name"`
Groups []string `json:"group"`
Labels []map[string]string `json:"labels"`
PortMapping []*PortMapping `json:"port_mapping"`
}
type PortMapping ¶
type ResourceJSON ¶
type TCPHealthCheck ¶
type TCPHealthCheck struct {
Port int
}
type VolumeSourceJSON ¶
type VolumeSourceJSON struct {
Type *string `json:"type"`
DockerVolume DockerVolumeJSON `json:"docker_volume"`
}
type VolumesJSON ¶
type VolumesJSON struct {
ContainerPath *string `json:"container_path"`
HostPath *string `json:"host_path"`
Mode *string `json:"mode"`
Source *VolumeSourceJSON `json:"source"`
}
Click to show internal directories.
Click to hide internal directories.