artifacts

package
v0.189.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(preRun func(cmd *cobra.Command, args []string)) *cobra.Command

func DownloadCommand

func DownloadCommand() *cobra.Command

func ListCommand

func ListCommand() *cobra.Command

func UploadCommand

func UploadCommand() *cobra.Command

Types

type ArtifactService added in v0.186.4

type ArtifactService struct {
	JobService job.Service
}

ArtifactService represents artifact service

func (*ArtifactService) Download added in v0.186.4

func (s *ArtifactService) Download(jobID, filename string) ([]byte, error)

Download does download specified artifacts

func (*ArtifactService) List added in v0.186.4

func (s *ArtifactService) List(jobID string) (List, error)

List returns an artifact list

func (*ArtifactService) Upload added in v0.186.4

func (s *ArtifactService) Upload(jobID, filename string, content []byte) error

Upload does upload the specified artifact

type List added in v0.186.4

type List struct {
	JobID string   `json:"jobID"`
	Items []string `json:"items"`
}

List represents artifact structure

Jump to

Keyboard shortcuts

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