use serde::{Deserialize, Serialize};
use thiserror::Error;
#[derive(Clone, Debug, Deserialize, Serialize, Error)]
pub enum MachineStatusError {
#[error("InvalidConfiguration")]
InvalidConfiguration,
#[error("UnsupportedChange")]
UnsupportedChange,
#[error("InsufficientResources")]
InsufficientResources,
#[error("CreateMachineError")]
CreateError,
#[error("UpdateMachineError")]
UpdateError,
#[error("DeleteMachineError")]
DeleteError,
#[error("JoinClusterTimeoutMachineError")]
JoinClusterTimeoutError, }
#[derive(Clone, Debug, Error, Serialize, Deserialize)]
pub enum ClusterStatusError {
#[error("InvalidConfiguration")]
InvalidConfigurationClusterError,
#[error("UnsupportedChange")]
UnsupportedChangeClusterError,
#[error("CreateError")]
CreateClusterError,
#[error("UpdateError")]
UpdateClusterError,
#[error("DeleteError")]
DeleteClusterError,
}
#[derive(Clone, Debug, Error, Serialize, Deserialize)]
pub enum KubeadmControlPlaneStatusError {
#[error("InvalidConfiguration")]
InvalidConfiguration,
#[error("UnsupportedChange")]
UnsupportedChange,
#[error("CreateError")]
CreateError,
#[error("UpdateError")]
UpdateError,
#[error("DeleteError")]
DeleteError,
}