Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CheckEmptyValues (0.13 sec)

  1. pkg/config/security/security.go

    		info.Port, err = strconv.Atoi(u.Port())
    		if err != nil {
    			return JwksInfo{}, err
    		}
    	}
    	info.Hostname = host.Name(u.Hostname())
    	info.Scheme = u.Scheme
    
    	return info, nil
    }
    
    func CheckEmptyValues(key string, values []string) error {
    	for _, value := range values {
    		if value == "" {
    			return fmt.Errorf("empty value not allowed, found in %s", key)
    		}
    	}
    	return nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 07 04:43:34 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  2. pkg/config/validation/validation.go

    					errs = appendErrors(errs, security.CheckEmptyValues("Ports", op.Ports))
    					errs = appendErrors(errs, security.CheckEmptyValues("Methods", op.Methods))
    					errs = appendErrors(errs, security.CheckEmptyValues("Paths", op.Paths))
    					errs = appendErrors(errs, security.CheckEmptyValues("Hosts", op.Hosts))
    					errs = appendErrors(errs, security.CheckEmptyValues("NotPorts", op.NotPorts))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
Back to top