Struct GCContainerRunnerBuilder
pub struct GCContainerRunnerBuilder {
hub_internal_port: u16,
config_path: PathBuf,
data_path: PathBuf,
runtime_image: String,
network_name: String,
log_service_addr: String,
plugins_path: PathBuf,
runtime_binary: PathBuf,
extra_env: Vec<String>,
skip_cap_check: bool,
}Fields§
§hub_internal_port: u16§config_path: PathBuf§data_path: PathBuf§runtime_image: String§network_name: String§log_service_addr: String§plugins_path: PathBuf§runtime_binary: PathBuf§extra_env: Vec<String>§skip_cap_check: boolImplementations§
§impl GCContainerRunnerBuilder
impl GCContainerRunnerBuilder
fn new(hub_internal_port: u16, config_path: PathBuf, data_path: PathBuf) -> Self
pub fn runtime_image(self, image: impl Into<String>) -> Self
pub fn runtime_image(self, image: impl Into<String>) -> Self
Override the container image used for runtime containers.
pub fn network_name(self, name: impl Into<String>) -> Self
pub fn network_name(self, name: impl Into<String>) -> Self
Override the Podman bridge network name (default: gc_gateway).
pub fn log_service_addr(self, addr: impl Into<String>) -> Self
pub fn log_service_addr(self, addr: impl Into<String>) -> Self
Override the log-service address seen from inside the container (default: gc_log_service:3003).
pub fn plugins_path(self, path: impl Into<PathBuf>) -> Self
pub fn plugins_path(self, path: impl Into<PathBuf>) -> Self
Override the host path mounted as /opt/gc_gateway/plugins inside the container.
pub fn runtime_binary(self, path: impl Into<PathBuf>) -> Self
pub fn runtime_binary(self, path: impl Into<PathBuf>) -> Self
Override the host path of the gc_gateway binary mounted into runtime containers
(default: /opt/gc_gateway/gc_gateway).
pub fn extra_env(self, env: Vec<String>) -> Self
pub fn extra_env(self, env: Vec<String>) -> Self
Append extra environment variables (KEY=value) passed to the container.
pub fn skip_cap_check(self, skip: bool) -> Self
pub fn skip_cap_check(self, skip: bool) -> Self
Skip the NET_RAW / NET_ADMIN capability check performed during build.
pub fn build(self) -> Result<GCContainerRunner, ContainerRunnerError>
pub fn build(self) -> Result<GCContainerRunner, ContainerRunnerError>
Finalise the builder and return a GCContainerRunner.
Auto Trait Implementations§
impl Freeze for GCContainerRunnerBuilder
impl RefUnwindSafe for GCContainerRunnerBuilder
impl Send for GCContainerRunnerBuilder
impl Sync for GCContainerRunnerBuilder
impl Unpin for GCContainerRunnerBuilder
impl UnsafeUnpin for GCContainerRunnerBuilder
impl UnwindSafe for GCContainerRunnerBuilder
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