本文整理汇总了Golang中k8s/io/kubernetes/pkg/client/unversioned/testclient.NewRootDeleteAction函数的典型用法代码示例。如果您正苦于以下问题:Golang NewRootDeleteAction函数的具体用法?Golang NewRootDeleteAction怎么用?Golang NewRootDeleteAction使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了NewRootDeleteAction函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: Delete
func (c *FakeOAuthAccessTokens) Delete(name string) error {
_, err := c.Fake.Invokes(ktestclient.NewRootDeleteAction("oauthaccesstokens", name), &oauthapi.OAuthAccessToken{})
return err
}
示例2: Delete
func (c *FakeProjects) Delete(name string) error {
_, err := c.Fake.Invokes(ktestclient.NewRootDeleteAction("projects", name), &projectapi.Project{})
return err
}
示例3: Delete
func (c *FakeUserIdentityMappings) Delete(name string) error {
_, err := c.Fake.Invokes(ktestclient.NewRootDeleteAction("useridentitymappings", name), &userapi.UserIdentityMapping{})
return err
}
示例4: Delete
func (c *FakeClusterPolicies) Delete(name string) error {
_, err := c.Fake.Invokes(ktestclient.NewRootDeleteAction("clusterpolicies", name), &authorizationapi.ClusterPolicy{})
return err
}
示例5: Delete
func (c *FakeGroups) Delete(name string) error {
_, err := c.Fake.Invokes(ktestclient.NewRootDeleteAction("groups", name), &userapi.Group{})
return err
}
示例6: Delete
func (c *FakeOAuthClient) Delete(name string) error {
_, err := c.Fake.Invokes(ktestclient.NewRootDeleteAction("oauthclients", name), &oauthapi.OAuthClient{})
return err
}
示例7: Delete
func (c *FakeUsers) Delete(name string) error {
_, err := c.Fake.Invokes(ktestclient.NewRootDeleteAction("users", name), nil)
return err
}
示例8: Delete
func (c *FakeNetNamespace) Delete(name string) error {
_, err := c.Fake.Invokes(ktestclient.NewRootDeleteAction("netnamespaces", name), &sdnapi.NetNamespace{})
return err
}
示例9: Delete
func (c *FakeClusterRoleBindings) Delete(name string) error {
_, err := c.Fake.Invokes(ktestclient.NewRootDeleteAction("clusterrolebindings", name), &authorizationapi.ClusterRoleBinding{})
return err
}
示例10: Delete
func (c *FakeClusterResourceQuotas) Delete(name string) error {
_, err := c.Fake.Invokes(ktestclient.NewRootDeleteAction("clusterresourcequotas", name), "aapi.ClusterResourceQuota{})
return err
}
示例11: Delete
func (c *FakeImageSignatures) Delete(name string) error {
_, err := c.Fake.Invokes(ktestclient.NewRootDeleteAction("imagesignatures", name), &imageapi.ImageSignature{})
return err
}
示例12: Delete
func (c *FakeHostSubnet) Delete(name string) error {
_, err := c.Fake.Invokes(ktestclient.NewRootDeleteAction("hostsubnets", name), &sdnapi.HostSubnet{})
return err
}
示例13: Delete
func (c *FakeServiceBrokers) Delete(name string) error {
_, err := c.Fake.Invokes(ktestclient.NewRootDeleteAction("servicebroker", name), &servicebrokerapi.ServiceBroker{})
return err
}