config

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBuiltLocalAppDependencies added in v0.32.0

func GetBuiltLocalAppDependencies(appContext *context.AppContext) map[string]LocalAppDependency

GetBuiltLocalAppDependencies returns the LocalAppDependency objects for application dependencies only

func GetBuiltLocalServiceDependencies added in v0.32.0

func GetBuiltLocalServiceDependencies(serviceConfig types.ServiceConfig, appContext *context.AppContext) map[string]LocalAppDependency

GetBuiltLocalServiceDependencies returns the dependencies for a single service

func GetBuiltRemoteAppDependencies added in v0.32.0

func GetBuiltRemoteAppDependencies(appContext *context.AppContext) map[string]RemoteAppDependency

GetBuiltRemoteAppDependencies returns the RemoteAppDependency objects for the application dependencies only

func GetBuiltRemoteDependencies added in v0.32.0

func GetBuiltRemoteDependencies(appContext *context.AppContext) map[string]RemoteAppDependency

GetBuiltRemoteDependencies returns the RemoteAppDependency objects for the application and service prod dependencies of the entire application

func GetBuiltRemoteServiceDependencies added in v0.32.0

func GetBuiltRemoteServiceDependencies(serviceConfig types.ServiceConfig, appContext *context.AppContext) map[string]RemoteAppDependency

GetBuiltRemoteServiceDependencies returns the dependencies for a single service

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 LocalAppDependency added in v0.32.0

type LocalAppDependency interface {
	GetDockerConfig() (types.DockerConfig, error)
	GetServiceEnvVariables() map[string]string
	GetVolumeNames() []string
}

LocalAppDependency contains methods that return config information about a dev dependency

func NewLocalAppDependency added in v0.32.0

func NewLocalAppDependency(dependencyName string, dependency types.LocalDependency, appContext *context.AppContext) LocalAppDependency

NewLocalAppDependency returns a LocalAppDependency

type RemoteAppDependency added in v0.32.0

type RemoteAppDependency interface {
	HasDockerConfig() bool
	GetDockerConfig() (types.DockerConfig, error)
	GetDeploymentConfig() (map[string]string, error)
	GetDeploymentServiceEnvVariables(secrets types.Secrets) map[string]string
	GetDeploymentVariables() (map[string]string, error)
}

RemoteAppDependency contains methods that return config information about a dependency

func NewRemoteAppDependency added in v0.32.0

func NewRemoteAppDependency(dependencyName string, dependency types.RemoteDependency, appContext *context.AppContext) RemoteAppDependency

NewRemoteAppDependency returns an AppProductionDependency

Jump to

Keyboard shortcuts

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