internal

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSentryPlugin

func NewSentryPlugin() schema.MachComposerPlugin

func Serve

func Serve()

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"`
	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) 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 (p *SentryPlugin) SetSiteComponentConfig(site string, component string, data map[string]any) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL