pub struct RegistryServer { /* private fields */ }Expand description
The main registry server.
Implements an OCI-compliant container registry that can be used for testing Docker/container workflows.
Implementations§
Source§impl RegistryServer
impl RegistryServer
Sourcepub async fn new(config: RegistryConfig) -> Result<Self>
pub async fn new(config: RegistryConfig) -> Result<Self>
Creates and starts a new registry server with the given configuration.
§Examples
use registry_testkit::{RegistryServer, RegistryConfig};
let config = RegistryConfig::memory();
let server = RegistryServer::new(config).await?;Sourcepub fn addr(&self) -> SocketAddr
pub fn addr(&self) -> SocketAddr
Returns the socket address the server is bound to.
Auto Trait Implementations§
impl Freeze for RegistryServer
impl RefUnwindSafe for RegistryServer
impl Send for RegistryServer
impl Sync for RegistryServer
impl Unpin for RegistryServer
impl UnwindSafe for RegistryServer
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