build

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 36 Imported by: 2 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	GitEntryType        = "git"
	ArchiveEntryType    = "archive"
	S3EntryType         = "s3"
	ImageEntryType      = "image"
	SourceCodeEntryType = "sourceCode"
	// TODO: Remove in 1.16.0
	GithubEntryType = "github"

	GithubURLRegexPattern = "^.*://.*github.com(?:/repos)?/(?P<org>[^/]+)/(?P<repo>[^/]+)/?$"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder builds user handlers

func NewBuilder

func NewBuilder(parentLogger logger.Logger, platform platform.Platform, s3Client common.S3Client) (*Builder, error)

NewBuilder returns a new builder

func (*Builder) Build

Build builds the handler

func (*Builder) GenerateDockerfileContents

func (b *Builder) GenerateDockerfileContents(baseImage string,
	onbuildArtifacts []runtime.Artifact,
	imageArtifactPaths map[string]string,
	directives map[string][]functionconfig.Directive,
	healthCheckRequired bool,
	healthCheckInterval time.Duration,
	buildArgs map[string]string) (string, error)

GenerateDockerfileContents return function docker file

func (*Builder) GetFunctionDir

func (b *Builder) GetFunctionDir() string

GetFunctionDir return path to function directory inside the staging directory

func (*Builder) GetFunctionHandler

func (b *Builder) GetFunctionHandler() string

GetFunctionHandler returns the name of the handler

func (*Builder) GetFunctionName

func (b *Builder) GetFunctionName() string

GetFunctionName returns the name of the function

func (*Builder) GetFunctionPath

func (b *Builder) GetFunctionPath() string

GetFunctionPath returns the path to the function

func (*Builder) GetNoBaseImagePull

func (b *Builder) GetNoBaseImagePull() bool

GetNoBaseImagePull return true if we shouldn't pull base images

func (*Builder) GetStagingDir

func (b *Builder) GetStagingDir() string

GetStagingDir returns path to the staging directory

Jump to

Keyboard shortcuts

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