factory

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildDriverFactory

type BuildDriverFactory map[string]BuildDriverFactoryFunc

BuildDriverFactory type define a map of BuildDriverer

func NewBuildDriverFactory

func NewBuildDriverFactory() BuildDriverFactory

NewBuildDriverFactory returns a new BuildDriverFactory

func (BuildDriverFactory) Get

Get returns a BuildDriverer

func (BuildDriverFactory) Register

func (f BuildDriverFactory) Register(id string, driver BuildDriverFactoryFunc) error

Register registers a BuildDriverer

type BuildDriverFactoryFunc

type BuildDriverFactoryFunc func() (repository.BuildDriverer, error)

Jump to

Keyboard shortcuts

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