added two state types
This commit is contained in:
parent
56a2ed236d
commit
36617fc05f
@ -1 +1,2 @@
|
|||||||
pub mod parsing;
|
pub mod parsing;
|
||||||
|
pub mod state;
|
||||||
8
src/sls/state/file.rs
Normal file
8
src/sls/state/file.rs
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
|
||||||
|
pub enum FileState {
|
||||||
|
Managed,
|
||||||
|
Present,
|
||||||
|
Absent,
|
||||||
|
BlockReplace,
|
||||||
|
Symlinked
|
||||||
|
}
|
||||||
10
src/sls/state/mod.rs
Normal file
10
src/sls/state/mod.rs
Normal 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
6
src/sls/state/service.rs
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
pub enum ServiceState {
|
||||||
|
Running,
|
||||||
|
Stopped,
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user