babysitter

package
v0.23.5 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 19 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 Start added in v0.18.0

func Start(
	ctx context.Context,
	logger *slog.Logger,
	cfg *config.GKEConfig,
	replicaSet string,
	projectName string,
	podName string,
	internalAddress string,
	mux *http.ServeMux,
	selfAddr string,
	manager endpoints.Manager,
	caCert *x509.Certificate,
	getSelfCert func() ([]byte, []byte, error),
	logSaver func(*protos.LogEntry),
	traceSaver func(spans *protos.TraceSpans) error,
	metricExporter func(metrics []*metrics.MetricSnapshot) error,
) (*Babysitter, error)

Start creates and starts a new babysitter.

func (*Babysitter) ActivateComponent added in v0.2.0

ActivateComponent implements the envelope.EnvelopeHandler 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) GetLoad added in v0.22.1

GetLoad implements the endpoints.Babysitter interface.

func (*Babysitter) GetSelfCertificate added in v0.12.0

GetSelfCertificate 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 *protos.TraceSpans) error

HandleTraceSpans implements the envelope.EnvelopeHandler interface.

func (*Babysitter) LogBatch added in v0.23.0

func (b *Babysitter) LogBatch(ctx context.Context, batch *protos.LogEntryBatch) error

LogBatch implements the control.DeployerControl interface.

func (*Babysitter) RunProfiling

RunProfiling implements the endpoints.Babysitter interface.

func (*Babysitter) SelfAddr added in v0.22.1

func (b *Babysitter) SelfAddr() string

SelfAddr returns the address on which the babysitter is listening on for incoming requests.

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.

func (*Babysitter) WeaveletAddress added in v0.23.0

func (b *Babysitter) WeaveletAddress() string

WeaveletAddress returns the address that other components should dial to communicate with the weavelet.

type HttpClient

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

HttpClient is a Client that executes requests over HTTP.

func NewHttpClient added in v0.23.2

func NewHttpClient(addr string, tlsConfig *tls.Config) *HttpClient

func (*HttpClient) GetLoad added in v0.22.1

GetLoad implements the endpoints.Babysitter interface.

func (*HttpClient) RunProfiling

RunProfiling implements the endpoints.Babysitter interface.

Jump to

Keyboard shortcuts

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