registry

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Overview

Package registry ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProviderRegistry

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

ProviderRegistry is the core implementation of the Providers registry

func (*ProviderRegistry) Get

func (pr *ProviderRegistry) Get(providerID string) (prov local.Provider, err error)

Get returns the identified Provider

func (*ProviderRegistry) Register

func (pr *ProviderRegistry) Register(providerID string, p local.Provider)

Register registers a given provider under the supplied key

type Providers

type Providers interface {
	Get(providerID string) (local.Provider, error)
	Register(providerID string, prov local.Provider)
}

Providers is a registry interface for IaaS providers

Jump to

Keyboard shortcuts

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