provider

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2018 License: BSD-2-Clause Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDatabaseService

func RegisterDatabaseService(vendor string, ctor DatabaseServiceCtor)

RegisterDatabaseService is used by a provider implementation to make the provider package (i.e. pkg/aws or pkg/mock) available to the arc package. This function is called in the packages' init() function.

Types

type Account

type Account interface {
	NewStorage(cfg *config.Storage) (resource.ProviderStorage, error)
	NewBucket(b resource.Bucket, cfg *config.Bucket) (resource.ProviderBucket, error)
}

type DatabaseService

type DatabaseService interface {
	NewDatabaseService(*config.DatabaseService) (resource.ProviderDatabaseService, error)
	NewDatabase(*config.Database, resource.DatabaseParams) (resource.ProviderDatabase, error)
}

DatabaseService is an abstract factory. It provides the methods that will create the provider resources. Vendor implementations will provide the concrete implementations of these methods.

func NewDatabaseService

func NewDatabaseService(cfg *config.DatabaseService) (DatabaseService, error)

NewDatabaseService is the provider agnostic constructor used by pkg/arc.

type DatabaseServiceCtor

type DatabaseServiceCtor func(*config.DatabaseService) (DatabaseService, error)

DatabaseServiceCtor is the function signature for the provider's database service constructor.

type Dns

type Dns interface {
	NewDns(*config.Dns) (resource.ProviderDns, error)
	NewDnsRecord(resource.DnsRecord, *config.DnsRecord) (resource.ProviderDnsRecord, error)
}

Jump to

Keyboard shortcuts

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