storage

package
v1.9.8 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	ClientBucket
	ClientImplicitBucket
}

Client is storage client abstraction

type ClientBucket added in v1.9.3

type ClientBucket interface {
	CreateBucket(bucket string) error
	DeleteBucket(bucket string, force bool) error
	ListBuckets() ([]string, error)
	ListFilesFromBucket(bucket string) ([]testkube.Artifact, error)
	SaveFileToBucket(bucket, bucketFolder, filePath string) error
	DownloadFileFromBucket(bucket, bucketFolder, file string) (*minio.Object, error)
	UploadFileToBucket(bucket, bucketFolder, filePath string, reader io.Reader, objectSize int64) error
	GetValidBucketName(parentType string, parentName string) string
	DeleteFileFromBucket(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(bucketFolder string) ([]testkube.Artifact, error)
	SaveFile(bucketFolder, filePath string) error
	DownloadFile(bucketFolder, file string) (*minio.Object, error)
	UploadFile(bucketFolder string, filePath string, reader io.Reader, objectSize int64) error
	PlaceFiles(bucketFolders []string, prefix string) error
	DeleteFile(bucketFolder, file string) error
}

ClientImplicitBucket is storage client abstraction where bucket name is providet from config

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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