Documentation
¶
Index ¶
- func GetBuiltAppDevelopmentDependencies(appConfig types.AppConfig, appDir, homeDir string) map[string]AppDevelopmentDependency
- func GetBuiltAppProductionDependencies(appConfig types.AppConfig, appDir string) map[string]AppProductionDependency
- func GetBuiltDevelopmentDependencies(appConfig types.AppConfig, serviceConfigs map[string]types.ServiceConfig, ...) map[string]AppDevelopmentDependency
- func GetBuiltProductionDependencies(appConfig types.AppConfig, serviceConfigs map[string]types.ServiceConfig, ...) map[string]AppProductionDependency
- func GetBuiltServiceDevelopmentDependencies(serviceConfig types.ServiceConfig, appConfig types.AppConfig, ...) map[string]AppDevelopmentDependency
- func GetBuiltServiceProductionDependencies(serviceConfig types.ServiceConfig, appConfig types.AppConfig, appDir string) map[string]AppProductionDependency
- func GetInternalServiceConfigs(appDir string, appConfig types.AppConfig) (map[string]types.ServiceConfig, error)
- func GetServiceConfigs(appDir string, appConfig types.AppConfig) (map[string]types.ServiceConfig, error)
- func GetServiceContexts(appContext types.AppContext) (map[string]types.ServiceContext, error)
- func UpdateAppConfig(appDir string, serviceRole string, appConfig types.AppConfig) error
- type AppDevelopmentDependency
- type AppProductionDependency
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBuiltAppDevelopmentDependencies ¶ added in v0.26.0
func GetBuiltAppDevelopmentDependencies(appConfig types.AppConfig, appDir, homeDir string) map[string]AppDevelopmentDependency
GetBuiltAppDevelopmentDependencies returns the AppDevelopmentDependency objects for application dependencies only
func GetBuiltAppProductionDependencies ¶ added in v0.26.0
func GetBuiltAppProductionDependencies(appConfig types.AppConfig, appDir string) map[string]AppProductionDependency
GetBuiltAppProductionDependencies returns the AppProductionDependency objects for the application dependencies only
func GetBuiltDevelopmentDependencies ¶ added in v0.26.0
func GetBuiltDevelopmentDependencies(appConfig types.AppConfig, serviceConfigs map[string]types.ServiceConfig, appDir, homeDir string) map[string]AppDevelopmentDependency
GetBuiltDevelopmentDependencies returns the AppDevelopmentDependency objects for application and service dev dependencies of the entire application
func GetBuiltProductionDependencies ¶ added in v0.26.0
func GetBuiltProductionDependencies(appConfig types.AppConfig, serviceConfigs map[string]types.ServiceConfig, appDir string) map[string]AppProductionDependency
GetBuiltProductionDependencies returns the AppProductionDependency objects for the application and service prod dependencies of the entire application
func GetBuiltServiceDevelopmentDependencies ¶ added in v0.26.0
func GetBuiltServiceDevelopmentDependencies(serviceConfig types.ServiceConfig, appConfig types.AppConfig, appDir, homeDir string) map[string]AppDevelopmentDependency
GetBuiltServiceDevelopmentDependencies returns the dependencies for a single service
func GetBuiltServiceProductionDependencies ¶ added in v0.26.0
func GetBuiltServiceProductionDependencies(serviceConfig types.ServiceConfig, appConfig types.AppConfig, appDir string) map[string]AppProductionDependency
GetBuiltServiceProductionDependencies returns the dependencies for a single service
func GetInternalServiceConfigs ¶
func GetInternalServiceConfigs(appDir string, appConfig types.AppConfig) (map[string]types.ServiceConfig, error)
GetInternalServiceConfigs reads the service.yml of all internal services and returns the serviceConfig objects and an error (if any)
func GetServiceConfigs ¶
func GetServiceConfigs(appDir string, appConfig types.AppConfig) (map[string]types.ServiceConfig, error)
GetServiceConfigs reads the service.yml of all services and returns the serviceConfig objects and an error (if any)
func GetServiceContexts ¶ added in v0.27.0
func GetServiceContexts(appContext types.AppContext) (map[string]types.ServiceContext, error)
GetServiceContexts returns a map of service contexts for the given app context
Types ¶
type AppDevelopmentDependency ¶ added in v0.26.0
type AppDevelopmentDependency interface {
GetContainerName() string
GetDockerConfig() (types.DockerConfig, error)
GetServiceEnvVariables() map[string]string
}
AppDevelopmentDependency contains methods that return config information about a dev dependency
func NewAppDevelopmentDependency ¶ added in v0.26.0
func NewAppDevelopmentDependency(dependency types.DevelopmentDependencyConfig, appConfig types.AppConfig, appDir, homeDir string) AppDevelopmentDependency
NewAppDevelopmentDependency returns a AppDevelopmentDependency
type AppProductionDependency ¶ added in v0.26.0
type AppProductionDependency interface {
HasDockerConfig() bool
GetDockerConfig() (types.DockerConfig, error)
GetServiceName() string
GetDeploymentConfig() (map[string]string, error)
GetDeploymentServiceEnvVariables(secrets types.Secrets) map[string]string
GetDeploymentVariables() (map[string]string, error)
}
AppProductionDependency contains methods that return config information about a dependency
func NewAppProductionDependency ¶ added in v0.26.0
func NewAppProductionDependency(dependency types.ProductionDependencyConfig, appConfig types.AppConfig, appDir string) AppProductionDependency
NewAppProductionDependency returns an AppProductionDependency