pub struct Pyo3Plugins { /* private fields */ }Expand description
Interface for managing Docker plugins collection.
Docker plugins extend the capabilities of the Docker daemon. Swarm mode must be enabled for some plugin operations.
Implementations§
Source§impl Pyo3Plugins
impl Pyo3Plugins
pub fn new(docker: Pyo3Docker) -> Self
Sourcepub fn get(&self, name: &str) -> Pyo3Plugin
pub fn get(&self, name: &str) -> Pyo3Plugin
Get a specific plugin by name.
Args: name: Plugin name (e.g., “vieux/sshfs:latest”)
Returns: Plugin: Plugin instance for further operations
Sourcepub fn list(&self) -> PyResult<Py<PyAny>>
pub fn list(&self) -> PyResult<Py<PyAny>>
List all installed plugins.
Returns: list[dict]: List of plugin information dictionaries including: - id: Plugin ID - name: Plugin name - enabled: Whether the plugin is enabled - config: Plugin configuration
Raises: SystemError: If the operation fails
Sourcepub fn list_by_capability(&self, capability: &str) -> PyResult<Py<PyAny>>
pub fn list_by_capability(&self, capability: &str) -> PyResult<Py<PyAny>>
List plugins filtered by capability.
Args: capability: Filter plugins by capability (e.g., “volumedriver”, “networkdriver”)
Returns: list[dict]: List of matching plugin information dictionaries
Raises: SystemError: If the operation fails
Sourcepub fn list_enabled(&self) -> PyResult<Py<PyAny>>
pub fn list_enabled(&self) -> PyResult<Py<PyAny>>
List only enabled plugins.
Returns: list[dict]: List of enabled plugin information dictionaries
Raises: SystemError: If the operation fails
Sourcepub fn list_disabled(&self) -> PyResult<Py<PyAny>>
pub fn list_disabled(&self) -> PyResult<Py<PyAny>>
List only disabled plugins.
Returns: list[dict]: List of disabled plugin information dictionaries
Raises: SystemError: If the operation fails
Trait Implementations§
Source§impl Debug for Pyo3Plugins
impl Debug for Pyo3Plugins
Source§impl<'py> IntoPyObject<'py> for Pyo3Plugins
impl<'py> IntoPyObject<'py> for Pyo3Plugins
Source§type Target = Pyo3Plugins
type Target = Pyo3Plugins
Source§type Output = Bound<'py, <Pyo3Plugins as IntoPyObject<'py>>::Target>
type Output = Bound<'py, <Pyo3Plugins as IntoPyObject<'py>>::Target>
Source§fn into_pyobject(
self,
py: Python<'py>,
) -> Result<<Self as IntoPyObject<'_>>::Output, <Self as IntoPyObject<'_>>::Error>
fn into_pyobject( self, py: Python<'py>, ) -> Result<<Self as IntoPyObject<'_>>::Output, <Self as IntoPyObject<'_>>::Error>
Source§impl PyClass for Pyo3Plugins
impl PyClass for Pyo3Plugins
Source§impl PyClassImpl for Pyo3Plugins
impl PyClassImpl for Pyo3Plugins
Source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
Source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
Source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
Source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
Source§const IS_IMMUTABLE_TYPE: bool = false
const IS_IMMUTABLE_TYPE: bool = false
Source§const RAW_DOC: &'static CStr = /// Interface for managing Docker plugins collection.
///
/// Docker plugins extend the capabilities of the Docker daemon.
/// Swarm mode must be enabled for some plugin operations.
const RAW_DOC: &'static CStr = /// Interface for managing Docker plugins collection. /// /// Docker plugins extend the capabilities of the Docker daemon. /// Swarm mode must be enabled for some plugin operations.
Source§const DOC: &'static CStr
const DOC: &'static CStr
text_signature if a constructor is defined. Read moreSource§type ThreadChecker = SendablePyClass<Pyo3Plugins>
type ThreadChecker = SendablePyClass<Pyo3Plugins>
Source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Source§type BaseNativeType = PyAny
type BaseNativeType = PyAny
PyAny by default, and when you declare
#[pyclass(extends=PyDict)], it’s PyDict.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
Source§impl PyClassNewTextSignature for Pyo3Plugins
impl PyClassNewTextSignature for Pyo3Plugins
const TEXT_SIGNATURE: &'static str = "(docker)"
Source§impl PyMethods<Pyo3Plugins> for PyClassImplCollector<Pyo3Plugins>
impl PyMethods<Pyo3Plugins> for PyClassImplCollector<Pyo3Plugins>
fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for Pyo3Plugins
impl PyTypeInfo for Pyo3Plugins
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Source§fn type_object(py: Python<'_>) -> Bound<'_, PyType>
fn type_object(py: Python<'_>) -> Bound<'_, PyType>
impl DerefToPyAny for Pyo3Plugins
impl ExtractPyClassWithClone for Pyo3Plugins
Auto Trait Implementations§
impl Freeze for Pyo3Plugins
impl !RefUnwindSafe for Pyo3Plugins
impl Send for Pyo3Plugins
impl Sync for Pyo3Plugins
impl Unpin for Pyo3Plugins
impl !UnwindSafe for Pyo3Plugins
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
Source§fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
self into an owned Python object, dropping type information.