ingress-nginx-helm/internal/file/bindata.go

290 lines
42 KiB
Go
Raw Normal View History

// Code generated by go-bindata.
// sources:
// rootfs/etc/nginx/nginx.conf
// rootfs/etc/nginx/template/nginx.tmpl
// rootfs/ingress-controller/clean-nginx-conf.sh
// DO NOT EDIT!
package file
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 _etcNginxNginxConf = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x2c\xca\x41\x0a\x83\x40\x0c\x85\xe1\xfd\x9c\xe2\x41\xf7\x7a\x00\x57\x3d\xca\xa0\x89\x06\x34\x19\x32\x4f\x69\x29\xbd\x7b\x69\xe9\xea\x5f\xfc\xdf\x0d\x77\x5c\x92\x4f\x74\x3b\xda\x2e\xf0\xd5\xfc\x81\x39\x5c\x6d\x3d\xb3\xd2\xc2\xa1\xb6\x0b\xb8\x55\x42\x23\x67\xe9\x7f\xc4\x40\x67\x4d\x0e\xa5\xd9\x82\x31\x4f\x1f\x7f\x63\x68\xb6\x4c\xa5\xc8\x25\xce\x8e\xd7\xbb\x6c\x64\xfb\x76\xa9\x72\x84\x23\x54\xa7\x4f\x00\x00\x00\xff\xff\x75\xb5\xe6\xb8\x77\x00\x00\x00")
func etcNginxNginxConfBytes() ([]byte, error) {
return bindataRead(
_etcNginxNginxConf,
"etc/nginx/nginx.conf",
)
}
func etcNginxNginxConf() (*asset, error) {
bytes, err := etcNginxNginxConfBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "etc/nginx/nginx.conf", size: 119, mode: os.FileMode(420), modTime: time.Unix(1511087392, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _etcNginxTemplateNginxTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x7d\x6d\x73\xdb\x38\xd2\xe0\xf7\xfc\x0a\x94\xec\xab\xbc\x54\x24\x3b\xb3\xd9\xd9\x5d\xbb\x7c\x75\x8e\x9d\xac\x7d\xeb\x24\x2e\xcb\xc9\x6c\x3d\x57\x57\x2a\x88\x6c\x89\x58\x53\x04\x07\x00\x6d\x6b\x72\xbe\xdf\xfe\x14\x5e\x09\x80\x20\x25\x67\x32\x2f\x3b\xb5\xfc\xe0\xb2\x48\xa0\xd1\x68\x34\x1a\x8d\xee\x46\xe3\xcb\x17\xb4\x8b\xcb\x12\x1d\x1c\xa1\x09\x7a\x78\x78\x22\x7f\x73\x60\xb7\xc0\xb8\x7a\x37\x35\xff\x9b\x4f\xd9\x62\xa9\x5e\x9f\x2c\x96\xf6\xd5\x39\x3f\xbf\xfc\xfc\xfd\xdb\x0a\xcf\x4b\xc8\xd5\xc7\xf0\x8d\x29\x56\x00\x2e\x45\xf1\xd3\xa7\xab\x73\x55\xe6\xac\xfd\x69\x0a\xcc\x71\x76\x03\x55\xae\x9b\x7d\x63\x7f\x98\x8f\x35\xa3\xf7\xeb\x33\xc0\xb9\xc5\xeb\x52\xbe\x98\x82\xb0\xef\x4c\x39\x9c\xe7\x7e\xa9\xe3\xf6\xe7\xc3\xc3\x13\x59\x82\x2c\x54\x27\x26\x1a\xbb\xf7\x34\xe7\x90\x35\x8c\x88\xb5\x2c\x50\x52\x9c\xcf\x56\x34\x6f\x4a\x40\x7b\x20\xb2\xbd\x6a\x49\xaa\xfb\x3d\xfd\x86\xef\x55\xcb\xfb\x59\x21\x44\x2d\x8b\xd8\x6a\xa6\xf8\x84\xd3\x43\x09\x1e\xaa\xdc\xb6\x34\x6f\x48\x99\x7f\xac\xa1\x12\x0c\x67\xa4\x5a\x5e\x50\x9c\x6b\x02\xca\x02\x39\x86\x15\xad\x10\x5d\x2c\x0e\x9f\x3c\xb9\xa3\xec\x06\xd8\xac\x66\x34\x03\xce\x81\x23\x43\xea\xc9\x0f\xea\xc3\xa5\x7b\xff\xf0\x70\x68\x3a\xb1\x14\xe8\x59\x09\x95\x5f\xec\xa4\x6e\x8e\x17\x0b\x52\x11\xb1\x7e\x8e\xf6\x65\x2b\x06\x6e\x56\x37\x33\x6c\xbe\x44\xa0\xbd\x3a\x16\xb8\xed\x42\x4d\x72\xb4\xc7\x9a\x4a\x13\x61\x52\x93\xdc\xb6\x5d\x01\x9a\xbc\xc7\xf7\xb2\x6f\xef\x48\x09\x3c\x68\x8c\x95\x64\x45\xc4\xac\xa2\x0b\x52\x82\x6c\x2d\x2c\x1a\x35\xf2\xe5\xcb\xde\x0b\x24\x69\x7a\xb0\x67\xda\xa1\x6c\xb9\x07\xd5\x5e\x4e\x33\x4d\xf0\x8c\x32\xb0\x44\x2e\xc4\xaa\xdc\x31\xed\xf0\xa2\x11\x39\xbd\xab\x66\x82\xac\x80\x36\x02\xbd\xd8\x53\x3c\xb0\xf7\x02\xe1\x5b\x4a\x72\x74\x87\x89\x20\xd5\x12\x09\x4a\x51\x49\xab\x25\xca\x1b\x26\x7f\x63\xc4\x40\x0e\xb4\xae\xd0\x07\x2d\x24\xd3\xd4\x7c\xbe\x36\x5f\x1f\x1e\xd0\xe1\x93\x27\x70\x0b\x95\xe0\xe8\xcb\x13\x84\x10\x5a\x35\xa5\x20\x33\x9c\x65\x50\x0b\x64\x1e\x5a\x1d\xaa\x6f\x76\x1c\x68\x55\x41\x26\x08\xad\x38\x72\x0d\xbc\xc7\xf7\x66\x28\xbc\xaf\x92\x4a\xb2\x62\xc3\x01\xc5\x0f\xd4\xb4\x2c\x0f\x9f\x3c\x3c\x79\x22\xe9\x66\x5a\x57\xfd\xbe\x03\x55\x41\x14\x80\x6e\x71\xd9\x00\xa2\x0b\xf5\xa3\x50\x53\x00\xfd\x73\xfc\x8e\xb2\x3b\xcc\x72\xc8\xe5\x7f\x48\x50\x34\x07\x24\xa7\x81\xfc\xd7\xd6\x5c\x02\x9d\x91\x1a\x99\x59\xa0\x68\xa4\x1b\x70\x53\xe7\x13\x07\x35\xfb\x2e\x19\x15\x34\xa3\x25\x32\x45\x18\xe0\x72\x46\xea\x99\x69\x4e\x3d\x6a\xde\x4a\xc6\x56\x25\x0f\x2d\x28\x28\x39\x0c\x55\xb3\xc4\x71\x08\xbf\xa3\x4c\x4f\x64\x47\x1a\x8f\x89\x7c\x28\x4c\xce\x4b\x4e\x6e\xc1\x23\xff\x97\x2f\x88\xe1\x6a\x09\x68\x57\xb0\x86\x0b\xc8\x65\x07\x0f\x8e\x74\x13\xaa\x2b\x57\x80\xcb\xf3\xcb\x93\xf3\xd3\x2b\x8b\x15\x07\x31\xb3\x30\x17\x8c\xae\x2c\x56\x1e\x84\x1e\x4c\xd4\x50\xe4\x58\xe0\x39\x96\x53\xb6\xe1\x90\x4b\xfa\xe6\x20\x80\xad\x48\xa5\xa9\x9c\xd1\xa6\x12\x6c\x8d\x72\xa8\xa1\xca\x25\x5b\xd2\x4a\x7f\x28\x09\x54\x02\x9d\x5f\x22\x9c\xe7\x0c\x38\xf7\x87\x60\x68\xae\xc8\x0f\xad\x84\x5a\x02\x25\xb5\x3f\x6d\x22\x30\xa2\x20\x1c\x11\x8e\x18\xfc\xd8\x10\xa6\x18\x20\xc3\x65\xd6\x94\x58\x00\x12\x4c\x4a\x8b\x0c\x2d\x28\x43\xa4\xca\xc9\x2d\xc9\x1b\x5c\x3a\x9c\x1b\x2e\xf1\xfd\x3b\xd0\xf3\x4b\x44\x34\xd6\x5c\x60\xd1\x70\x54\xe3\xa5\xc7\x32\x1a\x07\x5b\x4b\x3f\x9e\x54\x55\x9f\xf7\x14\x98\x49\x8e\xc5\xa1\x5f\x47\x8a\x23\xf7\xa4\xea\x5c\x10\x01\x27\x44\xac\xe3\x9a\x94\x2d\xd1\x70\xcd\xf3\xcb\xe3\xe9\x87\x66\x15\x57\xd4\x8c\xda\x72\x8f\xe4\x9d\x98\xf1\xf5\x9a\xf1\x59\xf0\xa9\xee\xae\xe9\xe7\x6d\x41\xb9\x98\x19\xa2\xcd\x34\x29\x66\x3f\xd1\x0a\x10\x2f\x30\x83\xfc\x20\x55\xe0\xc0\xb2\xb8\x03\xf7\x5f\xb4\x82\x29\xf9\x09\x1c\x5f\x25\xe1\x2e\x48\x29\x80\xcd\xe6\xeb\x99\xe4\xd0\x1b\x68\x05\xfa\x67\xc1\x4f\x61\x81\x9b\x52\xbc\x53\x65\xfe\x01\xeb\x3e\x16\xc5\x84\x76\xc4\x8a\x28\x18\xe0\x9c\x1f\xda\x02\xb3\x3b\x46\x84\x2f\x7d\x1c\x45\x44\x56\xcf\x2a\x5a\x37\xbc\x08\x3f\xb6\xdf\x72\x28\xf1\xba\x5b\xb1\xa4\xcb\x19\x6f\xe6\x92\xe7\x80\x8b\xe8\x23\x03\xd9\x21\x29\x7e\x73\xda\x08\x4f\x56\xb6\x45\x6e\x00\x6a\x5c\x92\x5b\x70\x52\xda\x75\xfe\x1f\x00\xf5\xb1\xfc\x84\x1e\x
func etcNginxTemplateNginxTmplBytes() ([]byte, error) {
return bindataRead(
_etcNginxTemplateNginxTmpl,
"etc/nginx/template/nginx.tmpl",
)
}
func etcNginxTemplateNginxTmpl() (*asset, error) {
bytes, err := etcNginxTemplateNginxTmplBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "etc/nginx/template/nginx.tmpl", size: 39897, mode: os.FileMode(420), modTime: time.Unix(1521216438, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _ingressControllerCleanNginxConfSh = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x64\x92\x41\x6b\xe3\x48\x10\x85\xef\xfa\x15\x6f\x2d\x83\x77\x17\x47\x9d\x78\x0f\x0b\xc9\xc9\x9b\x64\x19\x91\x60\x43\xe4\x4c\x08\x98\x40\xbb\x55\x96\x0a\xa4\x6e\x4d\x75\x2b\xb6\x99\x99\xff\x3e\xb4\xe2\xcc\xc4\x8c\x8e\x55\x4f\xfd\xbe\x7a\x55\xe9\x1f\x6a\xc3\x56\x6d\xb4\xaf\x93\x24\xc5\xb5\xeb\x0e\xc2\x55\x1d\x30\x3b\xbf\xf8\x17\xab\x9a\x70\xd7\x6f\x48\x2c\x05\xf2\x98\xf7\xa1\x76\xe2\xb3\x24\x4d\x52\xdc\xb3\x21\xeb\xa9\x44\x6f\x4b\x12\x84\x9a\x30\xef\xb4\xa9\xe9\xbd\x33\xc5\x67\x12\xcf\xce\x62\x96\x9d\xe3\xcf\x28\x18\x1d\x5b\xa3\xbf\xae\x92\x14\x07\xd7\xa3\xd5\x07\x58\x17\xd0\x7b\x42\xa8\xd9\x63\xcb\x0d\x81\xf6\x86\xba\x00\xb6\x30\xae\xed\x1a\xd6\xd6\x10\x76\x1c\xea\xc1\xe6\xf8\x48\x96\xa4\x78\x3e\x3e\xe1\x36\x41\xb3\x85\x86\x71\xdd\x01\x6e\xfb\x51\x07\x1d\x06\xe0\xf8\xd5\x21\x74\x97\x4a\xed\x76\xbb\x4c\x0f\xb0\x99\x93\x4a\x35\x6f\x42\xaf\xee\xf3\xeb\xdb\x45\x71\x7b\x36\xcb\xce\x87\x5f\x1e\x6d\x43\xde\x43\xe8\x4b\xcf\x42\x25\x36\x07\xe8\xae\x6b\xd8\xe8\x4d\x43\x68\xf4\x0e\x4e\xa0\x2b\x21\x2a\x11\x5c\xe4\xdd\x09\x07\xb6\xd5\x14\xde\x6d\xc3\x4e\x0b\x25\x29\x4a\xf6\x41\x78\xd3\x87\x93\xb0\xde\xe9\xd8\x9f\x08\x9c\x85\xb6\x18\xcd\x0b\xe4\xc5\x08\xff\xcd\x8b\xbc\x98\x26\x29\x9e\xf2\xd5\xa7\xe5\xe3\x0a\x4f\xf3\x87\x87\xf9\x62\x95\xdf\x16\x58\x3e\xe0\x7a\xb9\xb8\xc9\x57\xf9\x72\x51\x60\xf9\x3f\xe6\x8b\x67\xdc\xe5\x8b\x9b\x29\x88\x43\x4d\x02\xda\x77\x12\xf9\x9d\x80\x63\x8c\x54\xc6\xcc\x0a\xa2\x13\x80\xad\x7b\x03\xf2\x1d\x19\xde\xb2\x41\xa3\x6d\xd5\xeb\x8a\x50\xb9\x57\x12\xcb\xb6\x42\x47\xd2\xb2\x8f\xcb\xf4\xd0\xb6\x4c\x52\x34\xdc\x72\xd0\x61\xa8\xfc\x36\x54\x16\x6f\x69\x15\xd7\xe9\x8d\x70\x17\x20\xd4\xba\x57\xf2\x30\xce\x7a\x32\x7d\xe0\x57\x02\xb5\x5d\x38\xa0\x61\x4b\x3e\x26\x67\x2b\xb6\xfb\xcc\x38\xbb\x8d\xc1\xfb\xe8\x1a\xaf\x8b\x3d\x5a\x27\x04\x1f\x27\x88\xe0\xda\xa2\x1f\xba\x1a\x95\x83\x50\x45\xfb\x64\x98\xaa\x8c\xc7\xd2\x6a\x5b\xfa\xcb\x24\xc5\x45\x76\x34\x1d\xb8\x84\x42\x2f\x16\x46\x8b\x30\x09\x4c\xad\x45\x9b\x40\xa2\x7c\x92\x62\xf6\x53\xfa\x01\x29\x49\xf1\x4f\xac\x77\x8d\x36\x84\xb6\x6f\x02\x47\xff\x8f\x8a\x88\x77\x46\x98\x78\xb5\x16\xa5\xaa\x09\xbe\xe1\x57\xe9\x05\xf8\x7b\xac\xd6\x93\xf1\x64\x6d\x4f\x7b\xea\x65\xac\xbe\x2e\xae\xd4\xcb\xda\x8e\xd5\xcd\xd5\xf7\x49\xf2\x23\x00\x00\xff\xff\x3b\xba\x15\x8d\x85\x03\x00\x00")
func ingressControllerCleanNginxConfShBytes() ([]byte, error) {
return bindataRead(
_ingressControllerCleanNginxConfSh,
"ingress-controller/clean-nginx-conf.sh",
)
}
func ingressControllerCleanNginxConfSh() (*asset, error) {
bytes, err := ingressControllerCleanNginxConfShBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "ingress-controller/clean-nginx-conf.sh", size: 901, mode: os.FileMode(493), modTime: time.Unix(1511087392, 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){
"etc/nginx/nginx.conf": etcNginxNginxConf,
"etc/nginx/template/nginx.tmpl": etcNginxTemplateNginxTmpl,
"ingress-controller/clean-nginx-conf.sh": ingressControllerCleanNginxConfSh,
}
// 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{
"etc": &bintree{nil, map[string]*bintree{
"nginx": &bintree{nil, map[string]*bintree{
"nginx.conf": &bintree{etcNginxNginxConf, map[string]*bintree{}},
"template": &bintree{nil, map[string]*bintree{
"nginx.tmpl": &bintree{etcNginxTemplateNginxTmpl, map[string]*bintree{}},
}},
}},
}},
"ingress-controller": &bintree{nil, map[string]*bintree{
"clean-nginx-conf.sh": &bintree{ingressControllerCleanNginxConfSh, 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, "/")...)...)
}