Documentation ¶
Overview ¶
Package storage is a generated GoMock package.
Index ¶
- type ArtifactsStorage
- type Client
- type ClientBucket
- type ClientImplicitBucket
- type MockArtifactsStorage
- func (m *MockArtifactsStorage) DownloadFile(arg0 context.Context, arg1, arg2, arg3, arg4 string) (io.Reader, error)
- func (m *MockArtifactsStorage) EXPECT() *MockArtifactsStorageMockRecorder
- func (m *MockArtifactsStorage) ListFiles(arg0 context.Context, arg1, arg2, arg3 string) ([]testkube.Artifact, error)
- type MockArtifactsStorageMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArtifactsStorage ¶ added in v1.10.41
type Client ¶
type Client interface { ClientBucket ClientImplicitBucket }
Client is storage client abstraction
type ClientBucket ¶ added in v1.9.3
type ClientBucket interface { CreateBucket(ctx context.Context, bucket string) error DeleteBucket(ctx context.Context, bucket string, force bool) error ListBuckets(ctx context.Context) ([]string, error) DownloadFileFromBucket(ctx context.Context, bucket, bucketFolder, file string) (*minio.Object, error) UploadFileToBucket(ctx context.Context, bucket, bucketFolder, filePath string, reader io.Reader, objectSize int64) error GetValidBucketName(parentType string, parentName string) string DeleteFileFromBucket(ctx context.Context, bucket, bucketFolder, file string) error }
ClientBucket is storage client abstraction where you have to specify bucket name
type ClientImplicitBucket ¶ added in v1.9.3
type ClientImplicitBucket interface { ListFiles(ctx context.Context, bucketFolder string) ([]testkube.Artifact, error) SaveFile(ctx context.Context, bucketFolder, filePath string) error DownloadFile(ctx context.Context, bucketFolder, file string) (*minio.Object, error) UploadFile(ctx context.Context, bucketFolder string, filePath string, reader io.Reader, objectSize int64) error PlaceFiles(ctx context.Context, bucketFolders []string, prefix string) error DeleteFile(ctx context.Context, bucketFolder, file string) error }
ClientImplicitBucket is storage client abstraction where bucket name is provided from config
type MockArtifactsStorage ¶ added in v1.10.41
type MockArtifactsStorage struct {
// contains filtered or unexported fields
}
MockArtifactsStorage is a mock of ArtifactsStorage interface.
func NewMockArtifactsStorage ¶ added in v1.10.41
func NewMockArtifactsStorage(ctrl *gomock.Controller) *MockArtifactsStorage
NewMockArtifactsStorage creates a new mock instance.
func (*MockArtifactsStorage) DownloadFile ¶ added in v1.10.41
func (m *MockArtifactsStorage) DownloadFile(arg0 context.Context, arg1, arg2, arg3, arg4 string) (io.Reader, error)
DownloadFile mocks base method.
func (*MockArtifactsStorage) EXPECT ¶ added in v1.10.41
func (m *MockArtifactsStorage) EXPECT() *MockArtifactsStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockArtifactsStorageMockRecorder ¶ added in v1.10.41
type MockArtifactsStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockArtifactsStorageMockRecorder is the mock recorder for MockArtifactsStorage.
func (*MockArtifactsStorageMockRecorder) DownloadFile ¶ added in v1.10.41
func (mr *MockArtifactsStorageMockRecorder) DownloadFile(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
DownloadFile indicates an expected call of DownloadFile.
func (*MockArtifactsStorageMockRecorder) ListFiles ¶ added in v1.10.41
func (mr *MockArtifactsStorageMockRecorder) ListFiles(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
ListFiles indicates an expected call of ListFiles.