Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,194 for isStatus (0.14 sec)

  1. pilot/pkg/config/kube/gateway/gatewayclass.go

    	if existing == nil {
    		existing = &k8sv1.GatewayClassStatus{}
    	}
    	existing.Conditions = kstatus.UpdateConditionIfChanged(existing.Conditions, metav1.Condition{
    		Type:               string(k8sv1.GatewayClassConditionStatusAccepted),
    		Status:             kstatus.StatusTrue,
    		ObservedGeneration: gen,
    		LastTransitionTime: metav1.Now(),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 07 20:48:23 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. releasenotes/notes/gateway-status.yaml

    apiVersion: release-notes/v2
    kind: feature
    area: traffic-management
    
    releaseNotes:
    - |
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 21 19:34:29 UTC 2023
    - 201 bytes
    - Viewed (0)
  3. docs/zh/docs/advanced/response-change-status-code.md

    # 响应 - 更改状态码
    
    你可能之前已经了解到,你可以设置默认的[响应状态码](../tutorial/response-status-code.md){.internal-link target=_blank}。
    
    但在某些情况下,你需要返回一个不同于默认值的状态码。
    
    ## 使用场景
    
    例如,假设你想默认返回一个HTTP状态码为“OK”`200`。
    
    但如果数据不存在,你想创建它,并返回一个HTTP状态码为“CREATED”`201`。
    
    但你仍然希望能够使用`response_model`过滤和转换你返回的数据。
    
    对于这些情况,你可以使用一个`Response`参数。
    
    ## 使用 `Response` 参数
    
    你可以在你的*路径操作函数*中声明一个`Response`类型的参数(就像你可以为cookies和头部做的那样)。
    
    然后你可以在这个*临时*响应对象中设置`status_code`。
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Jun 10 20:30:28 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/interface_test.go

    			}
    
    			if test.status.Message() != test.expectedMessage {
    				t.Errorf("expect status.Message() returns %v, but %v", test.expectedMessage, test.status.Message())
    			}
    
    			if test.status.IsSuccess() != test.expectedIsSuccess {
    				t.Errorf("expect status.IsSuccess() returns %v, but %v", test.expectedIsSuccess, test.status.IsSuccess())
    			}
    
    			if test.status.IsWait() != test.expectedIsWait {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Oct 22 04:41:59 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  5. src/internal/trace/internal/oldtrace/order.go

    	ev   Event
    	proc *proc
    }
    
    type gStatus int
    
    type gState struct {
    	seq    uint64
    	status gStatus
    }
    
    const (
    	gDead gStatus = iota
    	gRunnable
    	gRunning
    	gWaiting
    
    	unordered = ^uint64(0)
    	garbage   = ^uint64(0) - 1
    	noseq     = ^uint64(0)
    	seqinc    = ^uint64(0) - 1
    )
    
    // stateTransition returns goroutine state (sequence and status) when the event
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4K bytes
    - Viewed (0)
  6. pilot/pkg/config/kube/gateway/conditions.go

    	obj.Status.(*kstatus.WrappedStatus).Mutate(func(s config.Status) config.Status {
    		gs := s.(*k8s.GatewayStatus)
    		for index >= len(gs.Listeners) {
    			gs.Listeners = append(gs.Listeners, k8s.ListenerStatus{})
    		}
    		status := gs.Listeners[index]
    		status.AttachedRoutes = i
    		gs.Listeners[index] = status
    		return gs
    	})
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 13:05:41 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  7. hack/e2e-internal/e2e-status.sh

    xichengliudui <******@****.***> 1550548203 -0500
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 19 03:50:03 UTC 2019
    - 904 bytes
    - Viewed (0)
  8. pkg/scheduler/framework/plugins/podtopologyspread/filtering.go

    func (pl *PodTopologySpread) PreFilter(ctx context.Context, cycleState *framework.CycleState, pod *v1.Pod) (*framework.PreFilterResult, *framework.Status) {
    	s, err := pl.calPreFilterState(ctx, pod)
    	if err != nil {
    		return nil, framework.AsStatus(err)
    	} else if s != nil && len(s.Constraints) == 0 {
    		return nil, framework.NewStatus(framework.Skip)
    	}
    
    	cycleState.Write(preFilterStateKey, s)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 10:42:29 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  9. cmd/bucket-replication-utils_test.go

    		expStatus: replication.Pending,
    	},
    	{ // 3. replication status for one target - incorrect format
    		name:      "replication status for one target",
    		rs:        ReplicationState{ReplicationStatusInternal: "arn1=PENDING"},
    		expStatus: replication.StatusType(""),
    	},
    	{ // 4. replication status for 3 targets, one of them failed
    		name: "replication status for 3 targets - one failed",
    		rs: ReplicationState{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Aug 08 20:27:40 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/imagelocality/image_locality.go

    	nodeInfo, err := pl.handle.SnapshotSharedLister().NodeInfos().Get(nodeName)
    	if err != nil {
    		return 0, framework.AsStatus(fmt.Errorf("getting node %q from Snapshot: %w", nodeName, err))
    	}
    
    	nodeInfos, err := pl.handle.SnapshotSharedLister().NodeInfos().List()
    	if err != nil {
    		return 0, framework.AsStatus(err)
    	}
    	totalNumNodes := len(nodeInfos)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 19 06:17:57 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top