fleet/server/bindata/placeholder.go
Zachary Wasserman 45f6a74740
Allow import of github.com/kolide/fleet (#2213)
Previously a Go package attempting to import Fleet packages would run
into an error like "server/kolide/emails.go:93:23: undefined: Asset".

This commit refactors bindata asset handling to allow importing Fleet as
a library without changing the typical developer experience.
2020-03-29 19:22:04 -07:00

22 lines
616 B
Go

// +build !full
package bindata
import "os"
// This file contains placeholders for the asset functions that would normally
// allow Fleet to retrieve assets and templates. Providing these placeholders
// allows Fleet packages to be included as a library with `go get`.
func Asset(name string) ([]byte, error) {
panic("Assets may not be used when running Fleet as a library")
}
func AssetDir(name string) ([]string, error) {
panic("Assets may not be used when running Fleet as a library")
}
func AssetInfo(name string) (os.FileInfo, error) {
panic("Assets may not be used when running Fleet as a library")
}