runtime

package
v1.40.9 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RuntimeBuildContext

type RuntimeBuildContext struct {
	DockerfileContents string
	BaseDirectory      string
	BuildArguments     map[string]string
	IgnoreFileContents string
}

func NewBuildContext

func NewBuildContext(entrypointFilePath string, dockerfilePath string, buildArgs map[string]string, additionalIgnores []string, fs afero.Fs) (*RuntimeBuildContext, error)

NewBuildContext - Creates a new runtime build context. if a dockerfile path is provided a custom runtime is assumed, otherwise the entrypoint file is used for automatic detection of language runtime.

type RuntimeExt

type RuntimeExt = string
const (
	RuntimeTypescript RuntimeExt = "ts"
	RuntimeJavascript RuntimeExt = "js"
	RuntimePython     RuntimeExt = "py"
	RuntimeGolang     RuntimeExt = "go"
	RuntimeCsharp     RuntimeExt = "cs"
	RuntimeJvm        RuntimeExt = "jar"

	RuntimeUnknown RuntimeExt = ""
)

Jump to

Keyboard shortcuts

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