config

package
v0.28.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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

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 AppDevelopmentDependency added in v0.26.0

type AppDevelopmentDependency interface {
	GetContainerName() string
	GetDockerConfig() (types.DockerConfig, error)
	GetOnlineText() string
	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

Jump to

Keyboard shortcuts

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