Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for tstring (0.15 sec)

  1. internal/logger/logger.go

    	var defaultgoPathList []string
    	var defaultgoRootList []string
    	pathSeparator := ":"
    	// Add all possible GOPATH paths into trimStrings
    	// Split GOPATH depending on the OS type
    	if runtime.GOOS == "windows" {
    		pathSeparator = ";"
    	}
    
    	goPathList = strings.Split(goPath, pathSeparator)
    	goRootList = strings.Split(goRoot, pathSeparator)
    	defaultgoPathList = strings.Split(build.Default.GOPATH, pathSeparator)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  2. cmd/object-api-errors.go

    	Object   string
    	UploadID string
    }
    
    func (e InvalidUploadID) Error() string {
    	return "Invalid upload id " + e.UploadID
    }
    
    // InvalidPart One or more of the specified parts could not be found
    type InvalidPart struct {
    	PartNumber int
    	ExpETag    string
    	GotETag    string
    }
    
    func (e InvalidPart) Error() string {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  3. cmd/batch-handlers.go

    	}
    }
    
    func (m *batchJobMetrics) delete(jobID string) {
    	m.Lock()
    	defer m.Unlock()
    
    	delete(m.metrics, jobID)
    }
    
    func (m *batchJobMetrics) save(jobID string, ri *batchJobInfo) {
    	m.Lock()
    	defer m.Unlock()
    
    	m.metrics[jobID] = ri.clone()
    }
    
    type objTraceInfoer interface {
    	TraceObjName() string
    	TraceVersionID() string
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 55.2K bytes
    - Viewed (0)
  4. cni/pkg/plugin/plugin_test.go

    	}
    }
    
    func Test_dedupPorts(t *testing.T) {
    	type args struct {
    		ports []string
    	}
    	tests := []struct {
    		name string
    		args args
    		want []string
    	}{
    		{
    			name: "No duplicates",
    			args: args{ports: []string{"1234", "2345"}},
    			want: []string{"1234", "2345"},
    		},
    		{
    			name: "Sequential Duplicates",
    			args: args{ports: []string{"1234", "1234", "2345", "2345"}},
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 15:58:51 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  5. cni/pkg/plugin/plugin.go

    type Config struct {
    	types.NetConf
    
    	// Add plugin-specific flags here
    	LogLevel        string     `json:"log_level"`
    	LogUDSAddress   string     `json:"log_uds_address"`
    	CNIEventAddress string     `json:"cni_event_address"`
    	AmbientEnabled  bool       `json:"ambient_enabled"`
    	Kubernetes      Kubernetes `json:"kubernetes"`
    }
    
    // K8sArgs is the valid CNI_ARGS used for Kubernetes
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 15:58:51 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  6. istioctl/pkg/waypoint/waypoint.go

    				return nil, fmt.Errorf("invalid traffic type: %s. Valid options are: %s", trafficType, validTrafficTypes.String())
    			}
    
    			if gw.Labels == nil {
    				gw.Labels = map[string]string{}
    			}
    
    			gw.Labels[constants.AmbientWaypointForTrafficTypeLabel] = trafficType
    		}
    
    		if revision != "" {
    			gw.Labels = map[string]string{label.IoIstioRev.Name: revision}
    		}
    		return &gw, nil
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 19:45:58 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  7. cmd/common-main.go

    				return
    			}
    		}
    	}()
    }
    
    type envKV struct {
    	Key   string
    	Value string
    	Skip  bool
    }
    
    func (e envKV) String() string {
    	if e.Skip {
    		return ""
    	}
    	return fmt.Sprintf("%s=%s", e.Key, e.Value)
    }
    
    func parsEnvEntry(envEntry string) (envKV, error) {
    	envEntry = strings.TrimSpace(envEntry)
    	if envEntry == "" {
    		// Skip all empty lines
    		return envKV{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 35.8K bytes
    - Viewed (2)
  8. cmd/erasure-object.go

    			}, index)
    		}
    
    		rmDisks := make(map[string]string, len(disks))
    		for index, err := range g.Wait() {
    			var errStr, diskName string
    			if err != nil {
    				errStr = err.Error()
    			} else {
    				errStr = "<nil>"
    			}
    			if disks[index] != nil {
    				diskName = disks[index].String()
    			} else {
    				diskName = fmt.Sprintf("disk-%d", index)
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 77.2K bytes
    - Viewed (2)
  9. cmd/httprange.go

    func parseRequestRangeSpec(rangeString string) (hrange *HTTPRangeSpec, err error) {
    	// Return error if given range string doesn't start with byte range prefix.
    	if !strings.HasPrefix(rangeString, byteRangePrefix) {
    		return nil, fmt.Errorf("'%s' does not start with '%s'", rangeString, byteRangePrefix)
    	}
    
    	// Trim byte range prefix.
    	byteRangeString := strings.TrimPrefix(rangeString, byteRangePrefix)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  10. cmd/httprange_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"testing"
    )
    
    func TestHTTPRequestRangeSpec(t *testing.T) {
    	resourceSize := int64(10)
    	validRangeSpecs := []struct {
    		spec                 string
    		expOffset, expLength int64
    	}{
    		{"bytes=0-", 0, 10},
    		{"bytes=1-", 1, 9},
    		{"bytes=0-9", 0, 10},
    		{"bytes=1-10", 1, 9},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 3.7K bytes
    - Viewed (0)
Back to top