We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The create.rs should be split up more, but I don't have a good idea how to split it up, so if you have any suggestions, please let me know.
The text was updated successfully, but these errors were encountered:
builder pattern
Sounds good 👍
Sorry, something went wrong.
This is what the preliminary api looks like:
// required values (must be specified in new...) // - create // - id // - bundle // - exec // - id // // use with_... methods to specify // optional values // - console-socket // - pid-file // // overwritable values // - systemd (default true) // - root_path (default /run/youki) // // overwritable values (for exec only?) // - env // - cwd // - container command // // calculated in build() // computed values // - rootless // - container_dir // - spec // - notify_socket // - container // create let container = ContainerBuilder::new_init(id, bundle)? .with_pid_file(pid_file) // optional .with_console_socket(console_socket) //optional .with_systemd(false) // overwrite default .with_root_path(root_path) // overwrite default .build()?; // exec let container = ContainerBuilder::new_tenant(id) .with_pid_file(pid_file) .with_console_socket(console_socket) .with_cwd(cwd) .with_env(env) .with_container_command(vec!["sleep".to_owned(), "9001".to_owned()]) .build()?;
utam0k
Furisto
No branches or pull requests
The create.rs should be split up more, but I don't have a good idea how to split it up, so if you have any suggestions, please let me know.
Ideas
https://doc.rust-lang.org/1.0.0/style/ownership/builders.html
The text was updated successfully, but these errors were encountered: