pub enum YamlType {
Show 27 variants
K8sDeployment,
K8sService,
K8sConfigMap,
K8sSecret,
K8sIngress,
K8sHPA,
K8sCronJob,
K8sJob,
K8sPVC,
K8sNetworkPolicy,
K8sStatefulSet,
K8sDaemonSet,
K8sRole,
K8sClusterRole,
K8sRoleBinding,
K8sClusterRoleBinding,
K8sServiceAccount,
K8sGeneric,
GitLabCI,
GitHubActions,
DockerCompose,
Prometheus,
Alertmanager,
HelmValues,
Ansible,
OpenAPI,
Generic,
}Expand description
Detected YAML configuration type.
Used by ValidationResult::yaml_type to report which format was
recognised. Variant names are self-documenting (e.g. K8sDeployment,
GitLabCI, DockerCompose).
Variants§
K8sDeployment
K8sService
K8sConfigMap
K8sSecret
K8sIngress
K8sHPA
K8sCronJob
K8sJob
K8sPVC
K8sNetworkPolicy
K8sStatefulSet
K8sDaemonSet
K8sRole
K8sClusterRole
K8sRoleBinding
K8sClusterRoleBinding
K8sServiceAccount
K8sGeneric
Any resource with apiVersion+kind that we don’t have a specific model for.
GitLabCI
GitHubActions
DockerCompose
Prometheus
Alertmanager
HelmValues
Ansible
OpenAPI
Generic
Trait Implementations§
Source§impl<'de> Deserialize<'de> for YamlType
impl<'de> Deserialize<'de> for YamlType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for YamlType
Auto Trait Implementations§
impl Freeze for YamlType
impl RefUnwindSafe for YamlType
impl Send for YamlType
impl Sync for YamlType
impl Unpin for YamlType
impl UnsafeUnpin for YamlType
impl UnwindSafe for YamlType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more