Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsFilePath (0.08 sec)

  1. operator/pkg/util/common.go

    package util
    
    import (
    	"fmt"
    	"net/url"
    	"strings"
    
    	"istio.io/istio/pkg/log"
    )
    
    var scope = log.RegisterScope("util", "util")
    
    // IsFilePath reports whether the given URL is a local file path.
    func IsFilePath(path string) bool {
    	return strings.Contains(path, "/") || strings.Contains(path, ".")
    }
    
    // IsHTTPURL checks whether the given URL is a HTTP URL.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. operator/pkg/helm/helm.go

    // profile format (compiled-in, file, HTTP, etc.).
    func ReadProfileYAML(profile, manifestsPath string) (string, error) {
    	var err error
    	var globalValues string
    
    	// Get global values from profile.
    	switch {
    	case util.IsFilePath(profile):
    		if globalValues, err = readFile(profile); err != nil {
    			return "", err
    		}
    	default:
    		if globalValues, err = LoadValues(profile, manifestsPath); err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 10 05:10:03 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top