func (c *Client) GetTokens() (tokens []services.ProvisionToken, err error) {
	out, err := c.Get(c.Endpoint("tokens"), url.Values{})
	if err != nil {
		return nil, trace.Wrap(err)
	}
	if err := json.Unmarshal(out.Bytes(), &tokens); err != nil {
		return nil, trace.Wrap(err)
	}
	return tokens, nil
}
// GetTokens returns a list of active invitation tokens for nodes and users
GetTokens returns a list of active invitation tokens for nodes and users
// GetTokens returns a list of active invitation tokens for nodes and users
func (c *Client) GetTokens() (tokens []services.ProvisionToken, err error) {
	out, err := c.Get(c.Endpoint("tokens"), url.Values{})
	if err != nil {
		return nil, trace.Wrap(err)
	}
	if err := json.Unmarshal(out.Bytes(), &tokens); err != nil {
		return nil, trace.Wrap(err)
	}
	return tokens, nil
}
func ( c * Client ) GetTokens ( ) ( tokens [ ] services . ProvisionToken , err error ) { out , err := c . Get ( c . Endpoint ( " " ) , url . Values { } ) if err != nil { return nil , trace . Wrap ( err ) } if err := json . Unmarshal ( out . Bytes ( ) , & tokens ) ; err != nil { return nil , trace . Wrap ( err ) } return tokens , nil }
GetTokens returns a list of active invitation tokens for nodes and users
GetTokens returns a list of active invitation tokens for nodes and users