Remove BPA from Makefile
[icn.git] / cmd / bpa-operator / vendor / k8s.io / apimachinery / pkg / apis / meta / internalversion / types.go
1 /*
2 Copyright 2017 The Kubernetes Authors.
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8     http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 */
16
17 package internalversion
18
19 import (
20         metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
21         "k8s.io/apimachinery/pkg/fields"
22         "k8s.io/apimachinery/pkg/labels"
23         "k8s.io/apimachinery/pkg/runtime"
24 )
25
26 // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
27
28 // ListOptions is the query options to a standard REST list call.
29 type ListOptions struct {
30         metav1.TypeMeta
31
32         // A selector based on labels
33         LabelSelector labels.Selector
34         // A selector based on fields
35         FieldSelector fields.Selector
36         // If true, partially initialized resources are included in the response.
37         // +optional
38         IncludeUninitialized bool
39         // If true, watch for changes to this list
40         Watch bool
41         // When specified with a watch call, shows changes that occur after that particular version of a resource.
42         // Defaults to changes from the beginning of history.
43         // When specified for list:
44         // - if unset, then the result is returned from remote storage based on quorum-read flag;
45         // - if it's 0, then we simply return what we currently have in cache, no guarantee;
46         // - if set to non zero, then the result is at least as fresh as given rv.
47         ResourceVersion string
48         // Timeout for the list/watch call.
49         TimeoutSeconds *int64
50         // Limit specifies the maximum number of results to return from the server. The server may
51         // not support this field on all resource types, but if it does and more results remain it
52         // will set the continue field on the returned list object.
53         Limit int64
54         // Continue is a token returned by the server that lets a client retrieve chunks of results
55         // from the server by specifying limit. The server may reject requests for continuation tokens
56         // it does not recognize and will return a 410 error if the token can no longer be used because
57         // it has expired.
58         Continue string
59 }
60
61 // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
62
63 // List holds a list of objects, which may not be known by the server.
64 type List struct {
65         metav1.TypeMeta
66         // +optional
67         metav1.ListMeta
68
69         Items []runtime.Object
70 }