lookup

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileConfigLookup

type FileConfigLookup struct {
}

FileConfigLookup is a "bare" structure that implements the project.ConfigLookup interface

func (*FileConfigLookup) Lookup

func (f *FileConfigLookup) Lookup(file, relativeTo string) ([]byte, string, error)

Lookup returns the content and the actual filename of the file that is "built" using the specified file and relativeTo string. file and relativeTo are supposed to be file path. If file starts with a slash ('/'), it tries to load it, otherwise it will build a filename using the folder part of relativeTo joined with file.

type OsEnvLookup

type OsEnvLookup struct {
}

OsEnvLookup is a "bare" structure that implements the project.EnvironmentLookup interface

func (*OsEnvLookup) Lookup

func (o *OsEnvLookup) Lookup(key, serviceName string, config *project.ServiceConfig) []string

Lookup creates a string slice of string containing a "docker-friendly" environment string in the form of 'key=value'. It gets environment values using os.Getenv. If the os environment variable does not exists, the slice is empty. serviceName and config are not used at all in this implementation.

Jump to

Keyboard shortcuts

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