Documentation
¶
Overview ¶
Package build defines methods for building a v1.Image reference from a Go binary reference.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Caching ¶
type Caching struct {
// contains filtered or unexported fields
}
Caching wraps a builder implementation in a layer that shares build results for the same inputs using a simple "future" implementation. Cached results may be invalidated by calling Invalidate with the same input passed to Build.
func NewCaching ¶
NewCaching wraps the provided build.Interface in an implementation that shares build results for a given path until the result has been invalidated.
func (*Caching) Invalidate ¶
Invalidate removes a path's cached results.
func (*Caching) IsSupportedReference ¶
IsSupportedReference implements Interface
type Interface ¶
type Interface interface {
// IsSupportedReference determines whether the given reference is to an filepath reference
// that Kone supports building. Return the nodejs package name if supported.
IsSupportedReference(base, s string) *string
// Build turns the given filepath reference into a v1.Image containing the nodejs app.
Build(base, s string) (v1.Image, error)
}
Interface abstracts different methods for turning a supported filepath reference into a v1.Image.
type Option ¶
type Option func(*gobuildOpener) error
Option is a functional option for NewGo.
func WithBaseImages ¶
WithBaseImages is a functional option for overriding the base images that are used for different images.
func WithCreationTime ¶
WithCreationTime is a functional option for overriding the creation time given to images.