本文整理汇总了Golang中k8s/io/kubernetes/pkg/client/testing/core.NewRootUpdateAction函数的典型用法代码示例。如果您正苦于以下问题:Golang NewRootUpdateAction函数的具体用法?Golang NewRootUpdateAction怎么用?Golang NewRootUpdateAction使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了NewRootUpdateAction函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: Update
func (c *FakeNetworks) Update(network *api.Network) (result *api.Network, err error) {
obj, err := c.Fake.
Invokes(core.NewRootUpdateAction("networks", network), &api.Network{})
if obj == nil {
return nil, err
}
return obj.(*api.Network), err
}
示例2: Update
func (c *FakeClusterRoles) Update(inObj *authorizationapi.ClusterRole) (*authorizationapi.ClusterRole, error) {
obj, err := c.Fake.Invokes(core.NewRootUpdateAction(clusterRolesResource, inObj), inObj)
if obj == nil {
return nil, err
}
return obj.(*authorizationapi.ClusterRole), err
}
示例3: Update
func (c *FakeComponentStatus) Update(componentStatus *api.ComponentStatus) (result *api.ComponentStatus, err error) {
obj, err := c.Fake.
Invokes(core.NewRootUpdateAction("componentStatus", componentStatus), &api.ComponentStatus{})
if obj == nil {
return nil, err
}
return obj.(*api.ComponentStatus), err
}
示例4: Update
func (c *FakeUserIdentityMappings) Update(inObj *userapi.UserIdentityMapping) (*userapi.UserIdentityMapping, error) {
obj, err := c.Fake.Invokes(core.NewRootUpdateAction(userIdentityMappingsResource, inObj), inObj)
if obj == nil {
return nil, err
}
return obj.(*userapi.UserIdentityMapping), err
}
示例5: Update
func (c *FakePersistentVolumes) Update(persistentVolume *api.PersistentVolume) (result *api.PersistentVolume, err error) {
obj, err := c.Fake.
Invokes(core.NewRootUpdateAction("persistentVolumes", persistentVolume), &api.PersistentVolume{})
if obj == nil {
return nil, err
}
return obj.(*api.PersistentVolume), err
}
示例6: Update
func (c *FakeIdentities) Update(inObj *userapi.Identity) (*userapi.Identity, error) {
obj, err := c.Fake.Invokes(core.NewRootUpdateAction(identitiesResource, inObj), inObj)
if obj == nil {
return nil, err
}
return obj.(*userapi.Identity), err
}
示例7: Update
func (c *FakeClusterResourceQuotas) Update(inObj *quotaapi.ClusterResourceQuota) (*quotaapi.ClusterResourceQuota, error) {
obj, err := c.Fake.Invokes(core.NewRootUpdateAction(clusteResourceQuotasResource, inObj), inObj)
if obj == nil {
return nil, err
}
return obj.(*quotaapi.ClusterResourceQuota), err
}
示例8: Update
func (c *FakeProjects) Update(project *api.Project) (result *api.Project, err error) {
obj, err := c.Fake.
Invokes(core.NewRootUpdateAction(projectsResource, project), &api.Project{})
if obj == nil {
return nil, err
}
return obj.(*api.Project), err
}
示例9: Update
func (c *FakeComponentStatuses) Update(componentStatus *v1.ComponentStatus) (result *v1.ComponentStatus, err error) {
obj, err := c.Fake.
Invokes(core.NewRootUpdateAction(componentstatusesResource, componentStatus), &v1.ComponentStatus{})
if obj == nil {
return nil, err
}
return obj.(*v1.ComponentStatus), err
}
示例10: Update
func (c *FakePodSecurityPolicies) Update(podSecurityPolicy *v1beta1.PodSecurityPolicy) (result *v1beta1.PodSecurityPolicy, err error) {
obj, err := c.Fake.
Invokes(core.NewRootUpdateAction(podsecuritypoliciesResource, podSecurityPolicy), &v1beta1.PodSecurityPolicy{})
if obj == nil {
return nil, err
}
return obj.(*v1beta1.PodSecurityPolicy), err
}
示例11: Update
func (c *FakeNamespaces) Update(namespace *v1.Namespace) (result *v1.Namespace, err error) {
obj, err := c.Fake.
Invokes(core.NewRootUpdateAction(namespacesResource, namespace), &v1.Namespace{})
if obj == nil {
return nil, err
}
return obj.(*v1.Namespace), err
}
示例12: Update
func (c *FakeNetworks) Update(network *v1.Network) (result *v1.Network, err error) {
obj, err := c.Fake.
Invokes(core.NewRootUpdateAction(networksResource, network), &v1.Network{})
if obj == nil {
return nil, err
}
return obj.(*v1.Network), err
}
示例13: Update
func (c *FakeClusterRoles) Update(clusterRole *rbac.ClusterRole) (result *rbac.ClusterRole, err error) {
obj, err := c.Fake.
Invokes(core.NewRootUpdateAction(clusterrolesResource, clusterRole), &rbac.ClusterRole{})
if obj == nil {
return nil, err
}
return obj.(*rbac.ClusterRole), err
}
示例14: Update
func (c *FakeClusters) Update(cluster *federation.Cluster) (result *federation.Cluster, err error) {
obj, err := c.Fake.
Invokes(core.NewRootUpdateAction(clustersResource, cluster), &federation.Cluster{})
if obj == nil {
return nil, err
}
return obj.(*federation.Cluster), err
}
示例15: Update
func (c *FakeClusterRoleBindings) Update(clusterRoleBinding *v1alpha1.ClusterRoleBinding) (result *v1alpha1.ClusterRoleBinding, err error) {
obj, err := c.Fake.
Invokes(core.NewRootUpdateAction(clusterrolebindingsResource, clusterRoleBinding), &v1alpha1.ClusterRoleBinding{})
if obj == nil {
return nil, err
}
return obj.(*v1alpha1.ClusterRoleBinding), err
}