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