Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 473 Bytes

READEME.md

File metadata and controls

13 lines (10 loc) · 473 Bytes

Using Client-Go in Clusternet

If you want to use client-go to interact with Clusternet, you only need to insert below wrapperFunc in your codes, while the rest remains the same.

// This is the ONLY place you need to wrap for Clusternet
config.Wrap(func(rt http.RoundTripper) http.RoundTripper {
    return clientgo.NewClusternetTransport(config.Host, rt)
})

You can follow demo.go for a quick start.