Documentation
¶
Index ¶
Constants ¶
View Source
const ( Error_Initialize = 101 Error_DetectReadMetadata = 102 Error_DetectedNone = 103 Error_DetectAmbiguity = 104 Error_UnsupportedLanguage = 105 Error_DetectInternalError = 106 Error_BuildInternalError = 102 )
View Source
const ( RiffEnv = "RIFF" ArtifactEnv = "RIFF_ARTIFACT" HandlerEnv = "RIFF_HANDLER" OverrideEnv = "RIFF_OVERRIDE" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Metadata ¶
type Metadata struct { // Artifact is the path to the main function artifact. This may be a java jar file, an executable file, etc // May be autodetected or chosen by a collaborating buildpack Artifact string `toml:"artifact"` // Handler is a "finer grained" handler for the function within the artifact, if applicable. // This may be a classname, a function name, etc. May be autodetected or chosen by a collaborating // buildpack or function invoker. Handler string `toml:"handler"` // Override is an optional value provided by the user to force a given language for the function and // completely bypass the detection mechanism, if needed. Override string `toml:"override"` }
Metadata represents the contents of the riff.toml file in an application root
func NewMetadata ¶
func NewMetadata(application application.Application, logger *logger.Log) (Metadata, bool, error)
NewMetadata creates a new Metadata from the contents of $APPLICATION_ROOT/riff.toml. If that file does not exist, the second return value is false.
Click to show internal directories.
Click to hide internal directories.