f1c6fdbdf613a440e5e80f1f07f61b139cac8308
[oom/registrator.git] /
1 /*
2 Copyright 2016 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 v1alpha1
18
19 // This file contains a collection of methods that can be used from go-restful to
20 // generate Swagger API documentation for its models. Please read this PR for more
21 // information on the implementation: https://github.com/emicklei/go-restful/pull/215
22 //
23 // TODOs are ignored from the parser (e.g. TODO(andronat):... || TODO:...) if and only if
24 // they are on one line! For multiple line or blocks that you want to ignore use ---.
25 // Any context after a --- is ignored.
26 //
27 // Those methods can be generated by using hack/update-generated-swagger-docs.sh
28
29 // AUTO-GENERATED FUNCTIONS START HERE
30 var map_ClusterRole = map[string]string{
31         "":         "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.",
32         "metadata": "Standard object's metadata.",
33         "rules":    "Rules holds all the PolicyRules for this ClusterRole",
34 }
35
36 func (ClusterRole) SwaggerDoc() map[string]string {
37         return map_ClusterRole
38 }
39
40 var map_ClusterRoleBinding = map[string]string{
41         "":         "ClusterRoleBinding references a ClusterRole, but not contain it.  It can reference a ClusterRole in the global namespace, and adds who information via Subject.",
42         "metadata": "Standard object's metadata.",
43         "subjects": "Subjects holds references to the objects the role applies to.",
44         "roleRef":  "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.",
45 }
46
47 func (ClusterRoleBinding) SwaggerDoc() map[string]string {
48         return map_ClusterRoleBinding
49 }
50
51 var map_ClusterRoleBindingList = map[string]string{
52         "":         "ClusterRoleBindingList is a collection of ClusterRoleBindings",
53         "metadata": "Standard object's metadata.",
54         "items":    "Items is a list of ClusterRoleBindings",
55 }
56
57 func (ClusterRoleBindingList) SwaggerDoc() map[string]string {
58         return map_ClusterRoleBindingList
59 }
60
61 var map_ClusterRoleList = map[string]string{
62         "":         "ClusterRoleList is a collection of ClusterRoles",
63         "metadata": "Standard object's metadata.",
64         "items":    "Items is a list of ClusterRoles",
65 }
66
67 func (ClusterRoleList) SwaggerDoc() map[string]string {
68         return map_ClusterRoleList
69 }
70
71 var map_PolicyRule = map[string]string{
72         "":                      "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.",
73         "verbs":                 "Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule.  VerbAll represents all kinds.",
74         "attributeRestrictions": "AttributeRestrictions will vary depending on what the Authorizer/AuthorizationAttributeBuilder pair supports. If the Authorizer does not recognize how to handle the AttributeRestrictions, the Authorizer should report an error.",
75         "apiGroups":             "APIGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed.",
76         "resources":             "Resources is a list of resources this rule applies to.  ResourceAll represents all resources.",
77         "resourceNames":         "ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.",
78         "nonResourceURLs":       "NonResourceURLsSlice is a set of partial urls that a user should have access to.  *s are allowed, but only as the full, final step in the path This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding.",
79 }
80
81 func (PolicyRule) SwaggerDoc() map[string]string {
82         return map_PolicyRule
83 }
84
85 var map_Role = map[string]string{
86         "":         "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.",
87         "metadata": "Standard object's metadata.",
88         "rules":    "Rules holds all the PolicyRules for this Role",
89 }
90
91 func (Role) SwaggerDoc() map[string]string {
92         return map_Role
93 }
94
95 var map_RoleBinding = map[string]string{
96         "":         "RoleBinding references a role, but does not contain it.  It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in.  RoleBindings in a given namespace only have effect in that namespace.",
97         "metadata": "Standard object's metadata.",
98         "subjects": "Subjects holds references to the objects the role applies to.",
99         "roleRef":  "RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.",
100 }
101
102 func (RoleBinding) SwaggerDoc() map[string]string {
103         return map_RoleBinding
104 }
105
106 var map_RoleBindingList = map[string]string{
107         "":         "RoleBindingList is a collection of RoleBindings",
108         "metadata": "Standard object's metadata.",
109         "items":    "Items is a list of RoleBindings",
110 }
111
112 func (RoleBindingList) SwaggerDoc() map[string]string {
113         return map_RoleBindingList
114 }
115
116 var map_RoleList = map[string]string{
117         "":         "RoleList is a collection of Roles",
118         "metadata": "Standard object's metadata.",
119         "items":    "Items is a list of Roles",
120 }
121
122 func (RoleList) SwaggerDoc() map[string]string {
123         return map_RoleList
124 }
125
126 var map_Subject = map[string]string{
127         "":           "Subject contains a reference to the object or user identities a role binding applies to.  This can either hold a direct API object reference, or a value for non-objects such as user and group names.",
128         "kind":       "Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error.",
129         "apiVersion": "APIVersion holds the API group and version of the referenced object.",
130         "name":       "Name of the object being referenced.",
131         "namespace":  "Namespace of the referenced object.  If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error.",
132 }
133
134 func (Subject) SwaggerDoc() map[string]string {
135         return map_Subject
136 }
137
138 // AUTO-GENERATED FUNCTIONS END HERE