You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
k3s/vendor/github.com/bronze1man/goStrongswanVici/version.go

20 lines
406 B

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
}