internal

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseConfig

type BaseConfig struct {
	DSN              string `mapstructure:"dsn"`
	RateLimitWindow  *int   `mapstructure:"rate_limit_window"`
	RateLimitCount   *int   `mapstructure:"rate_limit_count"`
	Project          string `mapstructure:"project"`
	TrackDeployments *bool  `mapstructure:"track_deployments"`
}

BaseConfig is the base sentry config.

type ComponentConfig

type ComponentConfig struct {
	Version string `mapstructure:"-"`
}

ComponentConfig is for general component information

type GlobalConfig

type GlobalConfig struct {
	BaseConfig   `mapstructure:",squash"`
	AuthToken    string `mapstructure:"auth_token"`
	BaseURL      string `mapstructure:"base_url"`
	Organization string `mapstructure:"organization"`
}

GlobalConfig global Sentry configuration.

type SentryPlugin

type SentryPlugin struct {
	// contains filtered or unexported fields
}

func NewSentryPlugin

func NewSentryPlugin() *SentryPlugin

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) RenderTerraformProviders added in v0.2.0

func (p *SentryPlugin) RenderTerraformProviders(_ string) (string, error)

func (*SentryPlugin) RenderTerraformResources added in v0.2.0

func (p *SentryPlugin) RenderTerraformResources(_ string) (string, error)

func (*SentryPlugin) SetComponentConfig added in v0.2.0

func (p *SentryPlugin) SetComponentConfig(component, version string, data map[string]any) 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

type SiteComponentConfig added in v0.2.0

type SiteComponentConfig struct {
	BaseConfig `mapstructure:",squash"`
}

SiteComponentConfig is for component specific sentry DSN settings

type SiteConfig

type SiteConfig struct {
	BaseConfig `mapstructure:",squash"`
	Components map[string]SiteComponentConfig `mapstructure:"-"`
}

SiteConfig 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