sentry

package
v0.0.0-...-949823d Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: Apache-2.0 Imports: 24 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 WithExecOptions

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

func WithHealthzPort

func WithHealthzPort(port int) Option

func WithKubeconfig

func WithKubeconfig(kubeconfig string) Option

func WithMetricsPort

func WithMetricsPort(port int) Option

func WithNamespace

func WithNamespace(namespace string) Option

func WithPort

func WithPort(port int) Option

func WithTrustDomain

func WithTrustDomain(trustDomain string) Option

func WithWriteConfig

func WithWriteConfig(write bool) Option

func WithWriteTrustBundle

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

func (s *Sentry) Address() string

func (*Sentry) CABundle

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

func (*Sentry) Cleanup

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

func (*Sentry) DialGRPC

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

func (s *Sentry) Namespace() string

func (*Sentry) Port

func (s *Sentry) Port() int

func (*Sentry) Run

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

func (*Sentry) TrustAnchorsFile

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

func (*Sentry) TrustDomain

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