This is a simple golang sdk which mainly focus on consul, kubernetes and strings.
go get github.com/louhwz/pkg
For example, to quickly get a configMap from kubernetes:
import "github.com/louhwz/pkg/loukubernetes"
func main() {
clientset, err := loukubernetes.InClusterConn()
if err != nil {
panic(err)
}
cm, err := loukubernetes.GetConfigMap(clientset, common.Namespace, common.Name)
}
PRs accepted.
MIT © Richard McRichface