provider

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: MIT Imports: 7 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 (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) 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