Skip to content

DMoscicki/k8s-rs-pb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inspired by k8s-pb

This package is experimental and I tried to convert answer from k8s-openapi (kube-rs) to rust-protobuf.

In the future I will add Serialize to custom_date. At this time i only need the Deserialize (i don't like to work with JSON).

Example

    use k8s_rs_pb::api::core::v1::Pod;
    use k8s_openapi::api::core::v1::Pod as OtherPod;

    let pod_openapi = OtherPod::default();
    let pod_pb: Pod = k8s_rs_pb::converter::from_openapi(pod_openapi).unwrap();

    assert_eq!(pod_pb.has_metadata(), true);

Build Dependencies

About

Little converter from k8s-openapi to rust-protobuf

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages