當前位置: 首頁>>代碼示例>>Golang>>正文


Golang testing.NewWatchAction函數代碼示例

本文整理匯總了Golang中k8s/io/client-go/testing.NewWatchAction函數的典型用法代碼示例。如果您正苦於以下問題:Golang NewWatchAction函數的具體用法?Golang NewWatchAction怎麽用?Golang NewWatchAction使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了NewWatchAction函數的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。

示例1: Watch

// Watch returns a watch.Interface that watches the requested replicationControllers.
func (c *FakeReplicationControllers) Watch(opts v1.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(testing.NewWatchAction(replicationcontrollersResource, c.ns, opts))

}
開發者ID:kubernetes,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_replicationcontroller.go

示例2: Watch

// Watch returns a watch.Interface that watches the requested secrets.
func (c *FakeSecrets) Watch(opts v1.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(testing.NewWatchAction(secretsResource, c.ns, opts))

}
開發者ID:nak3,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_secret.go

示例3: Watch

// Watch returns a watch.Interface that watches the requested persistentVolumeClaims.
func (c *FakePersistentVolumeClaims) Watch(opts v1.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(testing.NewWatchAction(persistentvolumeclaimsResource, c.ns, opts))

}
開發者ID:Q-Lee,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_persistentvolumeclaim.go

示例4: Watch

// Watch returns a watch.Interface that watches the requested podTemplates.
func (c *FakePodTemplates) Watch(opts v1.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(testing.NewWatchAction(podtemplatesResource, c.ns, opts))

}
開發者ID:Q-Lee,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_podtemplate.go

示例5: Watch

// Watch returns a watch.Interface that watches the requested configMaps.
func (c *FakeConfigMaps) Watch(opts v1.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(testing.NewWatchAction(configmapsResource, c.ns, opts))

}
開發者ID:kubernetes,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_configmap.go

示例6: Watch

// Watch returns a watch.Interface that watches the requested limitRanges.
func (c *FakeLimitRanges) Watch(opts v1.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(testing.NewWatchAction(limitrangesResource, c.ns, opts))

}
開發者ID:eljefedelrodeodeljefe,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_limitrange.go

示例7: Watch

// Watch returns a watch.Interface that watches the requested roleBindings.
func (c *FakeRoleBindings) Watch(opts v1.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(testing.NewWatchAction(rolebindingsResource, c.ns, opts))

}
開發者ID:maisem,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_rolebinding.go

示例8: Watch

// Watch returns a watch.Interface that watches the requested horizontalPodAutoscalers.
func (c *FakeHorizontalPodAutoscalers) Watch(opts api_v1.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(testing.NewWatchAction(horizontalpodautoscalersResource, c.ns, opts))

}
開發者ID:maisem,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_horizontalpodautoscaler.go

示例9: Watch

// Watch returns a watch.Interface that watches the requested podDisruptionBudgets.
func (c *FakePodDisruptionBudgets) Watch(opts v1.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(testing.NewWatchAction(poddisruptionbudgetsResource, c.ns, opts))

}
開發者ID:eljefedelrodeodeljefe,項目名稱:kubernetes,代碼行數:6,代碼來源:fake_poddisruptionbudget.go


注:本文中的k8s/io/client-go/testing.NewWatchAction函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。