Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFunctionName ¶
func GetFunctionName(i interface{}) string
Types ¶
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
Migrator handles creation of schema.Table in database if they don't exist
type Provider ¶
type Provider struct {
// Name of plugin i.e aws,gcp, azure etc'
Name string
// Configure the provider and return context
Configure func(hclog.Logger, interface{}) (schema.ClientMeta, error)
// ResourceMap is all resources supported by this plugin
ResourceMap map[string]*schema.Table
// Configuration unmarshalled from Fetch request
Config func() interface{}
// Logger to call
Logger hclog.Logger
// DefaultConfigGenerator generates the default configuration for a client to execute this provider
DefaultConfigGenerator func() (string, error)
// contains filtered or unexported fields
}
Provider is the base structure required to pass and serve an sdk plugin.Provider
type ProviderConfig ¶
type ProviderConfig struct {
// global timeout in seconds
Timeout int `yaml:"timeout" default:"1200"`
Resources []struct {
Name string
Other map[string]interface{} `yaml:",inline"`
}
}
Every provider implements a resources field we only want to extract that in fetch execution
Click to show internal directories.
Click to hide internal directories.