func (c *Client) UpsertNode(s services.Server, ttl time.Duration) error {
	args := upsertServerReq{
		Server: s,
		TTL:    ttl,
	}
	_, err := c.PostJSON(c.Endpoint("nodes"), args)
	return trace.Wrap(err)
}
// UpsertNode is used by SSH servers to reprt their presense
// to the auth servers in form of hearbeat expiring after ttl period.
UpsertNode is used by SSH servers to reprt their presense
to the auth servers in form of hearbeat expiring after ttl period.
// UpsertNode is used by SSH servers to reprt their presense // to the auth servers in form of hearbeat expiring after ttl period .
func (c *Client) UpsertNode(s services.Server, ttl time.Duration) error {
	args := upsertServerReq{
		Server: s,
		TTL:    ttl,
	}
	_, err := c.PostJSON(c.Endpoint("nodes"), args)
	return trace.Wrap(err)
}
func ( c * Client ) UpsertNode ( s services . Server , ttl time . Duration ) error { args := upsertServerReq { Server : s , TTL : ttl , } _ , err := c . PostJSON ( c . Endpoint ( " " ) , args ) return trace . Wrap ( err ) }
UpsertNode is used by SSH servers to reprt their presense
to the auth servers in form of hearbeat expiring after ttl period.
UpsertNode is used by SSH servers to reprt their presense to the auth servers in form of hearbeat expiring after ttl period .