mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
20 lines
406 B
Go
20 lines
406 B
Go
package goStrongswanVici
|
|
|
|
type Version struct {
|
|
Daemon string `json:"daemon"`
|
|
Version string `json:"version"`
|
|
Sysname string `json:"sysname"`
|
|
Release string `json:"release"`
|
|
Machine string `json:"machine"`
|
|
}
|
|
|
|
func (c *ClientConn) Version() (out *Version, err error) {
|
|
msg, err := c.Request("version", nil)
|
|
if err != nil {
|
|
return
|
|
}
|
|
out = &Version{}
|
|
err = ConvertFromGeneral(msg, out)
|
|
return
|
|
}
|