Documentation
¶
Index ¶
- func HandShakeConfig() plugin.HandshakeConfig
- type Adapter
- func (a *Adapter) Configure(environment, provider string) error
- func (a *Adapter) GetValidationSchema() (*schema.ValidationSchema, error)
- func (a *Adapter) Identifier() string
- func (a *Adapter) IsEnabled() bool
- func (a *Adapter) RenderTerraformComponent(site, component string) (*schema.ComponentSchema, error)
- func (a *Adapter) RenderTerraformProviders(site string) (string, error)
- func (a *Adapter) RenderTerraformResources(site string) (string, error)
- func (a *Adapter) RenderTerraformStateBackend(site string) (string, error)
- func (a *Adapter) SetComponentConfig(component string, data map[string]any) error
- func (a *Adapter) SetComponentEndpointsConfig(component string, endpoints map[string]string) error
- func (a *Adapter) SetGlobalConfig(data map[string]any) error
- func (a *Adapter) SetRemoteStateBackend(data map[string]any) error
- func (a *Adapter) SetSiteComponentConfig(site string, component string, data map[string]any) error
- func (a *Adapter) SetSiteConfig(site string, data map[string]any) error
- func (a *Adapter) SetSiteEndpointConfig(site string, name string, data map[string]any) error
- type ConfigureInput
- type ErrorOutput
- type GetValidationSchemaOutput
- type Plugin
- type PluginError
- type PluginRPC
- func (p *PluginRPC) Configure(environment string, provider string) error
- func (p *PluginRPC) GetValidationSchema() (*schema.ValidationSchema, error)
- func (p *PluginRPC) Identifier() string
- func (p *PluginRPC) IsEnabled() bool
- func (p *PluginRPC) RenderTerraformComponent(site string, component string) (*schema.ComponentSchema, error)
- func (p *PluginRPC) RenderTerraformProviders(site string) (string, error)
- func (p *PluginRPC) RenderTerraformResources(site string) (string, error)
- func (p *PluginRPC) RenderTerraformStateBackend(site string) (string, error)
- func (p *PluginRPC) SetComponentConfig(component string, data map[string]any) error
- func (p *PluginRPC) SetComponentEndpointsConfig(component string, endpoints map[string]string) error
- func (p *PluginRPC) SetGlobalConfig(data map[string]any) error
- func (p *PluginRPC) SetRemoteStateBackend(data map[string]any) error
- func (p *PluginRPC) SetSiteComponentConfig(site string, component string, data map[string]any) error
- func (p *PluginRPC) SetSiteConfig(name string, data map[string]any) error
- func (p *PluginRPC) SetSiteEndpointConfig(site string, name string, data map[string]any) error
- type PluginRPCServer
- func (s *PluginRPCServer) Configure(args ConfigureInput, resp *ErrorOutput) error
- func (s *PluginRPCServer) GetValidationSchema(args any, resp *GetValidationSchemaOutput) error
- func (s *PluginRPCServer) Identifier(args any, resp *string) error
- func (s *PluginRPCServer) IsEnabled(args any, resp *bool) error
- func (s *PluginRPCServer) RenderTerraformComponent(args RenderTerraformComponentInput, resp *RenderTerraformComponentOutput) error
- func (s *PluginRPCServer) RenderTerraformProviders(args RenderTerraformProvidersInput, resp *RenderTerraformProvidersOutput) error
- func (s *PluginRPCServer) RenderTerraformResources(args RenderTerraformResourcesInput, resp *RenderTerraformResourcesOutput) error
- func (s *PluginRPCServer) RenderTerraformStateBackend(args RenderTerraformStateBackendInput, resp *RenderTerraformStateBackendOutput) error
- func (s *PluginRPCServer) SetComponentConfig(args SetSiteComponentConfigInput, resp *SetSiteComponentConfigOutput) error
- func (s *PluginRPCServer) SetComponentEndpointsConfig(args SetComponentEndpointsConfigInput, resp *SetSiteComponentConfigOutput) error
- func (s *PluginRPCServer) SetGlobalConfig(args SetGlobalConfigInput, resp *ErrorOutput) error
- func (s *PluginRPCServer) SetRemoteStateBackend(args SetRemoteStateBackendInput, resp *ErrorOutput) error
- func (s *PluginRPCServer) SetSiteComponentConfig(args SetSiteComponentConfigInput, resp *SetSiteComponentConfigOutput) error
- func (s *PluginRPCServer) SetSiteConfig(args SetSiteConfigInput, resp *ErrorOutput) error
- func (s *PluginRPCServer) SetSiteEndpointConfig(args SetSiteEndpointsConfigInput, resp *SetSiteEndpointsConfigOutput) error
- type RenderTerraformComponentInput
- type RenderTerraformComponentOutput
- type RenderTerraformProvidersInput
- type RenderTerraformProvidersOutput
- type RenderTerraformResourcesInput
- type RenderTerraformResourcesOutput
- type RenderTerraformStateBackendInput
- type RenderTerraformStateBackendOutput
- type SetComponentConfigInput
- type SetComponentConfigOutput
- type SetComponentEndpointsConfigInput
- type SetComponentEndpointsConfigOutput
- type SetGlobalConfigInput
- type SetRemoteStateBackendInput
- type SetSiteComponentConfigInput
- type SetSiteComponentConfigOutput
- type SetSiteConfigInput
- type SetSiteEndpointsConfigInput
- type SetSiteEndpointsConfigOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandShakeConfig ¶
func HandShakeConfig() plugin.HandshakeConfig
handshakeConfigs are used to just do a basic handshake between a plugin and host. If the handshake fails, a user friendly error is shown. This prevents users from executing bad plugins or executing a plugin directory. It is a UX feature, not a security feature.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter wraps a PluginSchema
func NewAdapter ¶
func NewAdapter(plugin *schema.PluginSchema, logger hclog.Logger) *Adapter
func (*Adapter) GetValidationSchema ¶ added in v0.0.4
func (a *Adapter) GetValidationSchema() (*schema.ValidationSchema, error)
func (*Adapter) Identifier ¶
func (*Adapter) RenderTerraformComponent ¶
func (a *Adapter) RenderTerraformComponent(site, component string) (*schema.ComponentSchema, error)
func (*Adapter) RenderTerraformProviders ¶
func (*Adapter) RenderTerraformResources ¶
func (*Adapter) RenderTerraformStateBackend ¶
func (*Adapter) SetComponentConfig ¶
func (*Adapter) SetComponentEndpointsConfig ¶
func (*Adapter) SetRemoteStateBackend ¶
func (*Adapter) SetSiteComponentConfig ¶
func (*Adapter) SetSiteConfig ¶
type ConfigureInput ¶
type ErrorOutput ¶
type ErrorOutput struct {
Err *PluginError
}
type GetValidationSchemaOutput ¶ added in v0.0.4
type GetValidationSchemaOutput struct { Result schema.ValidationSchema Err *PluginError }
type PluginError ¶ added in v0.0.5
func (*PluginError) Error ¶ added in v0.0.5
func (e *PluginError) Error() string
type PluginRPC ¶
type PluginRPC struct {
// contains filtered or unexported fields
}
func (*PluginRPC) GetValidationSchema ¶ added in v0.0.4
func (p *PluginRPC) GetValidationSchema() (*schema.ValidationSchema, error)
func (*PluginRPC) Identifier ¶
func (*PluginRPC) RenderTerraformComponent ¶
func (*PluginRPC) RenderTerraformProviders ¶
func (*PluginRPC) RenderTerraformResources ¶
func (*PluginRPC) RenderTerraformStateBackend ¶
func (*PluginRPC) SetComponentConfig ¶
func (*PluginRPC) SetComponentEndpointsConfig ¶
func (*PluginRPC) SetRemoteStateBackend ¶
func (*PluginRPC) SetSiteComponentConfig ¶
func (*PluginRPC) SetSiteConfig ¶
type PluginRPCServer ¶
type PluginRPCServer struct {
// contains filtered or unexported fields
}
func (*PluginRPCServer) Configure ¶
func (s *PluginRPCServer) Configure(args ConfigureInput, resp *ErrorOutput) error
func (*PluginRPCServer) GetValidationSchema ¶ added in v0.0.4
func (s *PluginRPCServer) GetValidationSchema(args any, resp *GetValidationSchemaOutput) error
func (*PluginRPCServer) Identifier ¶
func (s *PluginRPCServer) Identifier(args any, resp *string) error
func (*PluginRPCServer) RenderTerraformComponent ¶
func (s *PluginRPCServer) RenderTerraformComponent( args RenderTerraformComponentInput, resp *RenderTerraformComponentOutput) error
func (*PluginRPCServer) RenderTerraformProviders ¶
func (s *PluginRPCServer) RenderTerraformProviders( args RenderTerraformProvidersInput, resp *RenderTerraformProvidersOutput) error
func (*PluginRPCServer) RenderTerraformResources ¶
func (s *PluginRPCServer) RenderTerraformResources( args RenderTerraformResourcesInput, resp *RenderTerraformResourcesOutput) error
func (*PluginRPCServer) RenderTerraformStateBackend ¶
func (s *PluginRPCServer) RenderTerraformStateBackend( args RenderTerraformStateBackendInput, resp *RenderTerraformStateBackendOutput) error
func (*PluginRPCServer) SetComponentConfig ¶
func (s *PluginRPCServer) SetComponentConfig(args SetSiteComponentConfigInput, resp *SetSiteComponentConfigOutput) error
func (*PluginRPCServer) SetComponentEndpointsConfig ¶
func (s *PluginRPCServer) SetComponentEndpointsConfig(args SetComponentEndpointsConfigInput, resp *SetSiteComponentConfigOutput) error
func (*PluginRPCServer) SetGlobalConfig ¶
func (s *PluginRPCServer) SetGlobalConfig(args SetGlobalConfigInput, resp *ErrorOutput) error
func (*PluginRPCServer) SetRemoteStateBackend ¶
func (s *PluginRPCServer) SetRemoteStateBackend(args SetRemoteStateBackendInput, resp *ErrorOutput) error
func (*PluginRPCServer) SetSiteComponentConfig ¶
func (s *PluginRPCServer) SetSiteComponentConfig(args SetSiteComponentConfigInput, resp *SetSiteComponentConfigOutput) error
func (*PluginRPCServer) SetSiteConfig ¶
func (s *PluginRPCServer) SetSiteConfig(args SetSiteConfigInput, resp *ErrorOutput) error
func (*PluginRPCServer) SetSiteEndpointConfig ¶ added in v0.0.5
func (s *PluginRPCServer) SetSiteEndpointConfig(args SetSiteEndpointsConfigInput, resp *SetSiteEndpointsConfigOutput) error
type RenderTerraformComponentOutput ¶
type RenderTerraformComponentOutput struct { Result *schema.ComponentSchema Err *PluginError }
type RenderTerraformProvidersInput ¶
type RenderTerraformProvidersInput struct {
Site string
}
type RenderTerraformProvidersOutput ¶
type RenderTerraformProvidersOutput struct { Result string Err *PluginError }
type RenderTerraformResourcesInput ¶
type RenderTerraformResourcesInput struct {
Site string
}
type RenderTerraformResourcesOutput ¶
type RenderTerraformResourcesOutput struct { Result string Err *PluginError }
type RenderTerraformStateBackendInput ¶
type RenderTerraformStateBackendInput struct {
Site string
}
type RenderTerraformStateBackendOutput ¶
type RenderTerraformStateBackendOutput struct { Result string Err *PluginError }
type SetComponentConfigInput ¶
type SetComponentConfigOutput ¶
type SetComponentConfigOutput struct {
Err *PluginError
}
type SetComponentEndpointsConfigOutput ¶
type SetComponentEndpointsConfigOutput struct {
Err *PluginError
}
type SetGlobalConfigInput ¶
type SetSiteComponentConfigOutput ¶
type SetSiteComponentConfigOutput struct {
Err *PluginError
}
type SetSiteConfigInput ¶
type SetSiteEndpointsConfigOutput ¶
type SetSiteEndpointsConfigOutput struct {
Err *PluginError
}
Click to show internal directories.
Click to hide internal directories.