func (r *ReverseTunnelCommand) Upsert(client *auth.TunClient) error {
	err := client.UpsertReverseTunnel(services.ReverseTunnel{
		DomainName: r.domainNames,
		DialAddrs:  r.dialAddrs.Addresses()},
		r.ttl)
	if err != nil {
		return trace.Wrap(err)
	}
	fmt.Printf("Reverse tunnel updated\n")
	return nil
}
// Upsert updates or inserts new reverse tunnel
Upsert updates or inserts new reverse tunnel
// Upsert updates or inserts new reverse tunnel
func (r *ReverseTunnelCommand) Upsert(client *auth.TunClient) error {
	err := client.UpsertReverseTunnel(services.ReverseTunnel{
		DomainName: r.domainNames,
		DialAddrs:  r.dialAddrs.Addresses()},
		r.ttl)
	if err != nil {
		return trace.Wrap(err)
	}
	fmt.Printf("Reverse tunnel updated\n")
	return nil
}
func ( r * ReverseTunnelCommand ) Upsert ( client * auth . TunClient ) error { err := client . UpsertReverseTunnel ( services . ReverseTunnel { DomainName : r . domainNames , DialAddrs : r . dialAddrs . Addresses ( ) } , r . ttl ) if err != nil { return trace . Wrap ( err ) } fmt . Printf ( " \n " ) return nil }
Upsert updates or inserts new reverse tunnel
Upsert updates or inserts new reverse tunnel