upload

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UploadMultipleCfg

type UploadMultipleCfg struct {
	AppName       string
	Branch        string
	Date          time.Time
	CommitSHA     string
	Filepath      []string
	ServerAddress string
	APIKey        string
	SpyName       string
}

type UploadSingleCfg

type UploadSingleCfg struct {
	// contains filtered or unexported fields
}

type Uploader

type Uploader struct {
	// contains filtered or unexported fields
}

func NewUploader

func NewUploader(logger *logrus.Logger) *Uploader

func (*Uploader) UploadMultiple

func (u *Uploader) UploadMultiple(ctx context.Context, cfg UploadMultipleCfg) error

Upload uploads files to the target server's /api/ci-events endpoint It assumes all cfg values are non-zero

Jump to

Keyboard shortcuts

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