I’m working on an autoscaling service for rancher and would like to use go-rancher to interact with the api as much as possible.
is there an example anywhere of getting at the hoststats and containerstats with go-rancher
I thought this would get me the websocket links and tokens needed
resp, err := a.StatsAccess.List(&rclient.ListOpts{
Filters: map[string]interface{}{},
})
but it says its not listable. Im confident I can piece together the params needed for the websocket connection using other methods but would much rather use the shortest approved route if there is one.