// Code generated by go-bindata.
// sources:
// data/enroll_blueprint.tmpl
// DO NOT EDIT!

package blueprint

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 _enroll_blueprintTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xac\x58\x5b\x6f\xdc\xb8\x15\x7e\xd7\xaf\x38\x18\x2e\xb0\x5d\xc0\xd6\xf4\xb1\x35\x0a\xa7\xb9\x14\x89\x8d\x60\x63\xd8\x59\x14\xfb\x34\xa0\xa4\x23\x89\x36\x45\xaa\x24\x35\x93\xd9\x60\xfe\x7b\x71\x48\x4a\xd6\x6d\x92\x5d\xc4\x2f\x83\x11\xc9\x73\x3f\xe7\xe3\x27\x31\xf8\x5c\x23\x94\xda\x34\xdc\x81\x2e\xc1\xd5\xc2\x42\x29\x24\x82\xb0\xc0\xc1\xe1\x17\x77\x19\x76\x1d\x16\xd0\x1a\xed\x74\xd6\x95\x25\x9a\x34\x09\xa2\xa3\x25\x12\x29\xb0\x14\x0a\x0b\xa8\xd1\xe0\x55\xc2\xa0\x76\xae\xb5\x57\xdb\x6d\x25\xdc\x25\x3f\xd8\x54\x28\x87\x46\x71\x99\x3e\x76\xd6\x09\x95\xba\xfd\xb6\x70\x7c\x6b\x74\xfe\xd4\xf2\x16\x8d\xcd\x85\xb5\xda\xd8\x6d\x26\x75\xb6\x6d\xb8\x75\x68\xb6\xde\x06\xfd\x3e\x62\xee\x76\x0d\x3a\x5e\x70\xc7\x53\xbf\x9c\x30\x78\x83\xa5\x36\x08\x96\xef\x85\xaa\xc0\x51\x3c\x42\xe2\x05\x64\x92\xab\x27\x90\x42\xa1\x05\xae\x8a\xf8\x2f\xc3\x4a\x28\x45\x27\x0f\xc2\xd5\xc0\x80\x1b\x04\x83\x8d\xde\x63\x91\x26\x09\x83\x87\x5a\x1b\x07\xd1\x1a\x28\xde\x20\x74\x16\x0b\xe0\xa4\x05\x44\x81\xca\x89\x52\xa0\x49\xe1\x4e\x22\xb7\x08\x5a\xc9\x23\x1d\x01\x7e\xf9\x87\x37\x54\x1f\xdb\x1a\x95\x4d\x93\xaf\x5f\x2f\x83\x95\xf4\x3d\xba\xbb\xa0\xf1\xa6\x38\x9d\x92\x3e\x16\x51\x5c\xc1\xe6\xeb\xd7\xf4\x74\xda\xf8\xc3\x28\x2d\xce\xb7\x8f\xba\x33\x71\x21\x1e\x52\xa4\x22\x61\xf0\xab\xc8\x11\xea\xae\xe1\x0a\x4a\x23\x50\x15\xf2\x38\xf1\x7b\xdd\x81\x5f\x79\x33\xb6\x41\x07\xbf\xe9\x44\x3c\xf0\xbb\xee\x0c\xdc\xad\xfa\xf1\xdf\x9a\x9a\xc7\x54\x5c\x89\x3f\xb8\x13\x5a\xf9\x2c\x38\xe4\x0d\xb5\x84\x6f\xa9\xde\x2d\x0e\x2d\x37\xd4\x69\xaf\xa6\xbe\x7d\x32\x55\xf4\x4b\x9b\xea\xbc\x4f\xa3\x4d\xef\xcf\x27\x53\x8d\x7d\x99\xa8\xfc\x8c\xbc\x89\x3a\xc9\x95\xf3\x4a\xc7\xbb\x5e\x2b\x49\x2e\x42\xd4\xb0\xd1\x07\x65\x37\x93\x78\x52\xf8\x8d\xea\xae\xe0\xe3\xbb\xd7\x77\xd4\x03\x26\xe4\x9d\x66\x43\xd8\x30\x43\x06\x5b\xe4\x34\x3d\xa5\x40\x59\x80\xd5\x41\x03\x75\x23\x34\xfc\x08\x19\x42\x25\xf6\xa8\xa0\xe9\xa4\x13\xad\x44\x70\xa2\xc1\xd8\x3d\x86\xab\x0a\x63\x38\x79\xfd\x11\x79\xe1\x1d\xce\xeb\x9d\x44\xbe\xde\x3c\x6c\xbc\x8d\x4d\x83\x6e\x5e\xaf\x9b\x12\x8e\xba\x83\x03\x57\x0e\x9c\x0e\x2d\xae\x5d\x8d\x06\x72\xad\x9c\x11\x59\xe7\xb4\xb1\xb4\x35\x8e\xf5\xc2\x0b\xe5\x5c\x81\x6d\x31\x17\xe5\x91\x46\xad\x49\x58\xc8\x38\x8d\xdd\xa6\xc0\x3d\x4a\xdd\xa2\xd9\x84\x60\x2f\xe0\x50\x8b\xbc\x5e\xcb\xc3\xd5\x2c\xbc\x77\xbd\xe8\xe9\x94\x0c\x6a\xd6\xe3\x1b\x6f\xaf\xc6\xf7\x41\x1f\xc8\x79\x0a\x86\xe7\xce\xbb\x16\x65\x1a\xa4\x90\x91\x37\xb3\xd1\x18\xac\xff\xa7\xe1\x42\x7e\x14\xd6\x8d\xdd\xd8\x21\xad\xee\xa4\xb0\xee\x3b\x1e\x4d\x4f\x9a\xd6\x5e\x92\xb1\x7f\xbb\x83\x70\x79\x9d\xba\xfd\xa2\xab\xd0\x20\x14\x1a\xad\x77\xd2\xea\xce\xe4\x08\xb9\x2e\x3c\x24\x4f\x27\x47\x8a\x3d\xbe\x4a\x18\xbc\xed\x8c\x41\xe5\xe4\xf1\x22\x00\x4f\x25\x5c\xdd\x65\x94\x5d\x6d\x85\xd3\x46\x10\xda\x11\x1c\x76\x6d\xab\x8d\x23\x50\x9b\x66\xfa\xc1\x5b\xb9\x1f\x9d\x3f\x9d\x92\x60\x7a\x37\xd6\x72\x05\xff\x9a\x26\xe9\xbd\xb7\x34\x08\x1e\x4f\xa7\x04\xa2\xf9\x67\xc1\x23\x89\x01\x00\x3c\x8f\xdb\x7b\x8c\x98\xb3\xf1\x1b\x0c\x3e\xb5\x04\x12\x5c\x52\x0c\x2b\x3d\x05\xef\x85\xfb\xd0\x65\x50\x6b\xeb\x52\x7f\xc9\x14\x58\xf2\x4e\x3a\x10\xf6\x2a\xa8\xa0\xad\x41\xf9\x07\x4d\xe5\x22\xe5\xd7\xa3\xf4\x5e\x8f\x2b\x74\x26\xbc\xef\xbb\x4f\xe0\xab\x4d\xb5\x9d\x80\xf0\x0b\x47\x71\xfe\x6e\x0c\x31\x8d\xa3\x62\xb0\x59\x89\x65\x73\x0e\x69\xa6\x7e\x89\xe3\x80\x31\x09\x9b\x75\x8c\xb5\x3a\x17\x5e\x38\x8e\xf3\x08\xe4\x68\xa4\xd0\xe0\xcf\xfe\x02\xc4\x2f\xbc\x21\x90\xd2\x65\xb0\x18\xf3\xe6\xe3\x24\x8a\xd0\x65\x52\xe4\xf2\x08\xdc\xc5\xe4\xa6\xb9\x6e\xae\x12\x76\xa6\x04\xec\x4c\x0d\xd8\xa8\x08\x61\x7c\xb6\x0e\x39\x21\xe3\x26\xec\x3d\x27\x2f\xda\xf0\xeb\xd7\x09\xbb\x1e\x4f\x96\xcf\xc0\x13\x62\x4b\x7f\x0c\x64\x5d\x15\xb8\x40\x89\xdc\x75\x06\xed\xab\x31\x54\x4b\xab\x17\x59\x9c\x4f\xcf\x8d\xb5\x1d\x7e\x36\x3c\x7f\xf2\x50\x25\xe8\x71\xe7\xc2\x73\xe8\x1d\x8f\xaf\x0a\x0f\xe0\xf7\xc2\x30\x36\xbc\xc0\x0b\xb0\xb5\xee\x64\x41\xcd\xe1\x51\x9f\x5b\x2b\x2a\x22\x4b\x4e\x83\xd5\x0d\x6a\x85\xaf\xbc\xfc\xed\xcd\xfd\x6b\x5f\xb6\x8c\xc0\x40\x95\xa2\xea\x4c\x38\x16\x44\x7a\xcd\x8e\xee\x5d\x52\x9f\x1b\x1c\x4a\xa7\x3b\x07\x5c\x79\x3d\xd1\x00\x82\x98\x01\xbe\x76\x43\xa7\x0a\xe7\xb9\xda\x3c\xcc\xd7\x51\xd4\xcf\x78\xaf\x67\x15\xfc\x00\xd8\x64\x5f\xa8\x02\xbf\xc0\x4f\xe3\x2b\x0b\xfe\x3e\xc8\x2c\xaf\xe9\x5b\x61\x78\xa4\x15\x5e\xdb\xa3\x30\x7c\x17\x3b\xaf\x1f\x46\xe6\xaf\x59\x14\xfe\x8e\x2a\x3b\x29\xa7\xf4\xec\x6f\x98\x56\x29\x6c\x1e\x8e\xd6\x61\x63\x37\xbf\x80\x36\x94\x6b\xe3\x86\x9d\xdf\x1f\x36\xbf\xac\xb3\x21\x6f\x13\x60\x30\xb8\x1a\xe1\x78\x9f\x18\xc2\x0a\x0d\x9a\x62\x02\x65\x9c\x4b\xd9\x17\x4a\xa8\x30\x50\xbe\xb0\x03\x15\x32\x4b\x94\x9f\x97\xe1\xad\x6e\x5a\xad\x50\xf5\x6e\xe6\xfd\xf3\x59\x47\xd9\xf8\x08\xf9\x3a\xa8\x98\x7a\x7b\x16\x2a\xd9\xa2\xa5\xd9\x8f\xf6\x34\x7b\xa9\xa6\x66\x7f\xb9\xab\xd9\xac\x7b\x43\x77\xa6\xd3\xce\x64\xcb\xae\x63\x2f\xd8\x76\x6c\xd9\x40\x94\x8c\xa1\x89\xd8\x4b\xf5\x0e\x9b\xb7\xc8\xac\xfe\x3d\x3e\xae\x91\xc1\x00\x95\x26\x90\x0f\x83\x7b\x81\x07\x0b\x9d\xa5\xf7\xa4\x70\x91\xfd\x6c\xa1\xa5\x14\x18\xfc\x5f\x87\xd6\xd9\x39\x81\x7b\xab\x0b\xbc\xf7\x72\xa7\x53\x42\x5a\x76\x41\x4b\x0f\x8a\xc4\xa0\x9f\x8b\x4d\x17\xe4\xc8\x14\x38\x9d\xc2\xfd\xf4\xfa\xa2\xf8\x06\x4a\x1c\x8e\xa1\x59\xd0\xe2\xfb\xb8\xe1\x9b\xba\x3f\xb5\x3a\x1d\xc3\xf4\xff\x94\x8e\xb8\xf4\x4c\x28\xf6\xc7\x1a\x62\xad\x60\x57\x60\x44\x77\x9d\x94\xf7\x21\x2b\x63\x4a\x44\xd9\xda\xc5\x6c\xf5\x40\xd6\xb5\xd6\x19\x7a\xdd\xc8\x0c\x57\x79\x3d\x50\x98\xdf\xe2\xfa\x1b\xbf\xdc\xdb\x1e\xec\xcc\x38\x17\xc0\xf4\xae\x9c\x9c\x8d\xaf\x3c\x00\x53\x12\xb6\x02\x15\xdf\x26\x39\x53\x68\xbb\xfe\x73\xe0\x31\xab\xfb\x9f\x20\x9e\xdf\x63\x98\x3f\x52\xb5\xbf\x58\x8a\xf0\xb5\x61\xf3\xa3\x09\x1e\xe5\x6c\x9a\xa9\x45\xce\x22\xa3\x7b\xfd\x4c\xaa\xc2\xc0\xdd\xd5\x3c\x33\x22\xe7\x4e\x9b\xed\x3b\x51\x96\x48\x84\x5f\x70\x79\x95\xb0\x59\x82\xd9\x7a\x22\x16\xf0\x56\x8c\xb5\xf4\xf0\x16\x19\x54\xfb\x6c\x6d\x95\x82\x8e\x58\x55\xc4\x8a\x9a\xef\x11\x38\xdc\xa2\x7a\x12\xca\xc2\xa3\xce\x68\xb2\xb3\x4e\xc8\x22\x80\xc8\x08\x91\xbe\x49\xae\x08\xdc\x72\x6e\xf1\x59\xeb\x30\xf0\xbd\xf2\x5b\x9d\x4d\x67\xfe\x0d\x99\x79\x40\xb3\x17\x39\x95\xc1\x5b\xdd\xd9\xf0\xbc\xa8\x55\xd4\x72\xab\xb3\xc0\x2d\xc2\xe3\xee\x51\x67\xcb\xd7\x94\xe7\x77\x94\xf3\x77\xe3\xc2\x1a\x5b\x28\x65\xb3\xc1\xba\x6c\x47\x38\x7f\x16\x7e\x3b\x8b\x70\xaf\xa5\xcc\xb8\xf1\xc0\x67\x30\x47\xe1\xbf\x67\xa1\x31\xda\x00\xee\x51\xb9\xf9\x17\xa5\x28\x70\x3a\x25\x26\xfc\x5b\xc4\x3f\x26\x39\xeb\x14\x67\x25\xc8\x91\x32\x76\x96\xf9\x7c\x23\x8e\x3b\x5e\xa1\x79\xd7\xb9\xa3\x8f\x44\x69\x27\xca\x23\x45\xc2\x15\x68\x75\x99\xd3\xdd\x46\x1b\x42\xe5\xfe\x63\xda\xe2\x3b\x19\x89\x17\x9d\xa3\xe9\x6f\xfb\xff\xd3\xc8\x62\xf9\x6f\xc2\xa4\xc5\x72\x2c\x3f\xa6\xad\xc4\x36\x51\xc8\x66\xb2\x77\x6f\x3f\xdc\xff\xf3\xd3\x3f\x66\xc1\xfd\x3f\x00\x00\xff\xff\x99\xb8\xc0\xe6\x23\x15\x00\x00")

func enroll_blueprintTmplBytes() ([]byte, error) {
	return bindataRead(
		_enroll_blueprintTmpl,
		"enroll_blueprint.tmpl",
	)
}

func enroll_blueprintTmpl() (*asset, error) {
	bytes, err := enroll_blueprintTmplBytes()
	if err != nil {
		return nil, err
	}

	info := bindataFileInfo{name: "enroll_blueprint.tmpl", size: 5411, mode: os.FileMode(420), modTime: time.Unix(1493837442, 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){
	"enroll_blueprint.tmpl": enroll_blueprintTmpl,
}

// 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{
	"enroll_blueprint.tmpl": &bintree{enroll_blueprintTmpl, 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, "/")...)...)
}

