blob: edd608f3b26e89cad6a31945bcfd22f57dbdc387 [file] [log] [blame]
sslobodrd046be82019-01-16 10:02:22 -05001/*
2Copyright The Kubernetes Authors.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17package 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. DO NOT EDIT.
30var map_AuditSink = map[string]string{
31 "": "AuditSink represents a cluster level audit sink",
32 "spec": "Spec defines the audit configuration spec",
33}
34
35func (AuditSink) SwaggerDoc() map[string]string {
36 return map_AuditSink
37}
38
39var map_AuditSinkList = map[string]string{
40 "": "AuditSinkList is a list of AuditSink items.",
41 "items": "List of audit configurations.",
42}
43
44func (AuditSinkList) SwaggerDoc() map[string]string {
45 return map_AuditSinkList
46}
47
48var map_AuditSinkSpec = map[string]string{
49 "": "AuditSinkSpec holds the spec for the audit sink",
50 "policy": "Policy defines the policy for selecting which events should be sent to the webhook required",
51 "webhook": "Webhook to send events required",
52}
53
54func (AuditSinkSpec) SwaggerDoc() map[string]string {
55 return map_AuditSinkSpec
56}
57
58var map_Policy = map[string]string{
59 "": "Policy defines the configuration of how audit events are logged",
60 "level": "The Level that all requests are recorded at. available options: None, Metadata, Request, RequestResponse required",
61 "stages": "Stages is a list of stages for which events are created.",
62}
63
64func (Policy) SwaggerDoc() map[string]string {
65 return map_Policy
66}
67
68var map_ServiceReference = map[string]string{
69 "": "ServiceReference holds a reference to Service.legacy.k8s.io",
70 "namespace": "`namespace` is the namespace of the service. Required",
71 "name": "`name` is the name of the service. Required",
72 "path": "`path` is an optional URL path which will be sent in any request to this service.",
73}
74
75func (ServiceReference) SwaggerDoc() map[string]string {
76 return map_ServiceReference
77}
78
79var map_Webhook = map[string]string{
80 "": "Webhook holds the configuration of the webhook",
81 "throttle": "Throttle holds the options for throttling the webhook",
82 "clientConfig": "ClientConfig holds the connection parameters for the webhook required",
83}
84
85func (Webhook) SwaggerDoc() map[string]string {
86 return map_Webhook
87}
88
89var map_WebhookClientConfig = map[string]string{
90 "": "WebhookClientConfig contains the information to make a connection with the webhook",
91 "url": "`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\n\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\n\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.",
92 "service": "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`.\n\nPort 443 will be used if it is open, otherwise it is an error.",
93 "caBundle": "`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.",
94}
95
96func (WebhookClientConfig) SwaggerDoc() map[string]string {
97 return map_WebhookClientConfig
98}
99
100var map_WebhookThrottleConfig = map[string]string{
101 "": "WebhookThrottleConfig holds the configuration for throttling events",
102 "qps": "ThrottleQPS maximum number of batches per second default 10 QPS",
103 "burst": "ThrottleBurst is the maximum number of events sent at the same moment default 15 QPS",
104}
105
106func (WebhookThrottleConfig) SwaggerDoc() map[string]string {
107 return map_WebhookThrottleConfig
108}
109
110// AUTO-GENERATED FUNCTIONS END HERE