Documentation ¶
Overview ¶
Package scraper is a generated GoMock package.
Package scraper is a generated GoMock package.
Index ¶
- func ExtractMinIOLoaderMeta(execution testkube.Execution) map[string]any
- type Extractor
- type FilesystemExtractor
- type MinIOLoader
- type MinioScraper
- type MockExtractor
- type MockExtractorMockRecorder
- type MockUploader
- type MockUploaderMockRecorder
- type Object
- type ProcessFn
- type Scraper
- type ScraperV2
- type Uploader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FilesystemExtractor ¶ added in v1.9.23
type FilesystemExtractor struct {
// contains filtered or unexported fields
}
func NewFilesystemExtractor ¶ added in v1.9.23
func NewFilesystemExtractor(dirs []string, fs filesystem.FileSystem) *FilesystemExtractor
type MinIOLoader ¶ added in v1.9.23
type MinIOLoader struct {
Endpoint, AccessKeyID, SecretAccessKey, Location, Token, Bucket string
Ssl bool
// contains filtered or unexported fields
}
func NewMinIOLoader ¶ added in v1.9.23
func NewMinIOLoader(endpoint, accessKeyID, secretAccessKey, location, token, bucket string, ssl bool) (*MinIOLoader, error)
type MinioScraper ¶
type MinioScraper struct {
Endpoint, AccessKeyID, SecretAccessKey, Location, Token, Bucket string
Ssl bool
}
MinioScraper manages getting artifacts from job pods
func NewMinioScraper ¶
func NewMinioScraper(endpoint, accessKeyID, secretAccessKey, location, token, bucket string, ssl bool) *MinioScraper
NewMinioScraper returns a Minio implementation of the Scraper
type MockExtractor ¶ added in v1.9.23
type MockExtractor struct {
// contains filtered or unexported fields
}
MockExtractor is a mock of Extractor interface.
func NewMockExtractor ¶ added in v1.9.23
func NewMockExtractor(ctrl *gomock.Controller) *MockExtractor
NewMockExtractor creates a new mock instance.
func (*MockExtractor) EXPECT ¶ added in v1.9.23
func (m *MockExtractor) EXPECT() *MockExtractorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockExtractorMockRecorder ¶ added in v1.9.23
type MockExtractorMockRecorder struct {
// contains filtered or unexported fields
}
MockExtractorMockRecorder is the mock recorder for MockExtractor.
func (*MockExtractorMockRecorder) Extract ¶ added in v1.9.23
func (mr *MockExtractorMockRecorder) Extract(arg0, arg1 interface{}) *gomock.Call
Extract indicates an expected call of Extract.
type MockUploader ¶ added in v1.9.23
type MockUploader struct {
// contains filtered or unexported fields
}
MockUploader is a mock of Uploader interface.
func NewMockUploader ¶ added in v1.9.23
func NewMockUploader(ctrl *gomock.Controller) *MockUploader
NewMockUploader creates a new mock instance.
func (*MockUploader) EXPECT ¶ added in v1.9.23
func (m *MockUploader) EXPECT() *MockUploaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockUploaderMockRecorder ¶ added in v1.9.23
type MockUploaderMockRecorder struct {
// contains filtered or unexported fields
}
MockUploaderMockRecorder is the mock recorder for MockUploader.
func (*MockUploaderMockRecorder) Upload ¶ added in v1.9.23
func (mr *MockUploaderMockRecorder) Upload(arg0, arg1, arg2 interface{}) *gomock.Call
Upload indicates an expected call of Upload.
type Scraper ¶
type Scraper interface { // Scrape gets artifacts from the directories present in the execution with executionID Scrape(executionID string, directories []string) error }
Scraper is responsible for collecting and persisting the necessary artifacts
type ScraperV2 ¶ added in v1.9.23
type ScraperV2 struct {
// contains filtered or unexported fields
}