Categorygithub.com/gravitational/teleport/api
modulepackage
18.0.0-dev.vnet-windows.4+incompatible
Repository: https://github.com/gravitational/teleport.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Package breaker implements a circuit breaker.
Package client provides a gRPC implementation of the Teleport Auth client.
Package constants defines Teleport-specific constants.
Package defaults defines Teleport-specific defaults.
No description provided by the author
No description provided by the author
Package identityfile implements parsing and serialization of Teleport identity files.
packages under `api/internalutils` hold helpers that aren't intended to be part of the public api, but need to be importable by both `api` and `lib`.
No description provided by the author
No description provided by the author
No description provided by the author
Package profile handles management of the Teleport profile directory (~/.tsh).
No description provided by the author
Package trail integrates trace errors with GRPC Example server that sends the GRPC error and attaches metadata: func (s *server) Echo(ctx context.Context, message *gw.StringMessage) (*gw.StringMessage, error) { trace.SetDebug(true) // to tell trace to start attaching metadata // Send sends metadata via grpc header and converts error to GRPC compatible one return nil, trail.Send(ctx, trace.AccessDenied("missing authorization")) } Example client reading error and trace debug info: var header metadata.MD r, err := c.Echo(context.Background(), &gw.StringMessage{Value: message}, grpc.Header(&header)) if err != nil { // FromGRPC reads error, converts it back to trace error and attaches debug metadata // like stack trace of the error origin back to the error err = trail.FromGRPC(err, header) // this line will log original trace of the error log.Errorf("error saying echo: %v", trace.DebugReport(err)) return }.
Copyright 2024 Gravitational, Inc.
Package utils defines several functions used across the Teleport API and other packages.

# Constants

No description provided by the author

# Variables

No description provided by the author