builders

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package builders provides constants for builder implementation short names, shared error types and convienience functions.

Index

Constants

View Source
const (
	Host    = "host"
	Pack    = "pack"
	S2I     = "s2i"
	Default = Pack
)

Variables

This section is empty.

Functions

func Image

func Image(f fn.Function, builder string, defaults map[string]string) (string, error)

Image is a convenience function for choosing the correct builder image given a function, a builder, and defaults grouped by runtime.

  • ErrRuntimeRequired if no runtime was provided on the given function
  • ErrNoDefaultImage if the function has no builder image already defined for the given runtime and there is no default in the provided map.

Types

type ErrBuilderNotSupported added in v0.38.0

type ErrBuilderNotSupported struct {
	Builder string
}

ErrBuilderNotSupported

func (ErrBuilderNotSupported) Error added in v0.38.0

func (e ErrBuilderNotSupported) Error() string

type ErrNoDefaultImage

type ErrNoDefaultImage struct {
	Builder string
	Runtime string
}

ErrNoDefaultImage

func (ErrNoDefaultImage) Error

func (e ErrNoDefaultImage) Error() string

type ErrRuntimeRequired

type ErrRuntimeRequired struct {
	Builder string
}

ErrRuntimeRequired

func (ErrRuntimeRequired) Error

func (e ErrRuntimeRequired) Error() string

type ErrUnknownBuilder

type ErrUnknownBuilder struct {
	Name  string
	Known Known
}

ErrUnknownBuilder may be used by whomever is choosing a concrete implementation of a builder to invoke based on potentially invalid input.

func (ErrUnknownBuilder) Error

func (e ErrUnknownBuilder) Error() string

type Known

type Known []string

Known builder names with a pretty-printed string representation

func All

func All() Known

func (Known) String

func (k Known) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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