core

package
v0.0.0-...-932eec2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FunctionContainer = "function"
	FunctionPort      = "function-port"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BuilderRun

type BuilderRun interface {

	// Start to build image.
	Start(builder *openfunction.Builder) error
	// Result get the build result.
	// "" means build has not been completed.
	// `Succeeded` means build completed.
	// Other means build failed.
	Result(builder *openfunction.Builder) (string, string, string, error)
	// Clean all resources which created by builder.
	Clean(builder *openfunction.Builder) error
	// Cancel the builder.
	Cancel(builder *openfunction.Builder) error
}

type ServingRun

type ServingRun interface {
	Run(s *openfunction.Serving, cm map[string]string) error
	// Result get the serving result.
	// ” means serving is starting.
	// `Running` means serving is running.
	// Other means serving failed.
	Result(s *openfunction.Serving) (string, string, string, error)
	// Clean all resources which created by serving.
	Clean(s *openfunction.Serving) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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