babysitter

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 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 Babysitter

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

Babysitter starts and manages a weavelet inside the Pod.

func NewBabysitter

func NewBabysitter(
	ctx context.Context,
	cfg *config.GKEConfig,
	replicaSet string,
	podName string,
	useLocalhost bool,
	caCert *x509.Certificate,
	selfCertPEM []byte,
	selfKeyPEM []byte,
	manager clients.ManagerClient,
	logSaver func(*protos.LogEntry),
	traceSaver func(spans []trace.ReadOnlySpan) error,
	metricExporter func(metrics []*metrics.MetricSnapshot) error) (*Babysitter, error)

NewBabysitter returns a new babysitter.

func (*Babysitter) ActivateComponent added in v0.2.0

ActivateComponent implements the envelope.EnvelopeHandler interface.

func (*Babysitter) CheckHealth

CheckHealth implements the clients.BabysitterClient interface.

func (*Babysitter) ExportListener added in v0.2.0

ExportListener implements the envelope.EnvelopeHandler interface.

func (*Babysitter) GetListenerAddress added in v0.2.0

GetListenerAddress implements the envelope.EnvelopeHandler interface.

func (*Babysitter) HandleLogEntry added in v0.2.0

func (b *Babysitter) HandleLogEntry(_ context.Context, entry *protos.LogEntry) error

HandleLogEntry implements the envelope.EnvelopeHandler interface.

func (*Babysitter) HandleTraceSpans added in v0.2.0

func (b *Babysitter) HandleTraceSpans(_ context.Context, traces []trace.ReadOnlySpan) error

HandleTraceSpans implements the envelope.EnvelopeHandler interface.

func (*Babysitter) Run

func (b *Babysitter) Run() error

Run runs the babysitter. This call will block until the context passed to NewBabysitter is canceled.

func (*Babysitter) RunProfiling

RunProfiling implements the clients.BabysitterClient interface.

func (*Babysitter) VerifyClientCertificate added in v0.7.0

VerifyClientCertificate implements the envelope.EnvelopeHandler interface.

func (*Babysitter) VerifyServerCertificate added in v0.7.0

VerifyServerCertificate implements the envelope.EnvelopeHandler interface.

type HttpClient

type HttpClient struct {
	Addr string // babysitter address
}

HttpClient is a Client that executes requests over HTTP.

func (*HttpClient) CheckHealth

CheckHealth implements the clients.BabysitterClient interface.

func (*HttpClient) RunProfiling

RunProfiling implements the clients.BabysitterClient interface.

Jump to

Keyboard shortcuts

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