added two state types

This commit is contained in:
Linus Vogel 2026-08-22 12:24:25 +02:00
parent 56a2ed236d
commit 36617fc05f
4 changed files with 26 additions and 1 deletions

View File

@ -1 +1,2 @@
pub mod parsing;
pub mod state;

8
src/sls/state/file.rs Normal file
View File

@ -0,0 +1,8 @@
pub enum FileState {
Managed,
Present,
Absent,
BlockReplace,
Symlinked
}

10
src/sls/state/mod.rs Normal file
View File

@ -0,0 +1,10 @@
use crate::sls::state::file::FileState;
use crate::sls::state::service::ServiceState;
pub mod file;
pub mod service;
pub enum State {
File (FileState),
Service (ServiceState),
}

6
src/sls/state/service.rs Normal file
View File

@ -0,0 +1,6 @@
pub enum ServiceState {
Running,
Stopped,
}