本文整理汇总了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
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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
}
示例11: List
func (c *FakeClusterResourceQuotas) List(opts kapi.ListOptions) (*quotaapi.ClusterResourceQuotaList, error) {
obj, err := c.Fake.Invokes(ktestclient.NewRootListAction("clusterresourcequotas", opts), "aapi.ClusterResourceQuotaList{})
if obj == nil {
return nil, err
}
return obj.(*quotaapi.ClusterResourceQuotaList), err
}
示例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
}
示例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
}
示例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
}
示例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
}