service

package
v0.0.0-...-0342304 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CpconPublishService

type CpconPublishService struct {
	LocalArtifactPath           string
	RetryCount                  int
	ServiceAccountCredsFilePath string
	Bucket                      string
}

CpconPublishService serves only one publish request. Not to be confused with a server that creates a new service instance for each request.

func NewCpconPublishService

func NewCpconPublishService(req *api.PublishRequest) (*CpconPublishService, error)

func (*CpconPublishService) UploadToCpcon

func (ts *CpconPublishService) UploadToCpcon(ctx context.Context) error

type CpconUploadRequest

type CpconUploadRequest struct {
	// Path to test results to upload
	ResultsDir string

	Bucket                      string
	ServiceAccountCredsFilePath string
}

CpconUploadRequest holds information needed by upload_results.py script

Jump to

Keyboard shortcuts

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