build

package
v0.0.0-...-c2794ed Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 35 Imported by: 3

Documentation

Index

Constants

View Source
const (
	GitEntryType        = "git"
	GithubEntryType     = "github"
	ArchiveEntryType    = "archive"
	S3EntryType         = "s3"
	ImageEntryType      = "image"
	SourceCodeEntryType = "sourceCode"
)

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) GetProjectName

func (b *Builder) GetProjectName() string

GetProjectName returns the name of the project

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