config

package
v0.25.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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)

func UpdateAppConfig

func UpdateAppConfig(appDir string, serviceRole string, appConfig types.AppConfig) error

UpdateAppConfig adds serviceRole to the appConfig object and updates application.yml

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL