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 }
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) }