artifact

package
v1.10.49 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CmdArtifactsListFiles    executor.Command = "artifacts.listFiles"
	CmdArtifactsDownloadFile executor.Command = "artifacts.downloadFile"
)
View Source
const (
	CmdScraperPutObjectSignedURL executor.Command = "put_object_signed_url"
)

Variables

View Source
var ErrOperationNotSupported = errors.New("operation not supported")

Functions

This section is empty.

Types

type CloudArtifactsStorage added in v1.10.44

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

func NewCloudArtifactsStorage added in v1.10.44

func NewCloudArtifactsStorage(cloudClient cloud.TestKubeCloudAPIClient, grpcConn *grpc.ClientConn, apiKey string) *CloudArtifactsStorage

func (*CloudArtifactsStorage) DownloadArchive added in v1.10.45

func (c *CloudArtifactsStorage) DownloadArchive(ctx context.Context, executionID string, masks []string) (io.Reader, error)

func (*CloudArtifactsStorage) DownloadFile added in v1.10.44

func (c *CloudArtifactsStorage) DownloadFile(ctx context.Context, file, executionID, testName, testSuiteName string) (io.Reader, error)

func (*CloudArtifactsStorage) GetValidBucketName added in v1.10.44

func (c *CloudArtifactsStorage) GetValidBucketName(parentType string, parentName string) string

func (*CloudArtifactsStorage) ListFiles added in v1.10.44

func (c *CloudArtifactsStorage) ListFiles(ctx context.Context, executionID, testName, testSuiteName string) ([]testkube.Artifact, error)

func (*CloudArtifactsStorage) PlaceFiles added in v1.10.44

func (c *CloudArtifactsStorage) PlaceFiles(ctx context.Context, bucketFolders []string, prefix string) error

func (*CloudArtifactsStorage) UploadFile added in v1.10.44

func (c *CloudArtifactsStorage) UploadFile(ctx context.Context, bucketFolder string, filePath string, reader io.Reader, objectSize int64) error

type CloudUploader

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

func NewCloudUploader

func NewCloudUploader(executor executor.Executor) *CloudUploader

func (*CloudUploader) Close added in v1.10.40

func (u *CloudUploader) Close() error

func (*CloudUploader) Upload

func (u *CloudUploader) Upload(ctx context.Context, object *scraper.Object, execution testkube.Execution) error

type DownloadFileRequest added in v1.10.41

type DownloadFileRequest struct {
	File          string
	ExecutionID   string
	TestName      string
	TestSuiteName string
}

type DownloadFileResponse added in v1.10.41

type DownloadFileResponse struct {
	URL string
}

type ListFilesRequest added in v1.10.41

type ListFilesRequest struct {
	ExecutionID   string
	TestName      string
	TestSuiteName string
}

type ListFilesResponse added in v1.10.41

type ListFilesResponse struct {
	Artifacts []testkube.Artifact
}

type PutObjectSignedURLRequest

type PutObjectSignedURLRequest struct {
	Object        string `json:"object"`
	ExecutionID   string `json:"executionId"`
	TestName      string `json:"testName"`
	TestSuiteName string `json:"testSuiteName"`
}

type PutObjectSignedURLResponse

type PutObjectSignedURLResponse struct {
	URL string
}

Jump to

Keyboard shortcuts

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