Documentation ¶
Index ¶
- func AsMap(env Environment) map[string]string
- func AsSlice(env Environment) []string
- func AsString(env Environment) string
- func LoadDotEnv(vars map[string]string, scriptDir string) map[string]string
- type Environment
- type Envs
- type Local
- func (l *Local) Extra() Envs
- func (l *Local) FindHttpServices() []string
- func (l *Local) FindRelationshipPrefix(frel, fscheme string) string
- func (l *Local) FindServiceUrl(serviceOrRelationship string) (string, bool)
- func (l *Local) Language() string
- func (l *Local) Local() bool
- func (l *Local) Mailer() Envs
- func (l *Local) Path() string
- func (l *Local) Relationships() Relationships
- func (l *Local) RelationshipsFromDocker() Relationships
- type Relationships
- type Remote
- type Tunnel
- type URL
- type URLSlice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsMap ¶
func AsMap(env Environment) map[string]string
AsMap returns the extracted environment variables
func AsSlice ¶
func AsSlice(env Environment) []string
AsSlice returns the extracted environment variables
func AsString ¶
func AsString(env Environment) string
AsString returns a string representation of the environment variables
func LoadDotEnv ¶
find .env in the script directory and up SHOULD ONLY be enabled on demand, so that Symfony has the priority so this feature is only useful for when you want to load a .env file that you are NOT loading yourself, so everything but PHP scripts and here, we only have PHP scripts anyway
Types ¶
type Environment ¶
type Environment interface { Path() string Mailer() Envs Language() string Relationships() Relationships Extra() Envs Local() bool }
Environment knows how to extract env vars (local or remote)
type Local ¶
Local represents the local project
func (*Local) FindHttpServices ¶
func (*Local) FindRelationshipPrefix ¶
func (*Local) FindServiceUrl ¶
func (*Local) Relationships ¶
func (l *Local) Relationships() Relationships
Relationships returns envs from Platform.sh relationships or a local Docker setup
func (*Local) RelationshipsFromDocker ¶
func (l *Local) RelationshipsFromDocker() Relationships
type Relationships ¶
type Remote ¶
type Remote struct {
Debug bool
}
Remote represents the Symfony platform
func (*Remote) Relationships ¶
func (r *Remote) Relationships() Relationships
Relationships returns envs from Symfony relationships