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


Golang core.NewWatchAction函數代碼示例

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


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

示例1: Watch

// Watch returns a watch.Interface that watches the requested thirdPartyResources.
func (c *FakeThirdPartyResources) Watch(opts api.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(core.NewWatchAction(thirdpartyresourcesResource, c.ns, opts))

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

示例2: Watch

// Watch returns a watch.Interface that watches the requested deployments.
func (c *FakeDeployments) Watch(opts api.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(core.NewWatchAction(deploymentsResource, c.ns, opts))

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

示例3: Watch

// Watch returns a watch.Interface that watches the requested cronJobs.
func (c *FakeCronJobs) Watch(opts api.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(core.NewWatchAction(cronjobsResource, c.ns, opts))

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

示例4: 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(core.NewWatchAction(limitrangesResource, c.ns, opts))

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

示例5: Watch

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

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

示例6: Watch

// Watch returns a watch.Interface that watches the requested resourceQuotas.
func (c *FakeResourceQuotas) Watch(opts api.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(core.NewWatchAction(resourcequotasResource, c.ns, opts))

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

示例7: Watch

// Watch returns a watch.Interface that watches the requested statefulSets.
func (c *FakeStatefulSets) Watch(opts v1.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(core.NewWatchAction(statefulsetsResource, c.ns, opts))

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

示例8: Watch

// Watch returns a watch.Interface that watches the requested scheduledJobs.
func (c *FakeScheduledJobs) Watch(opts v1.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(core.NewWatchAction(scheduledjobsResource, c.ns, opts))

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

示例9: Watch

// Watch returns a watch.Interface that watches the requested users.
func (c *FakeUsers) Watch(opts api_v1.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(core.NewWatchAction(usersResource, c.ns, opts))

}
開發者ID:xgwang-zte,項目名稱:origin,代碼行數:6,代碼來源:fake_user.go

示例10: Watch

// Watch returns a watch.Interface that watches the requested clusterNetworks.
func (c *FakeClusterNetworks) Watch(opts api.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(core.NewWatchAction(clusternetworksResource, c.ns, opts))

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

示例11: 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(core.NewWatchAction(rolebindingsResource, c.ns, opts))

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

示例12: Watch

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

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

示例13: Watch

func (c *FakeTemplates) Watch(opts kapi.ListOptions) (watch.Interface, error) {
	return c.Fake.InvokesWatch(core.NewWatchAction(templatesResource, c.Namespace, opts))
}
開發者ID:xgwang-zte,項目名稱:origin,代碼行數:3,代碼來源:fake_templates.go

示例14: Watch

// Watch returns a watch.Interface that watches the requested testTypes.
func (c *FakeTestTypes) Watch(opts api.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(core.NewWatchAction("testtypes", c.ns, opts))

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

示例15: Watch

func (c *FakeBuildConfigs) Watch(opts kapi.ListOptions) (watch.Interface, error) {
	return c.Fake.InvokesWatch(core.NewWatchAction(buildConfigsResource, c.Namespace, opts))
}
開發者ID:xgwang-zte,項目名稱:origin,代碼行數:3,代碼來源:fake_buildconfigs.go


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