pub enum ValidationErrorKind {
Show 28 variants
InvalidVersion {
found: String,
},
EmptyDeploymentName,
EmptyServiceName,
EmptyImageName,
InvalidPort {
port: u32,
},
InvalidCpu {
cpu: f64,
},
InvalidMemoryFormat {
value: String,
},
InvalidDuration {
value: String,
},
DuplicateEndpoint {
name: String,
},
UnknownInitAction {
action: String,
},
UnknownDependency {
service: String,
},
CircularDependency {
service: String,
depends_on: String,
},
InvalidScaleRange {
min: u32,
max: u32,
},
EmptyScaleTargets,
InvalidEnvVar {
key: String,
reason: String,
},
InvalidCronSchedule {
schedule: String,
reason: String,
},
ScheduleOnlyForCron,
CronRequiresSchedule,
Generic {
message: String,
},
InsufficientNodes {
required: usize,
available: usize,
message: String,
},
InvalidTunnelProtocol {
protocol: String,
},
InvalidTunnelPort {
port: u16,
field: String,
},
InvalidTunnelTtl {
value: String,
reason: String,
},
WasmConfigOnNonWasmType,
InvalidWasmInstanceRange {
min: u32,
max: u32,
},
WasmCapabilityNotAvailable {
capability: String,
service_type: String,
},
WasmHttpMissingHttpEndpoint,
WasmPreopenEmpty {
index: usize,
field: String,
},
}Expand description
The specific kind of validation error
Variants§
InvalidVersion
Version is not “v1”
EmptyDeploymentName
Deployment name is empty
EmptyServiceName
Service name is empty
EmptyImageName
Image name is empty
InvalidPort
Port is out of valid range (1-65535)
InvalidCpu
CPU limit is invalid (must be > 0)
InvalidMemoryFormat
Memory format is invalid
InvalidDuration
Duration format is invalid
DuplicateEndpoint
Service has duplicate endpoints
UnknownInitAction
Unknown init action
UnknownDependency
Dependency references unknown service
CircularDependency
Circular dependency detected
InvalidScaleRange
Scale min > max
EmptyScaleTargets
Scale targets are empty in adaptive mode
InvalidEnvVar
Invalid environment variable
InvalidCronSchedule
Invalid cron schedule expression
ScheduleOnlyForCron
Schedule field is only valid for rtype: cron
CronRequiresSchedule
rtype: cron requires a schedule field
Generic
Generic validation error (from validator crate)
InsufficientNodes
Not enough nodes available for dedicated/exclusive placement
InvalidTunnelProtocol
Invalid tunnel protocol (must be tcp or udp)
InvalidTunnelPort
Invalid tunnel port (must be 0 or 1-65535)
InvalidTunnelTtl
Invalid tunnel TTL format
WasmConfigOnNonWasmType
WASM config present on non-WASM service type
InvalidWasmInstanceRange
WASM min_instances > max_instances
WasmCapabilityNotAvailable
WASM capability not available for this service type
WasmHttpMissingHttpEndpoint
WasmHttp service missing HTTP endpoint
WasmPreopenEmpty
WASM preopen with empty source or target
Trait Implementations§
Source§impl Clone for ValidationErrorKind
impl Clone for ValidationErrorKind
Source§fn clone(&self) -> ValidationErrorKind
fn clone(&self) -> ValidationErrorKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more