Documentation
¶
Index ¶
- type BuildConfig
- type CommandConfig
- type ComposeChanges
- type ConfigConfig
- type DependsOnConfig
- type DeployConfig
- type HealthcheckConfig
- type IpamConfig
- type IpamPool
- type NetworkConfig
- type NewServiceConfig
- type PlacementConfig
- type PlacementPreference
- type PortMapping
- type RawComposeConfig
- type ResourceLimits
- type ResourcesConfig
- type RestartPolicyConfig
- type SecretConfig
- type ServiceChanges
- type ServiceNetworkConfig
- type UpdateComposeRequest
- type UpdateComposeResponse
- type UpdateRollbackConfig
- type VolumeConfig
- type VolumeMount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildConfig ¶
type BuildConfig struct {
Context string `json:"context,omitempty"`
Dockerfile string `json:"dockerfile,omitempty"`
Args map[string]string `json:"args,omitempty"`
Target string `json:"target,omitempty"`
CacheFrom []string `json:"cache_from,omitempty"`
CacheTo []string `json:"cache_to,omitempty"`
Platforms []string `json:"platforms,omitempty"`
}
type CommandConfig ¶
type CommandConfig struct {
Values []string `json:"values"`
}
type ComposeChanges ¶
type ComposeChanges struct {
ServiceChanges map[string]ServiceChanges `json:"service_changes,omitempty"`
NetworkChanges map[string]*NetworkConfig `json:"network_changes,omitempty"`
VolumeChanges map[string]*VolumeConfig `json:"volume_changes,omitempty"`
SecretChanges map[string]*SecretConfig `json:"secret_changes,omitempty"`
ConfigChanges map[string]*ConfigConfig `json:"config_changes,omitempty"`
AddServices map[string]NewServiceConfig `json:"add_services,omitempty"`
DeleteServices []string `json:"delete_services,omitempty"`
RenameServices map[string]string `json:"rename_services,omitempty"`
}
type ConfigConfig ¶
type DependsOnConfig ¶
type DeployConfig ¶
type DeployConfig struct {
Mode *string `json:"mode,omitempty"`
Replicas *int `json:"replicas,omitempty"`
Resources *ResourcesConfig `json:"resources,omitempty"`
RestartPolicy *RestartPolicyConfig `json:"restart_policy,omitempty"`
Placement *PlacementConfig `json:"placement,omitempty"`
UpdateConfig *UpdateRollbackConfig `json:"update_config,omitempty"`
RollbackConfig *UpdateRollbackConfig `json:"rollback_config,omitempty"`
}
type HealthcheckConfig ¶
type HealthcheckConfig struct {
Test []string `json:"test,omitempty"`
Interval string `json:"interval,omitempty"`
Timeout string `json:"timeout,omitempty"`
Retries *uint64 `json:"retries,omitempty"`
StartPeriod string `json:"start_period,omitempty"`
StartInterval string `json:"start_interval,omitempty"`
Disable bool `json:"disable,omitempty"`
}
type IpamConfig ¶
type NetworkConfig ¶
type NewServiceConfig ¶
type NewServiceConfig struct {
Image string `json:"image"`
Ports []PortMapping `json:"ports,omitempty"`
Environment map[string]string `json:"environment,omitempty"`
Volumes []VolumeMount `json:"volumes,omitempty"`
Restart string `json:"restart,omitempty"`
}
type PlacementConfig ¶
type PlacementConfig struct {
Constraints []string `json:"constraints,omitempty"`
Preferences []PlacementPreference `json:"preferences,omitempty"`
}
type PlacementPreference ¶
type PlacementPreference struct {
Spread string `json:"spread"`
}
type PortMapping ¶
type RawComposeConfig ¶
type RawComposeConfig struct {
ComposeFile string `json:"compose_file"`
Services map[string]any `json:"services"`
Networks map[string]any `json:"networks,omitempty"`
Volumes map[string]any `json:"volumes,omitempty"`
Secrets map[string]any `json:"secrets,omitempty"`
Configs map[string]any `json:"configs,omitempty"`
}
type ResourceLimits ¶
type ResourcesConfig ¶
type ResourcesConfig struct {
Limits *ResourceLimits `json:"limits,omitempty"`
Reservations *ResourceLimits `json:"reservations,omitempty"`
}
type RestartPolicyConfig ¶
type SecretConfig ¶
type ServiceChanges ¶
type ServiceChanges struct {
Image *string `json:"image,omitempty"`
Ports *[]PortMapping `json:"ports,omitempty"`
Environment map[string]*string `json:"environment,omitempty"`
Volumes *[]VolumeMount `json:"volumes,omitempty"`
Command *CommandConfig `json:"command,omitempty"`
Entrypoint *CommandConfig `json:"entrypoint,omitempty"`
DependsOn map[string]DependsOnConfig `json:"depends_on,omitempty"`
Healthcheck *HealthcheckConfig `json:"healthcheck,omitempty"`
Restart *string `json:"restart,omitempty"`
Labels map[string]*string `json:"labels,omitempty"`
Deploy *DeployConfig `json:"deploy,omitempty"`
Build *BuildConfig `json:"build,omitempty"`
Networks map[string]*ServiceNetworkConfig `json:"networks,omitempty"`
}
type ServiceNetworkConfig ¶
type UpdateComposeRequest ¶
type UpdateComposeRequest struct {
Changes ComposeChanges `json:"changes"`
Preview bool `json:"preview,omitempty"`
}
type UpdateComposeResponse ¶
type UpdateRollbackConfig ¶
type UpdateRollbackConfig struct {
Parallelism *int `json:"parallelism,omitempty"`
Delay string `json:"delay,omitempty"`
FailureAction string `json:"failure_action,omitempty"`
Monitor string `json:"monitor,omitempty"`
MaxFailureRatio float64 `json:"max_failure_ratio,omitempty"`
Order string `json:"order,omitempty"`
}
type VolumeConfig ¶
Click to show internal directories.
Click to hide internal directories.