sentry

package
v1.12.0-rc.6 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 23 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 ca.Bundle) Option

func WithConfiguration

func WithConfiguration(config string) Option

func WithDontGiveBundle

func WithDontGiveBundle(dontGiveBundle bool) Option

func WithExecOptions

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

func WithHealthzPort

func WithHealthzPort(port int) Option

func WithMetricsPort

func WithMetricsPort(port int) Option

func WithPort

func WithPort(port int) Option

type Sentry

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

func New

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

func (*Sentry) CABundle

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

func (*Sentry) Cleanup

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

func (*Sentry) ConnectGrpc

func (s *Sentry) ConnectGrpc(parentCtx context.Context) (*grpc.ClientConn, error)

ConnectGrpc returns a connection to the Sentry gRPC server, validating TLS certificates.

func (*Sentry) HealthzPort

func (s *Sentry) HealthzPort() int

func (*Sentry) MetricsPort

func (s *Sentry) MetricsPort() int

func (*Sentry) Port

func (s *Sentry) Port() int

func (*Sentry) Run

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

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