Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for Spring (1.69 sec)

  1. cni/pkg/plugin/plugin_test.go

    	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"}},
    			want: []string{"1234", "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)
  2. cni/pkg/iptables/iptables.go

    	return errors.Join(inpodErrs...)
    }
    
    func (cfg *IptablesConfigurator) executeDeleteCommands() error {
    	deleteCmds := [][]string{
    		{"-t", iptablesconstants.MANGLE, "-D", iptablesconstants.PREROUTING, "-j", ChainInpodPrerouting},
    		{"-t", iptablesconstants.MANGLE, "-D", iptablesconstants.OUTPUT, "-j", ChainInpodOutput},
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue May 07 19:54:50 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. cmd/httprange_test.go

    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},
    		{"bytes=1-1", 1, 1},
    		{"bytes=2-5", 2, 4},
    		{"bytes=-5", 5, 5},
    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)
  6. cmd/api-errors.go

    // APIError structure
    type APIError struct {
    	Code           string
    	Description    string
    	HTTPStatusCode int
    	ObjectSize     string
    	RangeRequested string
    }
    
    // APIErrorResponse - error response format
    type APIErrorResponse struct {
    	XMLName          xml.Name `xml:"Error" json:"-"`
    	Code             string
    	Message          string
    	Key              string `xml:"Key,omitempty" json:"Key,omitempty"`
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (6)
  7. 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)
  8. 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)
  9. 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)
  10. cmd/httprange.go

    		return nil, fmt.Errorf("'%s' does not have valid range value", rangeString)
    	}
    }
    
    // String returns stringified representation of range for a particular resource size.
    func (h *HTTPRangeSpec) String(resourceSize int64) string {
    	if h == nil {
    		return ""
    	}
    	off, length, err := h.GetOffsetLength(resourceSize)
    	if err != nil {
    		return ""
    	}
    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)
Back to top