provider

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDuplicateName = errors.New("provider name is already registered")
	ErrInvalidName   = errors.New("provider name is required")
	ErrNotFound      = errors.New("provider not found")
)

Functions

This section is empty.

Types

type BuildRecipe

type BuildRecipe struct {
	BuildArgs  map[string]string
	Dockerfile string
}

func BuildRecipeFor added in v0.2.0

func BuildRecipeFor(selectedProvider Provider, configuration config.Config) (BuildRecipe, error)

func NewBuildRecipe added in v0.2.0

func NewBuildRecipe(
	image config.Image,
	providerDockerfile string,
	providerPackages ...string,
) BuildRecipe

func (BuildRecipe) AppendDockerfiles added in v0.2.0

func (recipe BuildRecipe) AppendDockerfiles(dockerfiles []string) (BuildRecipe, error)

func (BuildRecipe) PreparedImageReference

func (recipe BuildRecipe) PreparedImageReference(providerName string, image config.Image) string

type Provider

type Provider interface {
	BuildRecipe(config.Image) (BuildRecipe, error)
	Command([]string, []config.Mount) ([]string, error)
	Name() string
}

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func NewRegistry

func NewRegistry() *Registry

func (*Registry) All added in v0.2.0

func (registry *Registry) All() []Provider

func (*Registry) Lookup

func (registry *Registry) Lookup(name string) (Provider, error)

func (*Registry) Register

func (registry *Registry) Register(provider Provider) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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