Documentation
¶
Index ¶
- type Option
- func WithCABundle(bundle bundle.Bundle) Option
- func WithConfiguration(config string) Option
- func WithEnableJWT(enable bool) Option
- func WithExecOptions(execOptions ...exec.Option) Option
- func WithHealthzPort(port int) Option
- func WithJWTIssuer(issuer string) Option
- func WithJWTIssuerFromOIDC() Option
- func WithJWTKeyID(kid string) Option
- func WithJWTTTL(ttl time.Duration) Option
- func WithKubeconfig(kubeconfig string) Option
- func WithMetricsPort(port int) Option
- func WithMode(mode string) Option
- func WithNamespace(namespace string) Option
- func WithOIDCAllowedHosts(hosts []string) Option
- func WithOIDCEnabled(enabled bool) Option
- func WithOIDCJWKSURI(jwksURI string) Option
- func WithOIDCPathPrefix(prefix string) Option
- func WithOIDCServerListenPort(port int) Option
- func WithOIDCTLSCertFile(certFile string) Option
- func WithOIDCTLSKeyFile(keyFile string) Option
- func WithPort(port int) Option
- func WithTrustDomain(trustDomain string) Option
- func WithWriteConfig(write bool) Option
- func WithWriteTrustBundle(writeBundle bool) Option
- type Sentry
- func (s *Sentry) Address() string
- func (s *Sentry) CABundle() bundle.Bundle
- func (s *Sentry) Cleanup(t *testing.T)
- func (s *Sentry) DialGRPC(t *testing.T, ctx context.Context, sentryID string) *grpc.ClientConn
- func (s *Sentry) HealthzPort() int
- func (s *Sentry) MetricsPort() int
- func (s *Sentry) Namespace() string
- func (s *Sentry) OIDCPort(t *testing.T) int
- func (s *Sentry) Port() int
- func (s *Sentry) Run(t *testing.T, ctx context.Context)
- func (s *Sentry) TrustAnchorsFile(t *testing.T) string
- func (s *Sentry) TrustDomain(t *testing.T) string
- func (s *Sentry) WaitUntilRunning(t *testing.T, ctx context.Context)
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 WithConfiguration ¶
func WithEnableJWT ¶ added in v1.16.0
WithEnableJWT enables JWT token issuance in Sentry
func WithExecOptions ¶
func WithHealthzPort ¶
func WithJWTIssuer ¶ added in v1.16.0
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
WithJWTKeyID sets an explicit JWT key ID to pass via --jwt-key-id flag
func WithJWTTTL ¶ added in v1.16.0
WithJWTTTL sets the JWT time-to-live (TTL) for Sentry
func WithKubeconfig ¶ added in v1.12.1
func WithMetricsPort ¶
func WithNamespace ¶ added in v1.13.0
func WithOIDCAllowedHosts ¶ added in v1.16.0
WithOIDCAllowedHosts sets the list of allowed hosts for OIDC HTTP endpoint requests
func WithOIDCEnabled ¶ added in v1.16.0
WithOIDCEnabled enables the OIDC HTTP server in Sentry
func WithOIDCJWKSURI ¶ added in v1.16.0
WithOIDCJWKSURI sets the custom URI where the JWKS can be accessed externally
func WithOIDCPathPrefix ¶ added in v1.16.0
WithOIDCPathPrefix sets the path prefix to add to all OIDC HTTP endpoints
func WithOIDCServerListenPort ¶ added in v1.16.0
WithOIDCServerListenPort sets the port for the OIDC HTTP server
func WithOIDCTLSCertFile ¶ added in v1.16.0
WithOIDCTLSCertFile sets the TLS certificate file for the OIDC HTTP server
func WithOIDCTLSKeyFile ¶ added in v1.16.0
WithOIDCTLSKeyFile sets the TLS key file for the OIDC HTTP server
func WithTrustDomain ¶ added in v1.12.1
func WithWriteConfig ¶ added in v1.12.1
func WithWriteTrustBundle ¶ added in v1.12.1
type Sentry ¶
type Sentry struct {
// contains filtered or unexported fields
}
func (*Sentry) DialGRPC ¶ added in v1.12.1
DialGRPC dials the sentry using the given context and returns a grpc client connection.