Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 526 for isStatus (0.12 sec)

  1. istioctl/pkg/waypoint/waypoint_test.go

    	if programmed {
    		conditions = append(conditions, metav1.Condition{
    			Type:   string(gateway.GatewayConditionProgrammed),
    			Status: kstatus.StatusTrue,
    		})
    	} else {
    		conditions = append(conditions, metav1.Condition{
    			Type:   string(gateway.GatewayConditionProgrammed),
    			Status: kstatus.StatusFalse,
    		})
    	}
    	className := "other"
    	if isWaypoint {
    		className = constants.WaypointGatewayClassName
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 04 15:53:09 UTC 2024
    - 4.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. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. pilot/pkg/config/kube/gateway/testdata/alias.status.yaml.golden

        reason: Programmed
        status: "True"
        type: Programmed
      listeners:
      - attachedRoutes: 1
        conditions:
        - lastTransitionTime: fake
          message: No errors found
          reason: Accepted
          status: "True"
          type: Accepted
        - lastTransitionTime: fake
          message: No errors found
          reason: NoConflicts
          status: "False"
          type: Conflicted
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 07 20:48:23 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. pilot/pkg/config/kube/gateway/testdata/mcs.status.yaml.golden

        reason: Programmed
        status: "True"
        type: Programmed
      listeners:
      - attachedRoutes: 1
        conditions:
        - lastTransitionTime: fake
          message: No errors found
          reason: Accepted
          status: "True"
          type: Accepted
        - lastTransitionTime: fake
          message: No errors found
          reason: NoConflicts
          status: "False"
          type: Conflicted
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 28 21:44:38 UTC 2023
    - 1.8K bytes
    - Viewed (0)
Back to top