func (a *App) SetEnvs(envs []bind.EnvVar, publicOnly bool) error { e := make([]bind.EnvVar, len(envs)) for i, env := range envs { e[i] = bind.EnvVar(env) } return a.SetEnvsToApp(e, publicOnly, false) }
// InstanceEnv returns a map of environment variables that belongs to the given // service instance (identified by the name only). // // TODO(fss): this method should not be exported. func (app *App) InstanceEnv(name string) map[string]bind.EnvVar { envs := make(map[string]bind.EnvVar) for k, env := range app.Env { if env.InstanceName == name { envs[k] = bind.EnvVar(env) } } return envs }