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§
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>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".