Documentation ¶
Index ¶
- Constants
- type Builder
- func (b *Builder) Build(ctx context.Context, options *platform.CreateFunctionBuildOptions) (*platform.CreateFunctionBuildResult, error)
- func (b *Builder) GenerateDockerfileContents(baseImage string, onbuildArtifacts []runtime.Artifact, ...) (string, error)
- func (b *Builder) GetFunctionDir() string
- func (b *Builder) GetFunctionHandler() string
- func (b *Builder) GetFunctionName() string
- func (b *Builder) GetFunctionPath() string
- func (b *Builder) GetNoBaseImagePull() bool
- func (b *Builder) GetProjectName() string
- func (b *Builder) GetStagingDir() string
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 ¶
func (b *Builder) Build(ctx context.Context, options *platform.CreateFunctionBuildOptions) (*platform.CreateFunctionBuildResult, error)
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 ¶
GetFunctionDir return path to function directory inside the staging directory
func (*Builder) GetFunctionHandler ¶
GetFunctionHandler returns the name of the handler
func (*Builder) GetFunctionName ¶
GetFunctionName returns the name of the function
func (*Builder) GetFunctionPath ¶
GetFunctionPath returns the path to the function
func (*Builder) GetNoBaseImagePull ¶
GetNoBaseImagePull return true if we shouldn't pull base images
func (*Builder) GetProjectName ¶
GetProjectName returns the name of the project
func (*Builder) GetStagingDir ¶
GetStagingDir returns path to the staging directory
Click to show internal directories.
Click to hide internal directories.