pub struct K8sTypesFetcher { /* private fields */ }Expand description
Fetches and generates k8s.io core types
Implementations§
Source§impl K8sTypesFetcher
impl K8sTypesFetcher
pub fn new() -> Self
Sourcepub async fn fetch_k8s_openapi(
&self,
version: &str,
) -> Result<Value, ParserError>
pub async fn fetch_k8s_openapi( &self, version: &str, ) -> Result<Value, ParserError>
Fetch the Kubernetes OpenAPI schema
Sourcepub fn extract_core_types(
&self,
openapi: &Value,
) -> Result<HashMap<TypeReference, TypeDefinition>, ParserError>
pub fn extract_core_types( &self, openapi: &Value, ) -> Result<HashMap<TypeReference, TypeDefinition>, ParserError>
Extract all k8s types using recursive discovery from seed types
Trait Implementations§
Auto Trait Implementations§
impl Freeze for K8sTypesFetcher
impl !RefUnwindSafe for K8sTypesFetcher
impl Send for K8sTypesFetcher
impl Sync for K8sTypesFetcher
impl Unpin for K8sTypesFetcher
impl !UnwindSafe for K8sTypesFetcher
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