Documentation
¶
Index ¶
- func GetAllBuiltDependencies(appConfig types.AppConfig, serviceConfigs map[string]types.ServiceConfig, ...) map[string]AppDependency
- func GetAppBuiltDependencies(appConfig types.AppConfig, appDir, homeDir string) map[string]AppDependency
- func GetInternalServiceConfigs(appDir string, appConfig types.AppConfig) (map[string]types.ServiceConfig, error)
- func GetServiceBuiltDependencies(serviceConfig types.ServiceConfig, appConfig types.AppConfig, ...) map[string]AppDependency
- func GetServiceConfigs(appDir string, appConfig types.AppConfig) (map[string]types.ServiceConfig, error)
- func UpdateAppConfig(appDir string, serviceRole string, appConfig types.AppConfig) error
- type AppDependency
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllBuiltDependencies ¶
func GetAllBuiltDependencies(appConfig types.AppConfig, serviceConfigs map[string]types.ServiceConfig, appDir, homeDir string) map[string]AppDependency
GetAllBuiltDependencies returns the AppDependency objects for the dependencies of the entire application
func GetAppBuiltDependencies ¶
func GetAppBuiltDependencies(appConfig types.AppConfig, appDir, homeDir string) map[string]AppDependency
GetAppBuiltDependencies returns the AppDependency objects for the dependencies defined in the given appConfig
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 GetServiceBuiltDependencies ¶
func GetServiceBuiltDependencies(serviceConfig types.ServiceConfig, appConfig types.AppConfig, appDir, homeDir string) map[string]AppDependency
GetServiceBuiltDependencies returns the AppDependency objects for the dependencies defined in the given serviceConfig
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)
Types ¶
type AppDependency ¶
type AppDependency interface {
GetContainerName() string
GetDeploymentConfig() (map[string]string, error)
GetDeploymentServiceEnvVariables() map[string]string
GetDockerConfig() (types.DockerConfig, error)
GetOnlineText() string
GetServiceEnvVariables() map[string]string
}
AppDependency contains methods that return config information about a dependency
func NewAppDependency ¶
func NewAppDependency(dependency types.DependencyConfig, appConfig types.AppConfig, appDir, homeDir string) AppDependency
NewAppDependency returns an AppDependency