sentry

package
v1.16.6 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*options)

Option is a function that configures the process.

func WithCABundle

func WithCABundle(bundle bundle.Bundle) Option

func WithConfiguration

func WithConfiguration(config string) Option

func WithEnableJWT added in v1.16.0

func WithEnableJWT(enable bool) Option

WithEnableJWT enables JWT token issuance in Sentry

func WithExecOptions

func WithExecOptions(execOptions ...exec.Option) Option

func WithHealthzPort

func WithHealthzPort(port int) Option

func WithJWTIssuer added in v1.16.0

func WithJWTIssuer(issuer string) Option

WithJWTIssuer sets the JWT issuer for Sentry

func WithJWTIssuerFromOIDC added in v1.16.0

func WithJWTIssuerFromOIDC() Option

WithJWTIssuerFromOIDC uses the OIDC issuer as the JWT issuer in Sentry.

func WithJWTKeyID added in v1.16.0

func WithJWTKeyID(kid string) Option

WithJWTKeyID sets an explicit JWT key ID to pass via --jwt-key-id flag

func WithJWTTTL added in v1.16.0

func WithJWTTTL(ttl time.Duration) Option

WithJWTTTL sets the JWT time-to-live (TTL) for Sentry

func WithKubeconfig added in v1.12.1

func WithKubeconfig(kubeconfig string) Option

func WithMetricsPort

func WithMetricsPort(port int) Option

func WithMode added in v1.16.0

func WithMode(mode string) Option

func WithNamespace added in v1.13.0

func WithNamespace(namespace string) Option

func WithOIDCAllowedHosts added in v1.16.0

func WithOIDCAllowedHosts(hosts []string) Option

WithOIDCAllowedHosts sets the list of allowed hosts for OIDC HTTP endpoint requests

func WithOIDCEnabled added in v1.16.0

func WithOIDCEnabled(enabled bool) Option

WithOIDCEnabled enables the OIDC HTTP server in Sentry

func WithOIDCJWKSURI added in v1.16.0

func WithOIDCJWKSURI(jwksURI string) Option

WithOIDCJWKSURI sets the custom URI where the JWKS can be accessed externally

func WithOIDCPathPrefix added in v1.16.0

func WithOIDCPathPrefix(prefix string) Option

WithOIDCPathPrefix sets the path prefix to add to all OIDC HTTP endpoints

func WithOIDCServerListenPort added in v1.16.0

func WithOIDCServerListenPort(port int) Option

WithOIDCServerListenPort sets the port for the OIDC HTTP server

func WithOIDCTLSCertFile added in v1.16.0

func WithOIDCTLSCertFile(certFile string) Option

WithOIDCTLSCertFile sets the TLS certificate file for the OIDC HTTP server

func WithOIDCTLSKeyFile added in v1.16.0

func WithOIDCTLSKeyFile(keyFile string) Option

WithOIDCTLSKeyFile sets the TLS key file for the OIDC HTTP server

func WithPort

func WithPort(port int) Option

func WithTrustDomain added in v1.12.1

func WithTrustDomain(trustDomain string) Option

func WithWriteConfig added in v1.12.1

func WithWriteConfig(write bool) Option

func WithWriteTrustBundle added in v1.12.1

func WithWriteTrustBundle(writeBundle bool) Option

type Sentry

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

func New

func New(t *testing.T, fopts ...Option) *Sentry

func (*Sentry) Address added in v1.13.0

func (s *Sentry) Address() string

func (*Sentry) CABundle

func (s *Sentry) CABundle() bundle.Bundle

func (*Sentry) Cleanup

func (s *Sentry) Cleanup(t *testing.T)

func (*Sentry) DialGRPC added in v1.12.1

func (s *Sentry) DialGRPC(t *testing.T, ctx context.Context, sentryID string) *grpc.ClientConn

DialGRPC dials the sentry using the given context and returns a grpc client connection.

func (*Sentry) HealthzPort

func (s *Sentry) HealthzPort() int

func (*Sentry) MetricsPort

func (s *Sentry) MetricsPort() int

func (*Sentry) Namespace added in v1.14.0

func (s *Sentry) Namespace() string

func (*Sentry) OIDCPort added in v1.16.0

func (s *Sentry) OIDCPort(t *testing.T) int

func (*Sentry) Port

func (s *Sentry) Port() int

func (*Sentry) Run

func (s *Sentry) Run(t *testing.T, ctx context.Context)

func (*Sentry) TrustAnchorsFile added in v1.13.0

func (s *Sentry) TrustAnchorsFile(t *testing.T) string

func (*Sentry) TrustDomain added in v1.14.0

func (s *Sentry) TrustDomain(t *testing.T) string

func (*Sentry) WaitUntilRunning

func (s *Sentry) WaitUntilRunning(t *testing.T, ctx context.Context)

Jump to

Keyboard shortcuts

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