k8s/io/kubernetes/pkg/api.ConditionStatus 示例代码

2022-03-03

以下示例是关于golang中包含api.ConditionStatus用法的示例代码,想了解api.ConditionStatus的具体用法?api.ConditionStatus怎么用?api.ConditionStatus使用的例子?那么可以参考以下10个相关示例代码来学习它的具体使用方法。

示例1:
types.go开发语言: Go项目名称: abhgupta代码行数: 1049
283	// Status of the condition, one of True, False, Unknown.
284	Status api.ConditionStatus
285	// The last time this condition was updated.
447	// Status of the condition, one of True, False, Unknown.
448	Status api.ConditionStatus
449	// Last time the condition transitioned from one status to another.
771	// Status of the condition, one of True, False, Unknown.
772	Status api.ConditionStatus
773	// The last time the condition transitioned from one status to another.
示例2:
horizontal_test.go开发语言: Go项目名称: cjcullen代码行数: 1046
86	reportedCPURequests  []resource.Quantity
87	reportedPodReadiness []api.ConditionStatus
88	cmTarget             *extensions.CustomMetricTargetList
576		reportedCPURequests:  []resource.Quantity{resource.MustParse("1.0"), resource.MustParse("1.0"), resource.MustParse("1.0")},
577		reportedPodReadiness: []api.ConditionStatus{api.ConditionFalse, api.ConditionTrue, api.ConditionTrue},
578		useMetricsApi:        true,
593		reportedCPURequests:  []resource.Quantity{resource.MustParse("1.0"), resource.MustParse("1.0"), resource.MustParse("1.0")},
594		reportedPodReadiness: []api.ConditionStatus{api.ConditionTrue, api.ConditionFalse, api.ConditionFalse},
595		useMetricsApi:        true,
672		reportedLevels:       []uint64{50, 10, 30},
673		reportedPodReadiness: []api.ConditionStatus{api.ConditionTrue, api.ConditionTrue, api.ConditionFalse},
674		reportedCPURequests:  []resource.Quantity{resource.MustParse("1.0"), resource.MustParse("1.0"), resource.MustParse("1.0")},
692		reportedLevels:       []uint64{50, 15, 30},
693		reportedPodReadiness: []api.ConditionStatus{api.ConditionFalse, api.ConditionTrue, api.ConditionFalse},
694		reportedCPURequests:  []resource.Quantity{resource.MustParse("1.0"), resource.MustParse("1.0"), resource.MustParse("1.0")},
示例3:
replica_calculator_test.go开发语言: Go项目名称: cjcullen代码行数: 556
72
73	podReadiness []api.ConditionStatus
74}
272		expectedReplicas: 4,
273		podReadiness:     []api.ConditionStatus{api.ConditionFalse, api.ConditionTrue, api.ConditionTrue},
274		resource: &resourceInfo{
289		expectedReplicas: 3,
290		podReadiness:     []api.ConditionStatus{api.ConditionTrue, api.ConditionFalse, api.ConditionFalse},
291		resource: &resourceInfo{
320		expectedReplicas: 4,
321		podReadiness:     []api.ConditionStatus{api.ConditionTrue, api.ConditionTrue, api.ConditionFalse},
322		metric: &metricInfo{
335		expectedReplicas: 3,
336		podReadiness:     []api.ConditionStatus{api.ConditionFalse, api.ConditionTrue, api.ConditionFalse},
337		metric: &metricInfo{
示例4:
deployment_util_test.go开发语言: Go项目名称: cjcullen代码行数: 1106
777		condType   extensions.DeploymentConditionType
778		condStatus api.ConditionStatus
779		condReason string
1049	}
1050	deployment := func(condType extensions.DeploymentConditionType, status api.ConditionStatus, pds *int32, from time.Time) extensions.Deployment {
1051		return extensions.Deployment{
示例5:
types.go开发语言: Go项目名称: bparees代码行数: 810
210	// Status of the condition, one of True, False, Unknown.
211	Status api.ConditionStatus
212	// The last time this condition was updated.
479	// Status of the condition, one of True, False, Unknown.
480	Status api.ConditionStatus
481	// The last time this condition was updated.
647	// Status of the condition, one of True, False, Unknown.
648	Status api.ConditionStatus
649	// Last time the condition transitioned from one status to another.
799	// Status of the condition, one of True, False, Unknown.
800	Status api.ConditionStatus
801	// The last time the condition transitioned from one status to another.
示例6:
types.go开发语言: Go项目名称: byxorna代码行数: 810
210	// Status of the condition, one of True, False, Unknown.
211	Status api.ConditionStatus
212	// The last time this condition was updated.
479	// Status of the condition, one of True, False, Unknown.
480	Status api.ConditionStatus
481	// The last time this condition was updated.
647	// Status of the condition, one of True, False, Unknown.
648	Status api.ConditionStatus
649	// Last time the condition transitioned from one status to another.
799	// Status of the condition, one of True, False, Unknown.
800	Status api.ConditionStatus
801	// The last time the condition transitioned from one status to another.
示例7:
types.go开发语言: Go项目名称: csrwng代码行数: 796
209	// Status of the condition, one of True, False, Unknown.
210	Status api.ConditionStatus
211	// The last time this condition was updated.
470	// Status of the condition, one of True, False, Unknown.
471	Status api.ConditionStatus
472	// The last time this condition was updated.
634	// Status of the condition, one of True, False, Unknown.
635	Status api.ConditionStatus
636	// Last time the condition transitioned from one status to another.
785	// Status of the condition, one of True, False, Unknown.
786	Status api.ConditionStatus
787	// The last time the condition transitioned from one status to another.
示例8:
zz_generated.conversion.go开发语言: Go项目名称: ddysher代码行数: 5173
639	out.Type = api.ComponentConditionType(in.Type)
640	out.Status = api.ConditionStatus(in.Status)
641	out.Message = in.Message
2397	out.Type = api.NodeConditionType(in.Type)
2398	out.Status = api.ConditionStatus(in.Status)
2399	out.LastHeartbeatTime = in.LastHeartbeatTime
3273	out.Type = api.PodConditionType(in.Type)
3274	out.Status = api.ConditionStatus(in.Status)
3275	out.LastProbeTime = in.LastProbeTime
4012	out.Type = api.ReplicationControllerConditionType(in.Type)
4013	out.Status = api.ConditionStatus(in.Status)
4014	out.LastTransitionTime = in.LastTransitionTime
示例9:
zz_generated.conversion.go开发语言: Go项目名称: detiber代码行数: 5169
639	out.Type = api.ComponentConditionType(in.Type)
640	out.Status = api.ConditionStatus(in.Status)
641	out.Message = in.Message
2397	out.Type = api.NodeConditionType(in.Type)
2398	out.Status = api.ConditionStatus(in.Status)
2399	out.LastHeartbeatTime = in.LastHeartbeatTime
3273	out.Type = api.PodConditionType(in.Type)
3274	out.Status = api.ConditionStatus(in.Status)
3275	out.LastProbeTime = in.LastProbeTime
4008	out.Type = api.ReplicationControllerConditionType(in.Type)
4009	out.Status = api.ConditionStatus(in.Status)
4010	out.LastTransitionTime = in.LastTransitionTime
示例10:
types.go开发语言: Go项目名称: ddysher代码行数: 1177
369	// Status of the condition, one of True, False, Unknown.
370	Status api.ConditionStatus
371	// The last time this condition was updated.
846	// Status of the condition, one of True, False, Unknown.
847	Status api.ConditionStatus
848	// The last time the condition transitioned from one status to another.

本文地址:https://www.itbaoku.cn/snippets/415573.html