config

package
v0.35.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllRemoteDependencies added in v0.33.3

func GetAllRemoteDependencies(appContext *context.AppContext) map[string]types.RemoteDependency

GetAllRemoteDependencies returns all remote dependencies

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 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 struct {
	// contains filtered or unexported fields
}

LocalAppDependency contains methods that return config information about a local dependency

func NewLocalAppDependency added in v0.32.0

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

NewLocalAppDependency returns a LocalAppDependency

func (*LocalAppDependency) GetDockerConfig added in v0.32.0

func (g *LocalAppDependency) GetDockerConfig() (types.DockerConfig, error)

GetDockerConfig returns docker configuration and an error if any

func (*LocalAppDependency) GetServiceEnvVariables added in v0.32.0

func (g *LocalAppDependency) GetServiceEnvVariables() map[string]string

GetServiceEnvVariables returns the environment variables that need to be passed to services that use it

func (*LocalAppDependency) GetVolumeNames added in v0.32.0

func (g *LocalAppDependency) GetVolumeNames() []string

GetVolumeNames returns the named volumes used by this dependency

Jump to

Keyboard shortcuts

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