Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Providers map[string]Provider
Providers must be configured by calling ConfigureProviders with a config
Functions ¶
func ConfigureProviders ¶
func ConfigureProviders(ctx context.Context, config deploy.ProviderMap) error
ConfigureProviders sets the global Providers variable with the provided config. The JSON config looks as follows:
{"<ID>": {"uses": "<TYPE>", "with": {"var1": "value1", "var2": "value2", ...}}}
where <ID> is the identifier of the provider, <TYPE> is it's type, and the other key/value pairs are config variables for the provider. config is assumed to be unescaped json
func ConfigureTestProviders ¶
func ConfigureTestProviders(providers []Provider)
ConfigureTestProviders conveniently configures the global providers for tests
Types ¶
type Config ¶
type Config struct { Host string `env:"ACCESS_HANDLER_HOST,default=0.0.0.0:9092"` LogLevel string `env:"LOG_LEVEL,default=info"` Runtime string `env:"COMMONFATE_ACCESS_HANDLER_RUNTIME,required"` EventBusArn string `env:"COMMONFATE_EVENT_BUS_ARN"` EventBusSource string `env:"COMMONFATE_EVENT_BUS_SOURCE"` }
type GranterConfig ¶
type Provider ¶
Click to show internal directories.
Click to hide internal directories.