Documentation
¶
Index ¶
Constants ¶
View Source
const (
// Port is the port astro app listens on.
Port = 80
)
Variables ¶
This section is empty.
Functions ¶
func Container ¶
func Container(appName string, tgz []byte, configurators ...Configurator) host.Configurator
Container runs astro frontend container.
Types ¶
type Config ¶ added in v0.17.0
type Config struct {
// EnvVars sets environment variables inside astro app container.
EnvVars map[string]string
}
Config represents astro app configuration.
type Configurator ¶ added in v0.17.0
type Configurator func(config *Config)
Configurator defines function setting the astro app configuration.
func EnvVar ¶ added in v0.17.0
func EnvVar(name, value string) Configurator
EnvVar sets environment variable inside astro app container.
Click to show internal directories.
Click to hide internal directories.