Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Catalog ¶
type Catalog interface { GetDatastore() db.Datastore GetX509CA() x509ca.X509CA GetKeyManager() keymanager.KeyManager }
Catalog is a collection of provider interfaces.
type ProvidersConfig ¶ added in v0.2.0
type ProvidersConfig struct { Datastore *providerConfig `hcl:"Datastore,block"` X509CA *providerConfig `hcl:"X509CA,block"` KeyManager *providerConfig `hcl:"KeyManager,block"` }
ProvidersConfig holds the HCL configuration for the providers.
func ProvidersConfigsFromHCLBody ¶ added in v0.2.0
func ProvidersConfigsFromHCLBody(body hcl.Body) (*ProvidersConfig, error)
ProvidersConfigsFromHCLBody parses the HCL body and returns the providers configuration.
type ProvidersRepository ¶ added in v0.2.0
type ProvidersRepository struct {
// contains filtered or unexported fields
}
ProvidersRepository is the implementation of the Catalog interface.
func New ¶ added in v0.2.0
func New() *ProvidersRepository
New creates a new ProvidersRepository. It is the responsibility of the caller to load the catalog with providers using LoadFromProvidersConfig.
func (*ProvidersRepository) GetDatastore ¶ added in v0.2.0
func (c *ProvidersRepository) GetDatastore() db.Datastore
func (*ProvidersRepository) GetKeyManager ¶ added in v0.2.0
func (c *ProvidersRepository) GetKeyManager() keymanager.KeyManager
func (*ProvidersRepository) GetX509CA ¶ added in v0.2.0
func (c *ProvidersRepository) GetX509CA() x509ca.X509CA
func (*ProvidersRepository) LoadFromProvidersConfig ¶ added in v0.2.0
func (c *ProvidersRepository) LoadFromProvidersConfig(config *ProvidersConfig) error
LoadFromProvidersConfig loads the catalog from HCL configuration.
Click to show internal directories.
Click to hide internal directories.