Skip to main content

DnsReader

Trait DnsReader 

Source
pub trait DnsReader {
    // Required methods
    fn get(
        &self,
        resource_type: &str,
        name: &str,
        namespace: &str,
    ) -> Result<String, DriverError>;
    fn get_raw(&self, path: &str) -> Result<String, DriverError>;
    fn run_job(
        &self,
        image: &str,
        namespace: &str,
        timeout: Duration,
        command: &[&str],
    ) -> Result<String, DriverError>;
}
Expand description

Port of cluster.DNSReader: the slice of a kubectl backend that DNS-zone sources read through.

Required Methods§

Source

fn get( &self, resource_type: &str, name: &str, namespace: &str, ) -> Result<String, DriverError>

Source

fn get_raw(&self, path: &str) -> Result<String, DriverError>

Source

fn run_job( &self, image: &str, namespace: &str, timeout: Duration, command: &[&str], ) -> Result<String, DriverError>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§