k3s/pkg/openapi/zz_generated_bindata.go

259 lines
1.4 MiB
Go
Raw Normal View History

2019-01-26 04:56:12 +00:00
// Code generated by go-bindata.
// sources:
// vendor/k8s.io/kubernetes/openapi.json
// vendor/k8s.io/kubernetes/openapi.pb
// DO NOT EDIT!
package openapi
import (
"bytes"
"compress/gzip"
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
"strings"
"time"
)
func bindataRead(data []byte, name string) ([]byte, error) {
gz, err := gzip.NewReader(bytes.NewBuffer(data))
if err != nil {
return nil, fmt.Errorf("Read %q: %v", name, err)
}
var buf bytes.Buffer
_, err = io.Copy(&buf, gz)
clErr := gz.Close()
if err != nil {
return nil, fmt.Errorf("Read %q: %v", name, err)
}
if clErr != nil {
return nil, err
}
return buf.Bytes(), nil
}
type asset struct {
bytes []byte
info os.FileInfo
}
type bindataFileInfo struct {
name string
size int64
mode os.FileMode
modTime time.Time
}
func (fi bindataFileInfo) Name() string {
return fi.name
}
func (fi bindataFileInfo) Size() int64 {
return fi.size
}
func (fi bindataFileInfo) Mode() os.FileMode {
return fi.mode
}
func (fi bindataFileInfo) ModTime() time.Time {
return fi.modTime
}
func (fi bindataFileInfo) IsDir() bool {
return false
}
func (fi bindataFileInfo) Sys() interface{} {
return nil
}
var _openapiJson = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\xbd\xfd\x73\xdb\x38\xba\xef\xf9\xfb\xfc\x15\xa8\xec\x56\x79\xe6\x8e\x2d\x77\xe6\x9e\xaa\xd9\xed\xd4\xa9\x2d\x4f\x92\x9e\x49\xdd\xdc\x8e\x4f\x9c\xe9\xa9\xad\xcd\xad\x33\x10\x09\x49\xb8\xa1\x00\x36\x41\xda\xf1\x99\xea\xff\x7d\x0b\x6f\x24\x45\x51\x12\x25\xf1\x55\xfe\xfe\xd2\x4e\xdb\x12\x88\x37\xe2\x01\x3e\xdf\xe7\x79\xf0\xaf\xdf\x11\xf2\x4a\x3d\xd1\xe5\x92\x25\xaf\x7e\x24\xaf\xfe\x34\xfb\xe1\xd5\xb5\xfe\x1d\x17\x0b\xf9\xea\x47\xa2\xff\x4e\x5e\xa5\x3c\x8d\x98\xfe\xf3\xff\xc8\xe6\x2c\x11\x2c\x65\xca\x7c\x8a\xbc\x7a\x64\x89\xe2\x52\xe8\xbf\x3d\xfe\x30\xfb\x61\xf6\xc3\xab\xdf\x11\xf2\x9b\x29\x21\xa6\xe9\x4a\xe5\x45\xdc\xd2\x98\xdf\xfa\xff\x23\xaf\x96\x2c\xcd\xff\x87\xbc\x0a\x99\x0a\x12\x1e\xa7\xae\xa4\x25\x4b\x09\x7d\xa4\x3c\xa2\xf3\x88\x91\xbb\xfb\x0f\xc4\x3d\xc6\x3d\x95\x90\x57\x81\x14\x2a\x5b\x33\x5d\xfe\xff\x67\x7f\x45\x5e\xd1\x38\x8e\x78\x40\x75\x29\xb7\xff\x5b\x49\xe1\x3f\xbc\xf9\x97\x67\xba\x8e\xea\xff\xf2\x28\xc2\xd9\xb7\xbc\x81\xb3\x38\x91\xa9\x9c\x67\x8b\x57\xf6\xb3\xff\xcb\x3f\x3a\x4e\x64\x98\x05\x83\x3c\x5a\x05\x2b\x56\x69\xf4\x2a\x4d\x63\x55\xfd\x5c\x4a\x97\x1b\x1f\x0a\x64\xc2\xaa\x9f\x91\x31\x4b\xcc\xc3\x3f\x84\xae\xcf\xdf\xca\x84\xdd\xdd\x7f\xf8\xa5\xda\xd7\x09\x53\xb1\x14\x8a\xa9\x62\xc4\xc8\xab\x3f\xfd\xf0\x43\xe9\x7f\xb7\x86\xf0\xd3\xff\xc8\x1b\xea\xaa\x4d\xcb\x1f\x27\xaf\xfe\xcf\x84\x2d\xf4\x07\xff\x8f\xdb\x90\x2d\xb8\xe0\xfa\x8b\xea\x96\xcb\xd9\xb7\xff\x4b\xcd\x68\xcc\xd7\x34\x58\x71\xc1\x92\xe7\x59\xfc\x6d\xa9\x7f\xa1\x66\x6b\x96\xd2\xd9\xe3\xeb\x59\xb9\x8e\xbe\xc0\xdf\xdc\x3f\x7e\xcb\xbb\xf7\xdf\x7e\x78\xbd\xaf\x82\x7f\x17\x34\x4b\x57\x32\xe1\xff\xc5\x42\x5f\x8a\x2b\xc4\xfe\x30\xff\xb5\xc5\xd9\xc9\xfb\xf8\xfa\xb4\xf9\x9b\x30\x25\xb3\x24\x60\x98\xbc\xa7\x4f\xde\xff\x7c\x7c\xdd\x6c\xfe\xfe\xf2\xfa\xee\xfe\xc3\xe7\xad\x1e\x1f\xe1\x14\xf6\x95\xfc\xc8\x55\xda\xf3\x34\x0e\xe4\x3a\x96\x82\x89\x54\xa5\x34\xcd\xca\xbd\xb2\x7f\x5e\x47\x5c\xa5\x44\xce\xff\x37\x0b\x52\x45\xe4\x82\x7c\xe3\x22\x24\x6f\x7d\x61\x0f\xa6\xb0\xbd\x93\xfc\xbf\xdd\xfe\xb7\x21\x27\x64\xed\x87\xf5\x03\xde\xa8\x34\x61\x74\xfd\xef\x4f\x34\x0d\x56\x47\x95\xb9\xf9\xcd\x5e\x67\xbc\x1e\x0d\x3b\xe5\x77\x0d\xc1\x20\xb3\x7e\xa6\x6b\xaf\xe7\x78\xa5\x56\xdd\xcd\x73\xdf\xdc\xef\x37\xc5\x00\xdd\xd0\xa0\x3c\x6b\x5f\xd5\x7e\x66\x99\xc8\x2c\xbe\x71\x7b\x8b\x1b\x3d\x9b\xcb\x1d\x65\xfe\xaa\x0b\x28\x26\x84\xfb\xc8\xab\x1d\x1d\xbe\xb9\x1d\xf2\xe3\xe7\xde\x43\xfb\x99\x57\x31\x4d\xe8\x9a\xa5\x2c\x29\x8d\x78\xfe\xc8\x4c\xf0\x5f\x33\xf6\x21\x65\x6b\xfd\xd7\x34\xc9\x58\x5e\x72\xfa\x1c\x9b\x1d\x98\x4a\x13\x2e\x96\xc5\x13\x2b\xfd\xf4\x65\xc5\x48\x20\x45\xca\x45\xc6\x88\x34\xbf\x26\x6a\x25\xb3\x28\x24\x73\x46\x14\x4b\xc9\xd3\x8a\x09\x92\xb0\x34\xe1\xec\x91\x8b\x25\x59\xcb\xc4\xd8\xa8\x2c\x4a\x15\x59\x24\x72\x4d\xd2\x95\xfe\x64\xf2\xc8\x92\x19\x79\xe0\x22\x60\x24\x5d\x71\x45\x1e\x69\x94\x31\xc2\x95\xfb\x1b\x31\xc3\xcf\xc2\x6b\x12\x44\x5c\xaf\x25\x64\x4d\x9f\x89\x14\xd1\x33\xc9\x14\x33\x85\xe4\x15\xb1\x5f\x35\x85\x53\x12\x27\xec\x91\xcb\x4c\x91\x5f\x33\x96\x3c\xbb\x47\x93\x27\x9e\xae\x08\x0f\x99\x48\x79\x40\x23\xf7\xb7\xa2\xb3\xc8\xef\xd9\xf7\x80\xc5\x29\x59\xc8\xc4\x94\x6d\x8b\x94\x8b\xfc\x21\x7f\x20\x54\x84\xa5\xba\x9b\xea\x24\x4c\x2f\x56\x84\x56\xab\xc2\x53\x12\x4a\xa6\x88\x90\x29\x49\x58\x20\x97\x82\xff\x17\x9b\x91\x0f\x0b\x5b\x40\xcc\x02\xbe\xe0\x2c\xdc\xfa\x9a\xfe\x06\x89\xa4\x58\xb2\x44\xff\x8a\x87\xba\x3b\xd3\x95\xee\x8d\x8c\x91\x54\x12\xf6\x3d\xe6\xf6\x25\x25\xbf\x5f\x32\xc1\x12\x1a\x45\xcf\x64\xc1\x1f\xcd\x5f\x17\x7c\x91\x32\x26\xc8\x9a\x8b\x2c\x65\xea\x0f\x44\x26\xb6\x6e\x0b\xbe\xcc\xdc\xd7\x82\x15\x15\x4b\x46\xa4\x28\xb5\xe5\xba\xdc\xae\x27\x1e\x45\xc4\xbe\xda\xa1\xed\x36\x4a\xfe\xed\xf5\x0f\xc4\x1b\x94\xf7\xba\x0a\x2c\x24\x2c\x49\x74\x5f\xc9\xa5\xad\xa0\xfb\x64\xde\xa2\x54\x7e\x63\x22\x6f\xb2\x1d\x43\x22\x18\x0b\x95\xfd\x94\xe2\x2a\xd5\xbf\xd2\xaf\xcf\xb5\xee\xb0\x75\xa6\x74\x67\xa9\x94\x26\xa9\xfe\x0e\x4f\xcc\xdf\x4c\xc1\x32\x4b\x37\x47\x7c\xc1\x59\x14\xce\xc8\x27\xfd\xe8\x27\xae\xd8\x75\xf9\x29\x7a\x64\x14\x13\x21\xa1\x42\x9a\xba\x99\x72\x12\xf6\x6b\xc6\x5c\x79\xe6\xd3\xa6\x86\x7a\x78\x18
func openapiJsonBytes() ([]byte, error) {
return bindataRead(
_openapiJson,
"openapi.json",
)
}
func openapiJson() (*asset, error) {
bytes, err := openapiJsonBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "openapi.json", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _openapiPb = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\xfd\x79\x9c\x1c\x57\x79\xef\x8f\xbf\xa6\x25\x4b\xf6\x09\x60\xe9\xc8\xc6\xb8\x6d\xd9\xa5\x9e\x19\x8d\xd4\x9a\xe9\x59\xb4\x8f\xd6\x69\x69\x64\xcf\x48\x96\xc6\x92\x6c\x87\xc5\xd8\x35\xdd\x35\x33\x85\xba\xbb\xda\x55\xd5\x23\x0f\x5c\x5f\xf6\x0b\xb9\xb9\x3f\xb6\xb0\x38\x31\x21\x06\x02\x5c\xf6\xfd\x72\x09\xb9\x21\x09\x10\xb3\x2f\xd7\xc9\x25\x09\x81\x40\xc2\x0d\x5b\x02\x09\x70\x81\x2c\xfc\xf8\xbe\xce\x39\xb5\x9c\xee\xa9\x9e\xea\xa5\xba\xa7\xd5\xf3\xf9\x07\xe4\xe9\xaa\x53\xa7\xce\x56\xcf\x79\x9f\xcf\xf3\x3c\x64\xdd\x58\x6a\x84\x5e\x47\xc8\xe9\xd2\xac\x66\x16\x34\x5b\xb3\xe8\x86\xc5\x91\xd4\x48\x6a\x24\xfd\xe8\xcf\x17\xe9\x67\x63\xe4\xaa\x61\xb5\xa8\x0f\xd3\x3f\x8e\xd1\xff\x15\x23\xeb\x33\x86\xa9\xc5\xe3\xf3\x9a\xad\xa8\x8b\xaa\x9e\x53\x67\x73\x9a\x32\x31\x33\xa5\x2c\x6a\xa6\xa5\x1b\x05\x2b\x49\xe7\x35\xfb\x84\x61\x6a\x13\x33\x53\x77\x3b\x7f\x1b\xdb\xa4\x16\x8b\x39\x3d\xa3\xda\xba\x51\x18\x7e\x96\x65\x14\xca\xff\xb2\xa4\xe6\x73\x63\xbd\xf2\x5f\x16\x0b\xd9\xd4\x25\xaf\x46\xa9\xa2\x69\xd8\xc6\x6c\x69\x6e\x7c\x59\x41\xe3\xcb\x0a\x1a\xaf\xa5\xa0\xe9\x1c\xb9\x93\xac\x1b\x1b\x19\xa1\xd3\xe4\x76\x12\x3b\x77\x9a\xa6\xc9\x71\x72\xb4\x77\x38\xab\xcd\xe9\x05\x9d\xdd\x6a\x0d\xeb\x46\xea\xd2\x01\x2b\xa5\x16\xf5\xbc\x9a\x59\xd0\x0b\x9a\xb9\x94\x2a\x5e\x9a\x67\x7f\xb0\x52\x79\xcd\x56\x53\x8b\xa3\x29\xe9\x35\xc9\x0d\x64\xdd\x9e\x91\x51\xba\x89\x3c\x89\x3c\xe1\xae\x82\x5a\xb2\x17\x0c\x53\x7f\xb6\x96\x3d\x7f\xd5\x82\x6d\x17\x2d\xfa\xe7\x31\x72\x35\x6f\xcc\xc5\xd1\x61\xfa\x58\x8c\x7e\x32\x46\x36\xb2\xf6\xbc\x6f\x71\x34\x7e\x43\x79\x93\x9a\x9a\x65\x94\xcc\x8c\x66\x25\xaf\x77\xda\xf3\xee\xd1\x89\x99\xa9\xf3\xee\x9f\x3b\xb0\x49\x8b\xe4\x2e\xd1\xa4\x67\xc9\x19\xde\xa4\xa7\xc8\x49\x92\x6e\xac\x49\xdd\xf7\x3c\xa3\x5b\x76\x68\xb3\x7e\x33\x41\x6e\x74\x9b\x35\x63\xe4\x8b\x46\x41\x2b\xd8\x96\xad\xda\x25\x4b\xb3\xe8\x9f\x26\xe8\x63\xeb\xfc\x76\xee\xcb\xe9\x96\xad\x18\xb3\xcf\xd2\x32\xb6\xa5\x18\x73\xca\x25\xbd\x90\x55\x4e\xb8\xb7\x5d\xe0\xb7\x25\x6f\x64\x57\x89\x56\xaf\xf8\x29\xb2\x86\x1f\xdb\x5a\x59\xd0\x21\xcb\x36\x35\x35\x7f\xe4\xb2\x6a\x67\x16\xc6\x46\x6a\x28\xa3\xec\x8e\xf1\x75\xc9\xe1\xe4\xf4\x2c\xb9\x4d\xf4\xc2\x71\x72\x94\xf7\xc2\x01\xb2\x8f\xec\xa9\xd6\x0b\x29\xd6\x2c\xac\xcd\x2b\xde\xb2\x96\x76\x7f\xd6\x2d\x64\xcb\x83\x43\x7e\xad\x86\xd4\x0c\x2b\x9e\x6e\xa4\x57\xb1\xd6\x23\xcf\xba\x93\xdc\x5a\xf6\xfb\xbc\x69\x94\x8a\x43\xce\x42\x31\xc4\xda\x9d\xa6\xe8\x20\xff\xeb\xb8\x92\x48\x10\xf6\x97\xf1\xca\xae\x20\xce\xf5\xe3\xca\xe2\x28\x99\xfe\xd1\x35\xe4\x1f\xaf\xa1\xdf\xbb\x26\xfe\x0f\xd7\xd0\xab\x1e\x28\x69\xe6\x52\xfc\xb1\x6b\x2e\x2e\x68\x4a\xc6\x28\xd8\x7a\xa1\xa4\x29\x46\x91\x55\x42\xb1\x16\x8c\x52\x2e\xab\xcc\x6a\x8a\xa5\xd9\xca\xe5\x05\xad\xa0\x98\x9a\x6d\xea\xda\xa2\x5e\x98\x57\xf2\x86\xc9\xa7\x58\x29\x67\x5b\xca\x9c\x69\xe4\x15\x7b\x81\x5d\x69\x2e\x6a\x66\x4a\xb9\xa0\x17\x32\x9a\x62\x2f\xe8\x96\xb2\xa8\xe6\x4a\x9a\xa2\x5b\xce\x6f\x0a\x6f\x45\x2d\x3b\xa8\x64\x72\x3a\x1b\x64\x4a\x5e\x5d\x52\x8c\x42\x6e\x49\x29\x59\x1a\x2f\xc4\xab\x88\xb8\x95\x17\xae\x2a\x45\x53\x5b\xd4\x8d\x92\xa5\xf0\x3a\x3b\x8f\x56\x2e\xeb\xf6\x82\xa2\x67\xb5\x82\xad\x67\xd4\x9c\xf3\x5b\x51\x35\xd5\xbc\x66\x6b\xa6\xa5\xec\xd0\x1e\xcc\x68\x45\x5b\x99\x33\x4c\x5e\xb6\x28\xd2\x98\xf3\x1e\xb2\x53\x51\x0b\x59\xa9\xee\xbc\x3a\xa6\xc6\xc6\xb6\xa2\x56\x56\x45\xb7\x95\xac\xa1\x59\x4a\xc1\xb0\x15\x53\xcb\x18\xf3\x05\xfd\xd9\x5a\x4a\x99\x9a\x13\x05\x14\xb5\x8c\x3e\xa7\x6b\xd9\x65\xb7\xb1\x3b\x94\x9c\x51\x98\xd7\x4c\xf6\x27\x3d\xcb\x9a\xd3\x5e\x60\xad\x51\xd2\x14\xdb\x50\xb4\x07\x8b\xba\xc9\xc7\xa9\xb2\x63\x5e\x2b\x68\xa6\x9a\xcb\x2d\x29\x73\xfa\x22\xff\x75\x4e\x9f\xb3\x35\xad\xa0\xe4\xf5\x42\xc9\xd6\xac\x9d\x8a\x61\x8a\xba\xcd\xe9\xf3\x25\xe7\xb6\xcc\x82\x5a\x98\xd7\x14\xa3\x20\xbd\xcb\xa0\xfc\x5e\x97\xf5\x5c\x8e\xb5\x5a\xd1\x28\x64\x45\xb3\xa9\xca\x9e\xd1\x11\xc5\x5d\x27\x26\x59\x15\xb4\xac\xa2\x99\x26\x6b\x2b\x63\x5e\x54\xd0\xb9\xd2\x7b\x23\xdb\xb8\xa4\x15\xbc\x57\x16\x7d\xa8\x14\x34\x2d\x6b\x89\xab\x2c\xdd\xb2\xd9\x9f\xd8\xf8\x1d\x64\x0d\x96\x2f\x59\xac\xb1\x2c\x5b\x35\x6d\x76\x8f\x6e\xf2\xdf\x78\xc1\x46\xc9\x2e\xef\xf1\x
func openapiPbBytes() ([]byte, error) {
return bindataRead(
_openapiPb,
"openapi.pb",
)
}
func openapiPb() (*asset, error) {
bytes, err := openapiPbBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "openapi.pb", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
// Asset loads and returns the asset for the given name.
// It returns an error if the asset could not be found or
// could not be loaded.
func Asset(name string) ([]byte, error) {
cannonicalName := strings.Replace(name, "\\", "/", -1)
if f, ok := _bindata[cannonicalName]; ok {
a, err := f()
if err != nil {
return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err)
}
return a.bytes, nil
}
return nil, fmt.Errorf("Asset %s not found", name)
}
// MustAsset is like Asset but panics when Asset would return an error.
// It simplifies safe initialization of global variables.
func MustAsset(name string) []byte {
a, err := Asset(name)
if err != nil {
panic("asset: Asset(" + name + "): " + err.Error())
}
return a
}
// AssetInfo loads and returns the asset info for the given name.
// It returns an error if the asset could not be found or
// could not be loaded.
func AssetInfo(name string) (os.FileInfo, error) {
cannonicalName := strings.Replace(name, "\\", "/", -1)
if f, ok := _bindata[cannonicalName]; ok {
a, err := f()
if err != nil {
return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err)
}
return a.info, nil
}
return nil, fmt.Errorf("AssetInfo %s not found", name)
}
// AssetNames returns the names of the assets.
func AssetNames() []string {
names := make([]string, 0, len(_bindata))
for name := range _bindata {
names = append(names, name)
}
return names
}
// _bindata is a table, holding each asset generator, mapped to its name.
var _bindata = map[string]func() (*asset, error){
"openapi.json": openapiJson,
"openapi.pb": openapiPb,
}
// AssetDir returns the file names below a certain
// directory embedded in the file by go-bindata.
// For example if you run go-bindata on data/... and data contains the
// following hierarchy:
// data/
// foo.txt
// img/
// a.png
// b.png
// then AssetDir("data") would return []string{"foo.txt", "img"}
// AssetDir("data/img") would return []string{"a.png", "b.png"}
// AssetDir("foo.txt") and AssetDir("notexist") would return an error
// AssetDir("") will return []string{"data"}.
func AssetDir(name string) ([]string, error) {
node := _bintree
if len(name) != 0 {
cannonicalName := strings.Replace(name, "\\", "/", -1)
pathList := strings.Split(cannonicalName, "/")
for _, p := range pathList {
node = node.Children[p]
if node == nil {
return nil, fmt.Errorf("Asset %s not found", name)
}
}
}
if node.Func != nil {
return nil, fmt.Errorf("Asset %s not found", name)
}
rv := make([]string, 0, len(node.Children))
for childName := range node.Children {
rv = append(rv, childName)
}
return rv, nil
}
type bintree struct {
Func func() (*asset, error)
Children map[string]*bintree
}
var _bintree = &bintree{nil, map[string]*bintree{
"openapi.json": &bintree{openapiJson, map[string]*bintree{}},
"openapi.pb": &bintree{openapiPb, map[string]*bintree{}},
}}
// RestoreAsset restores an asset under the given directory
func RestoreAsset(dir, name string) error {
data, err := Asset(name)
if err != nil {
return err
}
info, err := AssetInfo(name)
if err != nil {
return err
}
err = os.MkdirAll(_filePath(dir, filepath.Dir(name)), os.FileMode(0755))
if err != nil {
return err
}
err = ioutil.WriteFile(_filePath(dir, name), data, info.Mode())
if err != nil {
return err
}
err = os.Chtimes(_filePath(dir, name), info.ModTime(), info.ModTime())
if err != nil {
return err
}
return nil
}
// RestoreAssets restores an asset under the given directory recursively
func RestoreAssets(dir, name string) error {
children, err := AssetDir(name)
// File
if err != nil {
return RestoreAsset(dir, name)
}
// Dir
for _, child := range children {
err = RestoreAssets(dir, filepath.Join(name, child))
if err != nil {
return err
}
}
return nil
}
func _filePath(dir, name string) string {
cannonicalName := strings.Replace(name, "\\", "/", -1)
return filepath.Join(append([]string{dir}, strings.Split(cannonicalName, "/")...)...)
}