autoload

package
v0.0.0-...-12a582f Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrProviderNotFound is returned when we have failed to
	// lookup a provider
	ErrProviderNotFound = errors.New("provider not implemented or registered")

	// ErrConfigSerializationFailed is returned when we have failed to
	// serialize the generic parsed config back to yaml
	ErrConfigSerializationFailed = errors.New("failed to serialize GenericConfig to yaml")
)

Functions

func Exists

func Exists(p string) bool

Exists allows you to validate and verify a given provider exists without having to also posses config we want to pass to the provider

func Load

func Load(p string, req *pb.CreateRequest) (providers.Provider, error)

Load automatically loads a provider's provisioner from the registry

func LoadRegistration

func LoadRegistration(p string, req *pb.Registration) (providers.Provider, error)

Load automatically loads a provider's provisioner from the registry

func ProtoTargetMap

func ProtoTargetMap(t *pb.Target) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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