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


Golang testclient.NewRootListAction函数代码示例

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


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

示例1: List

func (c *FakeClusterPolicies) List(opts kapi.ListOptions) (*authorizationapi.ClusterPolicyList, error) {
	obj, err := c.Fake.Invokes(ktestclient.NewRootListAction("clusterpolicies", opts), &authorizationapi.ClusterPolicyList{})
	if obj == nil {
		return nil, err
	}

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

示例2: List

func (c *FakeProjects) List(opts kapi.ListOptions) (*projectapi.ProjectList, error) {
	obj, err := c.Fake.Invokes(ktestclient.NewRootListAction("projects", opts), &projectapi.ProjectList{})
	if obj == nil {
		return nil, err
	}

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

示例3: List

func (c *FakeGroups) List(opts kapi.ListOptions) (*userapi.GroupList, error) {
	obj, err := c.Fake.Invokes(ktestclient.NewRootListAction("groups", opts), &userapi.GroupList{})
	if obj == nil {
		return nil, err
	}

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

示例4: List

func (c *FakeOAuthClient) List(opts kapi.ListOptions) (*oauthapi.OAuthClientList, error) {
	obj, err := c.Fake.Invokes(ktestclient.NewRootListAction("oauthclients", opts), &oauthapi.OAuthClientList{})
	if obj == nil {
		return nil, err
	}

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

示例5: List

func (c *FakeClusterPolicies) List(label labels.Selector, field fields.Selector) (*authorizationapi.ClusterPolicyList, error) {
	obj, err := c.Fake.Invokes(ktestclient.NewRootListAction("clusterpolicies", label, field), &authorizationapi.ClusterPolicyList{})
	if obj == nil {
		return nil, err
	}

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

示例6: List

func (c *FakeNetNamespace) List() (*sdnapi.NetNamespaceList, error) {
	obj, err := c.Fake.Invokes(ktestclient.NewRootListAction("netnamespaces", nil, nil), &sdnapi.NetNamespaceList{})
	if obj == nil {
		return nil, err
	}

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

示例7: List

func (c *FakeProjectRequests) List(opts kapi.ListOptions) (*unversioned.Status, error) {
	obj, err := c.Fake.Invokes(ktestclient.NewRootListAction("newprojects", opts), &unversioned.Status{})
	if obj == nil {
		return nil, err
	}

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

示例8: List

func (c *FakeProjectRequests) List(label labels.Selector, field fields.Selector) (*unversioned.Status, error) {
	obj, err := c.Fake.Invokes(ktestclient.NewRootListAction("newprojects", label, field), &unversioned.Status{})
	if obj == nil {
		return nil, err
	}

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

示例9: List

func (c *FakeGroups) List(label labels.Selector, field fields.Selector) (*userapi.GroupList, error) {
	obj, err := c.Fake.Invokes(ktestclient.NewRootListAction("groups", label, field), &userapi.GroupList{})
	if obj == nil {
		return nil, err
	}

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

示例10: List

func (c *FakeProjects) List(label labels.Selector, field fields.Selector) (*projectapi.ProjectList, error) {
	obj, err := c.Fake.Invokes(ktestclient.NewRootListAction("projects", label, field), &projectapi.ProjectList{})
	if obj == nil {
		return nil, err
	}

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

示例11: List

func (c *FakeClusterResourceQuotas) List(opts kapi.ListOptions) (*quotaapi.ClusterResourceQuotaList, error) {
	obj, err := c.Fake.Invokes(ktestclient.NewRootListAction("clusterresourcequotas", opts), &quotaapi.ClusterResourceQuotaList{})
	if obj == nil {
		return nil, err
	}

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

示例12: List

func (c *FakeHostSubnet) List(opts kapi.ListOptions) (*sdnapi.HostSubnetList, error) {
	obj, err := c.Fake.Invokes(ktestclient.NewRootListAction("hostsubnets", opts), &sdnapi.HostSubnetList{})
	if obj == nil {
		return nil, err
	}

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

示例13: List

func (c *FakeImages) List(opts kapi.ListOptions) (*imageapi.ImageList, error) {
	obj, err := c.Fake.Invokes(ktestclient.NewRootListAction("images", opts), &imageapi.ImageList{})
	if obj == nil {
		return nil, err
	}

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

示例14: List

func (c *FakeServiceBrokers) List(opts kapi.ListOptions) (*servicebrokerapi.ServiceBrokerList, error) {
	obj, err := c.Fake.Invokes(ktestclient.NewRootListAction("servicebroker", opts), &servicebrokerapi.ServiceBrokerList{})
	if obj == nil {
		return nil, err
	}

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

示例15: List

func (c *FakeImages) List(label labels.Selector, field fields.Selector) (*imageapi.ImageList, error) {
	obj, err := c.Fake.Invokes(ktestclient.NewRootListAction("images", label, field), &imageapi.ImageList{})
	if obj == nil {
		return nil, err
	}

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


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