func (s *ProvisioningService) GetTokens() (tokens []services.ProvisionToken, err error) {
	keys, err := s.backend.GetKeys([]string{"tokens"})
	if err != nil {
		return tokens, trace.Wrap(err)
	}
	for _, k := range keys {
		tok, err := s.GetToken(k)
		if err != nil {
			log.Error(err)
		}
		tokens = append(tokens, *tok)
	}
	return tokens, nil
}
// GetTokens returns all active (non-expired) provisioning tokens
GetTokens returns all active (non-expired) provisioning tokens
// GetTokens returns all active ( non - expired ) provisioning tokens
func (s *ProvisioningService) GetTokens() (tokens []services.ProvisionToken, err error) {
	keys, err := s.backend.GetKeys([]string{"tokens"})
	if err != nil {
		return tokens, trace.Wrap(err)
	}
	for _, k := range keys {
		tok, err := s.GetToken(k)
		if err != nil {
			log.Error(err)
		}
		tokens = append(tokens, *tok)
	}
	return tokens, nil
}
func ( s * ProvisioningService ) GetTokens ( ) ( tokens [ ] services . ProvisionToken , err error ) { keys , err := s . backend . GetKeys ( [ ] string { " " } ) if err != nil { return tokens , trace . Wrap ( err ) } for _ , k := range keys { tok , err := s . GetToken ( k ) if err != nil { log . Error ( err ) } tokens = append ( tokens , * tok ) } return tokens , nil }
GetTokens returns all active (non-expired) provisioning tokens
GetTokens returns all active ( non - expired ) provisioning tokens