Documentation
¶
Index ¶
- type Extractor
- type Finder
- type Manager
- type NoopClient
- func (c *NoopClient) InitiateUpload(ctx context.Context, in *debuginfopb.InitiateUploadRequest, ...) (*debuginfopb.InitiateUploadResponse, error)
- func (c *NoopClient) MarkUploadFinished(ctx context.Context, in *debuginfopb.MarkUploadFinishedRequest, ...) (*debuginfopb.MarkUploadFinishedResponse, error)
- func (c *NoopClient) ShouldInitiateUpload(ctx context.Context, in *debuginfopb.ShouldInitiateUploadRequest, ...) (*debuginfopb.ShouldInitiateUploadResponse, error)
- func (c *NoopClient) Upload(ctx context.Context, opts ...grpc.CallOption) (debuginfopb.DebuginfoService_UploadClient, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Extractor ¶
type Extractor struct {
// contains filtered or unexported fields
}
Extractor extracts debug information from a binary.
func NewExtractor ¶
NewExtractor creates a new Extractor.
func (*Extractor) Extract ¶
Extract extracts debug information from the given executable. Cleaning up the temporary directory and the interim file is the caller's responsibility.
func (*Extractor) ExtractAll ¶ added in v0.6.0
ExtractAll extracts debug information from the given executables. It consumes a map of file sources to extract and a destination io.Writer.
type Finder ¶ added in v0.6.0
type Finder struct {
// contains filtered or unexported fields
}
Finder finds the separate debug information files on the system.
func (*Finder) Find ¶ added in v0.6.0
func (f *Finder) Find(ctx context.Context, objFile *objectfile.MappedObjectFile) (string, error)
Find finds the separate debug file for the given object file.
type Manager ¶ added in v0.10.0
Manager is a mechanism for extracting or finding the relevant debug information for the discovered executables.
func New ¶ added in v0.6.0
func New( logger log.Logger, reg prometheus.Registerer, debuginfoClient debuginfopb.DebuginfoServiceClient, uploadTimeout time.Duration, cacheTTL time.Duration, debugDirs []string, stripDebuginfos bool, tempDir string, ) *Manager
New creates a new Manager.
func (*Manager) EnsureUploaded ¶ added in v0.10.0
func (di *Manager) EnsureUploaded(ctx context.Context, objFiles []*objectfile.MappedObjectFile)
EnsureUploaded ensures that the extracted or the found debuginfo for the given buildID is uploaded.
type NoopClient ¶
type NoopClient struct{}
func NewNoopClient ¶
func NewNoopClient() *NoopClient
func (*NoopClient) InitiateUpload ¶ added in v0.11.0
func (c *NoopClient) InitiateUpload(ctx context.Context, in *debuginfopb.InitiateUploadRequest, opts ...grpc.CallOption) (*debuginfopb.InitiateUploadResponse, error)
func (*NoopClient) MarkUploadFinished ¶ added in v0.11.0
func (c *NoopClient) MarkUploadFinished(ctx context.Context, in *debuginfopb.MarkUploadFinishedRequest, opts ...grpc.CallOption) (*debuginfopb.MarkUploadFinishedResponse, error)
func (*NoopClient) ShouldInitiateUpload ¶ added in v0.11.0
func (c *NoopClient) ShouldInitiateUpload(ctx context.Context, in *debuginfopb.ShouldInitiateUploadRequest, opts ...grpc.CallOption) (*debuginfopb.ShouldInitiateUploadResponse, error)
func (*NoopClient) Upload ¶
func (c *NoopClient) Upload(ctx context.Context, opts ...grpc.CallOption) (debuginfopb.DebuginfoService_UploadClient, error)