Any one out here, who seen any package that wraps around the Kubernetes CLI utility: kubectl?
A package for executing kubectl, and translate the output to structs?
I know the client-go exists (package for go, to interact with kubernetes). But I want to have a wrapper ower kubectl.
If not possible, any one who can point me to kubernetes types (pod, container etc) for go?
I am not familiar with the kubectl internals, but you might want to have a look at the kubectl module reference, especially the pkg directories at the bottom of that page. Maybe these packages might suit your needs. On the downside, the package APIs seem to come with no documentation.