Documentation
¶
Overview ¶
Package resultstore uploads to resultstore.
Index ¶
- type Options
- type Properties
- type Uploader
- func (u *Uploader) AddBuildLog(msg string)
- func (u *Uploader) BuildLogData() digest.Data
- func (u *Uploader) Close(ctx context.Context, exitCode int) error
- func (u *Uploader) NewConfiguration(ctx context.Context, id string, properties map[string]string) error
- func (u *Uploader) SetFile(ctx context.Context, name string, d digest.Digest) error
- func (u *Uploader) Upload(ctx context.Context, req *rspb.UploadRequest) error
- func (u *Uploader) UploadFiles(ctx context.Context, ents []merkletree.Entry) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { InvocationID string Invocation *rspb.Invocation DialOptions []grpc.DialOption }
Options is options for resultstore uploader.
type Properties ¶
Properties are invocation properties.
type Uploader ¶
type Uploader struct { // These are needed for upload and associate files in resultstore. HashFS *hashfs.HashFS REAPIClient *reapi.Client // contains filtered or unexported fields }
Uploader is resultstore uploader.
func (*Uploader) AddBuildLog ¶
func (*Uploader) BuildLogData ¶
func (*Uploader) NewConfiguration ¶
func (u *Uploader) NewConfiguration(ctx context.Context, id string, properties map[string]string) error
NewConfiguration uploads new configuration with properties.
func (*Uploader) UploadFiles ¶
UploadFiles uploads files to RBE-CAS, and sets the files as the invocation's artifact. Need to set HashFS, REAPIClient to Uploader before calling this.
Click to show internal directories.
Click to hide internal directories.