当前位置: 首页>>代码示例>>Golang>>正文


Golang testclient.NewRootCreateAction函数代码示例

本文整理汇总了Golang中k8s/io/kubernetes/pkg/client/unversioned/testclient.NewRootCreateAction函数的典型用法代码示例。如果您正苦于以下问题:Golang NewRootCreateAction函数的具体用法?Golang NewRootCreateAction怎么用?Golang NewRootCreateAction使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了NewRootCreateAction函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。

示例1: Create

func (c *FakeClusterSubjectAccessReviews) Create(inObj *authorizationapi.SubjectAccessReview) (*authorizationapi.SubjectAccessReviewResponse, error) {
	obj, err := c.Fake.Invokes(ktestclient.NewRootCreateAction("subjectaccessreviews", inObj), &authorizationapi.SubjectAccessReviewResponse{})
	if cast, ok := obj.(*authorizationapi.SubjectAccessReviewResponse); ok {
		return cast, err
	}
	return nil, err
}
开发者ID:RomainVabre,项目名称:origin,代码行数:7,代码来源:fake_subjectaccessreview.go

示例2: Create

func (c *FakeProjects) Create(inObj *projectapi.Project) (*projectapi.Project, error) {
	obj, err := c.Fake.Invokes(ktestclient.NewRootCreateAction("projects", inObj), inObj)
	if obj == nil {
		return nil, err
	}

	return obj.(*projectapi.Project), err
}
开发者ID:asiainfoLDP,项目名称:datafactory,代码行数:8,代码来源:fake_projects.go

示例3: Create

func (c *FakeClusterNetwork) Create(inObj *sdnapi.ClusterNetwork) (*sdnapi.ClusterNetwork, error) {
	obj, err := c.Fake.Invokes(ktestclient.NewRootCreateAction("clusternetworks", inObj), inObj)
	if obj == nil {
		return nil, err
	}

	return obj.(*sdnapi.ClusterNetwork), err
}
开发者ID:RomainVabre,项目名称:origin,代码行数:8,代码来源:fake_clusternetwork.go

示例4: Create

func (c *FakeUserIdentityMappings) Create(inObj *userapi.UserIdentityMapping) (*userapi.UserIdentityMapping, error) {
	obj, err := c.Fake.Invokes(ktestclient.NewRootCreateAction("useridentitymappings", inObj), inObj)
	if obj == nil {
		return nil, err
	}

	return obj.(*userapi.UserIdentityMapping), err
}
开发者ID:RomainVabre,项目名称:origin,代码行数:8,代码来源:fake_useridentitymappings.go

示例5: Create

func (c *FakeOAuthClient) Create(inObj *oauthapi.OAuthClient) (*oauthapi.OAuthClient, error) {
	obj, err := c.Fake.Invokes(ktestclient.NewRootCreateAction("oauthclients", inObj), inObj)
	if obj == nil {
		return nil, err
	}

	return obj.(*oauthapi.OAuthClient), err
}
开发者ID:RomainVabre,项目名称:origin,代码行数:8,代码来源:fake_oauthclient.go

示例6: Create

func (c *FakeGroups) Create(inObj *userapi.Group) (*userapi.Group, error) {
	obj, err := c.Fake.Invokes(ktestclient.NewRootCreateAction("groups", inObj), inObj)
	if obj == nil {
		return nil, err
	}

	return obj.(*userapi.Group), err
}
开发者ID:jerryz920,项目名称:origin,代码行数:8,代码来源:fake_groups.go

示例7: Create

func (c *FakeNetNamespace) Create(inObj *sdnapi.NetNamespace) (*sdnapi.NetNamespace, error) {
	obj, err := c.Fake.Invokes(ktestclient.NewRootCreateAction("netnamespaces", inObj), inObj)
	if obj == nil {
		return nil, err
	}

	return obj.(*sdnapi.NetNamespace), err
}
开发者ID:ncantor,项目名称:origin,代码行数:8,代码来源:fake_netnamespaces.go

示例8: Create

func (c *FakeOAuthAccessTokens) Create(inObj *oauthapi.OAuthAccessToken) (*oauthapi.OAuthAccessToken, error) {
	obj, err := c.Fake.Invokes(ktestclient.NewRootCreateAction("oauthaccesstokens", inObj), inObj)
	if obj == nil {
		return nil, err
	}

	return obj.(*oauthapi.OAuthAccessToken), err
}
开发者ID:RomainVabre,项目名称:origin,代码行数:8,代码来源:fake_oauthaccesstoken.go

示例9: Create

func (c *FakeUsers) Create(inObj *userapi.User) (*userapi.User, error) {
	obj, err := c.Fake.Invokes(ktestclient.NewRootCreateAction("users", inObj), inObj)
	if obj == nil {
		return nil, err
	}

	return obj.(*userapi.User), err
}
开发者ID:asiainfoLDP,项目名称:datafactory,代码行数:8,代码来源:fake_users.go

示例10: Create

func (c *FakeClusterRoleBindings) Create(inObj *authorizationapi.ClusterRoleBinding) (*authorizationapi.ClusterRoleBinding, error) {
	obj, err := c.Fake.Invokes(ktestclient.NewRootCreateAction("clusterrolebindings", inObj), inObj)
	if obj == nil {
		return nil, err
	}

	return obj.(*authorizationapi.ClusterRoleBinding), err
}
开发者ID:johnmccawley,项目名称:origin,代码行数:8,代码来源:fake_clusterrolebindings.go

示例11: Create

func (c *FakeClusterResourceQuotas) Create(inObj *quotaapi.ClusterResourceQuota) (*quotaapi.ClusterResourceQuota, error) {
	obj, err := c.Fake.Invokes(ktestclient.NewRootCreateAction("clusterresourcequotas", inObj), inObj)
	if obj == nil {
		return nil, err
	}

	return obj.(*quotaapi.ClusterResourceQuota), err
}
开发者ID:ZenoRewn,项目名称:origin,代码行数:8,代码来源:fake_clusterresourcequota.go

示例12: Create

func (c *FakeIdentities) Create(inObj *userapi.Identity) (*userapi.Identity, error) {
	obj, err := c.Fake.Invokes(ktestclient.NewRootCreateAction("identities", inObj), inObj)
	if obj == nil {
		return nil, err
	}

	return obj.(*userapi.Identity), err
}
开发者ID:johnmccawley,项目名称:origin,代码行数:8,代码来源:fake_identities.go

示例13: Create

func (c *FakeHostSubnet) Create(inObj *sdnapi.HostSubnet) (*sdnapi.HostSubnet, error) {
	obj, err := c.Fake.Invokes(ktestclient.NewRootCreateAction("hostsubnets", inObj), inObj)
	if obj == nil {
		return nil, err
	}

	return obj.(*sdnapi.HostSubnet), err
}
开发者ID:asiainfoLDP,项目名称:datafactory,代码行数:8,代码来源:fake_hostsubnets.go

示例14: Create

func (c *FakeImages) Create(inObj *imageapi.Image) (*imageapi.Image, error) {
	obj, err := c.Fake.Invokes(ktestclient.NewRootCreateAction("images", inObj), inObj)
	if obj == nil {
		return nil, err
	}

	return obj.(*imageapi.Image), err
}
开发者ID:RomainVabre,项目名称:origin,代码行数:8,代码来源:fake_images.go

示例15: Create

func (c *FakeServiceBrokers) Create(inObj *servicebrokerapi.ServiceBroker) (*servicebrokerapi.ServiceBroker, error) {
	obj, err := c.Fake.Invokes(ktestclient.NewRootCreateAction("servicebroker", inObj), inObj)
	if obj == nil {
		return nil, err
	}

	return obj.(*servicebrokerapi.ServiceBroker), err
}
开发者ID:asiainfoLDP,项目名称:datafactory,代码行数:8,代码来源:fake_servicebrokers.go


注:本文中的k8s/io/kubernetes/pkg/client/unversioned/testclient.NewRootCreateAction函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。