debuginfo

package
v0.0.1-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Exists(ctx context.Context, buildID string) (bool, error)
	Upload(ctx context.Context, buildID string, f io.Reader) (uint64, error)
}

func NewNoopClient

func NewNoopClient() Client

type Extractor

type Extractor struct {
	Client Client
	// contains filtered or unexported fields
}

func NewExtractor

func NewExtractor(logger log.Logger, Client Client, tmpDir string) *Extractor

func (*Extractor) EnsureUploaded

func (di *Extractor) EnsureUploaded(ctx context.Context, buildIDFiles map[string]maps.BuildIDFile)

func (*Extractor) Extract

func (di *Extractor) Extract(ctx context.Context, buildIDFiles map[string]string) ([]string, error)

func (*Extractor) Upload

func (di *Extractor) Upload(ctx context.Context, buildIDFiles map[string]string) error

type NoopClient

type NoopClient struct{}

func (*NoopClient) Exists

func (c *NoopClient) Exists(ctx context.Context, buildID string) (bool, error)

func (*NoopClient) Upload

func (c *NoopClient) Upload(ctx context.Context, buildID string, f io.Reader) (uint64, error)

Jump to

Keyboard shortcuts

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