builders

package
v0.0.0-...-6d1a7c1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Pack = "pack"
)

Variables

This section is empty.

Functions

func Image

func Image(f *dubbo.Dubbo, 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

type ErrBuilderNotSupported struct {
	Builder string
}

func (ErrBuilderNotSupported) Error

func (e ErrBuilderNotSupported) Error() string

type ErrNoDefaultImage

type ErrNoDefaultImage struct {
	Builder string
	Runtime string
}

func (ErrNoDefaultImage) Error

func (e ErrNoDefaultImage) Error() string

type ErrRuntimeRequired

type ErrRuntimeRequired struct {
	Builder string
}

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

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