Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentSchema ¶
type MachComposerPlugin ¶
type MachComposerPlugin interface {
Identifier() string
IsEnabled() bool
Configure(environment string, provider string) error
GetValidationSchema() (*ValidationSchema, error)
SetRemoteStateBackend(data map[string]any) error
SetGlobalConfig(data map[string]any) error
SetSiteConfig(site string, data map[string]any) error
SetSiteComponentConfig(site string, component string, data map[string]any) error
SetSiteEndpointConfig(site string, name string, data map[string]any) error
SetComponentConfig(component string, data map[string]any) error
SetComponentEndpointsConfig(component string, data map[string]string) error
// Render remote state configuration
RenderTerraformStateBackend(site string) (string, error)
// Render all required terraform providers
RenderTerraformProviders(site string) (string, error)
// Render global resources
RenderTerraformResources(site string) (string, error)
// Render component
RenderTerraformComponent(site string, component string) (*ComponentSchema, error)
}
type PluginSchema ¶
type PluginSchema struct {
Identifier string
Configure func(environment, provider string) error
IsEnabled func() bool
GetValidationSchema func() (*ValidationSchema, error)
SetRemoteStateBackend func(data map[string]any) error
SetGlobalConfig func(data map[string]any) error
SetSiteConfig func(site string, data map[string]any) error
SetSiteComponentConfig func(site string, component string, data map[string]any) error
SetSiteEndpointConfig func(site string, name string, data map[string]any) error
SetComponentConfig func(component string, data map[string]any) error
SetComponentEndpointsConfig func(component string, endpoints map[string]string) error
RenderTerraformStateBackend func(site string) (string, error)
RenderTerraformProviders func(site string) (string, error)
RenderTerraformResources func(site string) (string, error)
RenderTerraformComponent func(site string, component string) (*ComponentSchema, error)
}
type ValidationSchema ¶ added in v0.0.4
Click to show internal directories.
Click to hide internal directories.