Documentation
¶
Index ¶
- func NewSentryPlugin() schema.MachComposerPlugin
- func Serve()
- type BaseConfig
- type ComponentConfig
- type GlobalConfig
- type SentryPlugin
- func (p *SentryPlugin) Configure(environment string, provider string) error
- func (p *SentryPlugin) GetValidationSchema() (*schema.ValidationSchema, error)
- func (p *SentryPlugin) IsEnabled() bool
- func (p *SentryPlugin) RenderTerraformComponent(site string, component string) (*schema.ComponentSchema, error)
- func (p *SentryPlugin) SetGlobalConfig(data map[string]any) error
- func (p *SentryPlugin) SetSiteComponentConfig(site string, component string, data map[string]any) error
- func (p *SentryPlugin) SetSiteConfig(site string, data map[string]any) error
- func (p *SentryPlugin) TerraformRenderProviders(site string) (string, error)
- func (p *SentryPlugin) TerraformRenderResources(site string) (string, error)
- type SiteConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSentryPlugin ¶
func NewSentryPlugin() schema.MachComposerPlugin
Types ¶
type BaseConfig ¶
type BaseConfig struct { DSN string `mapstructure:"dsn"` RateLimitWindow *int `mapstructure:"rate_limit_window"` RateLimitCount *int `mapstructure:"rate_limit_count"` }
SentryConfigBase is the base sentry config.
type ComponentConfig ¶
type ComponentConfig struct { BaseConfig `mapstructure:",squash"` Environment string `mapstructure:"-"` Project string `mapstructure:"project"` }
SentryConfig is for site specific sentry DSN settings
type GlobalConfig ¶
type GlobalConfig struct { BaseConfig `mapstructure:",squash"` AuthToken string `mapstructure:"auth_token"` BaseURL string `mapstructure:"base_url"` Project string `mapstructure:"project"` Organization string `mapstructure:"organization"` }
GlobalConfig global Sentry configuration.
type SentryPlugin ¶
type SentryPlugin struct {
// contains filtered or unexported fields
}
func (*SentryPlugin) Configure ¶
func (p *SentryPlugin) Configure(environment string, provider string) error
func (*SentryPlugin) GetValidationSchema ¶ added in v0.0.4
func (p *SentryPlugin) GetValidationSchema() (*schema.ValidationSchema, error)
func (*SentryPlugin) IsEnabled ¶
func (p *SentryPlugin) IsEnabled() bool
func (*SentryPlugin) RenderTerraformComponent ¶
func (p *SentryPlugin) RenderTerraformComponent(site string, component string) (*schema.ComponentSchema, error)
func (*SentryPlugin) SetGlobalConfig ¶
func (p *SentryPlugin) SetGlobalConfig(data map[string]any) error
func (*SentryPlugin) SetSiteComponentConfig ¶
func (*SentryPlugin) SetSiteConfig ¶
func (p *SentryPlugin) SetSiteConfig(site string, data map[string]any) error
func (*SentryPlugin) TerraformRenderProviders ¶
func (p *SentryPlugin) TerraformRenderProviders(site string) (string, error)
func (*SentryPlugin) TerraformRenderResources ¶
func (p *SentryPlugin) TerraformRenderResources(site string) (string, error)
type SiteConfig ¶
type SiteConfig struct { BaseConfig `mapstructure:",squash"` Project string `mapstructure:"project"` Components map[string]ComponentConfig `mapstructure:"-"` }
SentryConfig is for site specific sentry DSN settings
Click to show internal directories.
Click to hide internal directories.