Example #1
0
func (env *Environment) LoadLocalFs() error {
	logger.Debug("loading local file system")
	var err error
	env.fs.local, err = fs.NewLocal(os.Getenv("PKIIO_LOCAL"))
	if err != nil {
		return err
	}
	return nil
}
Example #2
0
func (app *AdminApp) InitLocalFs() {
	var err error
	app.fs.local, err = fs.NewLocal(os.Getenv("PKIIO_LOCAL"))
	checkAppFatal("Couldn't initialize local fs: %s", err)
}