Documentation ¶
Index ¶
- Constants
- Variables
- type CloudArtifactsStorage
- func (c *CloudArtifactsStorage) DownloadArchive(ctx context.Context, executionID string, masks []string) (io.Reader, error)
- func (c *CloudArtifactsStorage) DownloadFile(ctx context.Context, file, executionID, testName, testSuiteName string) (io.Reader, error)
- func (c *CloudArtifactsStorage) GetValidBucketName(parentType string, parentName string) string
- func (c *CloudArtifactsStorage) ListFiles(ctx context.Context, executionID, testName, testSuiteName string) ([]testkube.Artifact, error)
- func (c *CloudArtifactsStorage) PlaceFiles(ctx context.Context, bucketFolders []string, prefix string) error
- func (c *CloudArtifactsStorage) UploadFile(ctx context.Context, bucketFolder string, filePath string, reader io.Reader, ...) error
- type CloudUploader
- type DownloadFileRequest
- type DownloadFileResponse
- type ListFilesRequest
- type ListFilesResponse
- type PutObjectSignedURLRequest
- type PutObjectSignedURLResponse
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 (*CloudArtifactsStorage) DownloadFile ¶ added in v1.10.44
func (*CloudArtifactsStorage) GetValidBucketName ¶ added in v1.10.44
func (c *CloudArtifactsStorage) GetValidBucketName(parentType string, parentName string) string
func (*CloudArtifactsStorage) PlaceFiles ¶ added in v1.10.44
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
type DownloadFileRequest ¶ added in v1.10.41
type DownloadFileResponse ¶ added in v1.10.41
type DownloadFileResponse struct {
URL string
}
type ListFilesRequest ¶ added in v1.10.41
type ListFilesResponse ¶ added in v1.10.41
type PutObjectSignedURLResponse ¶
type PutObjectSignedURLResponse struct {
URL string
}
Click to show internal directories.
Click to hide internal directories.