本文整理汇总了Golang中k8s/io/kubernetes/pkg/client/testing/core.NewRootDeleteAction函数的典型用法代码示例。如果您正苦于以下问题:Golang NewRootDeleteAction函数的具体用法?Golang NewRootDeleteAction怎么用?Golang NewRootDeleteAction使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了NewRootDeleteAction函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: Delete
func (c *FakeNodes) Delete(name string, options *api.DeleteOptions) error {
_, err := c.Fake.
Invokes(core.NewRootDeleteAction("nodes", name), &api.Node{})
return err
}
示例2: Delete
func (c *FakeSecurityContextConstraints) Delete(name string, options *api.DeleteOptions) error {
_, err := c.Fake.
Invokes(core.NewRootDeleteAction(securitycontextconstraintsResource, name), &v1.SecurityContextConstraints{})
return err
}
示例3: Delete
func (c *FakeClusters) Delete(name string, options *api.DeleteOptions) error {
_, err := c.Fake.
Invokes(core.NewRootDeleteAction(clustersResource, name), &federation.Cluster{})
return err
}
示例4: Delete
func (c *FakeProjects) Delete(name string, options *pkg_api.DeleteOptions) error {
_, err := c.Fake.
Invokes(core.NewRootDeleteAction(projectsResource, name), &api.Project{})
return err
}
示例5: Delete
func (c *FakeOAuthClient) Delete(name string) error {
_, err := c.Fake.Invokes(core.NewRootDeleteAction(oAuthClientsResource, name), &oauthapi.OAuthClient{})
return err
}
示例6: Delete
func (c *FakeThirdPartyResources) Delete(name string, options *api.DeleteOptions) error {
_, err := c.Fake.
Invokes(core.NewRootDeleteAction(thirdpartyresourcesResource, name), &extensions.ThirdPartyResource{})
return err
}
示例7: Delete
func (c *FakePersistentVolumes) Delete(name string, options *api.DeleteOptions) error {
_, err := c.Fake.
Invokes(core.NewRootDeleteAction("persistentvolumes", name), &api.PersistentVolume{})
return err
}
示例8: Delete
func (c *FakePersistentVolumes) Delete(name string, options *v1.DeleteOptions) error {
_, err := c.Fake.
Invokes(core.NewRootDeleteAction(persistentvolumesResource, name), &v1.PersistentVolume{})
return err
}
示例9: Delete
func (c *FakeOAuthAuthorizeTokens) Delete(name string) error {
_, err := c.Fake.Invokes(core.NewRootDeleteAction(oAuthAuthorizeTokensResource, name), &oauthapi.OAuthAuthorizeToken{})
return err
}
示例10: Delete
func (c *FakeComponentStatus) Delete(name string, options *api.DeleteOptions) error {
_, err := c.Fake.
Invokes(core.NewRootDeleteAction("componentStatus", name), &api.ComponentStatus{})
return err
}
示例11: Delete
func (c *FakeUserIdentityMappings) Delete(name string) error {
_, err := c.Fake.Invokes(core.NewRootDeleteAction(userIdentityMappingsResource, name), &userapi.UserIdentityMapping{})
return err
}
示例12: Delete
func (c *FakeIdentities) Delete(name string) error {
_, err := c.Fake.Invokes(core.NewRootDeleteAction(identitiesResource, name), nil)
return err
}
示例13: Delete
func (c *FakeClusterResourceQuotas) Delete(name string) error {
_, err := c.Fake.Invokes(core.NewRootDeleteAction(clusteResourceQuotasResource, name), "aapi.ClusterResourceQuota{})
return err
}
示例14: Delete
func (c *FakeStorageClasses) Delete(name string, options *api.DeleteOptions) error {
_, err := c.Fake.
Invokes(core.NewRootDeleteAction(storageclassesResource, name), &storage.StorageClass{})
return err
}
示例15: Delete
func (c *FakeClusterPolicyBindings) Delete(name string) error {
_, err := c.Fake.Invokes(core.NewRootDeleteAction(clusterPolicyBindingsResource, name), &authorizationapi.ClusterPolicyBinding{})
return err
}