Documentation ¶
Index ¶
- func Copy(src, dst string, parallel int, bufferSize float64) error
- func Download(srcClient interface{}, srcPrefix, srcPath string, writer io.Writer) error
- func DownloadFromAbs(ctx context.Context, iClient interface{}, path string, writer io.Writer) error
- func DownloadFromGcs(ctx context.Context, iClient interface{}, path string, writer io.Writer) error
- func DownloadFromK8s(iClient interface{}, path string, writer io.Writer) error
- func DownloadFromS3(iClient interface{}, path string, writer io.Writer) error
- func Exec(client K8sClient, namespace, podName, containerName string, command []string, ...) ([]byte, error)
- func GetClientToAbs(ctx context.Context, path string) (pipeline.Pipeline, error)
- func GetClientToGcs(ctx context.Context, path string) (*storage.Client, error)
- func GetClientToS3(path string) (*session.Session, error)
- func GetClients(srcPrefix, dstPrefix, srcPath, dstPath string) (interface{}, interface{}, error)
- func GetListOfFiles(client interface{}, prefix, path string) ([]string, error)
- func GetListOfFilesFromAbs(ctx context.Context, iClient interface{}, path string) ([]string, error)
- func GetListOfFilesFromGcs(ctx context.Context, iClient interface{}, path string) ([]string, error)
- func GetListOfFilesFromK8s(iClient interface{}, path, findType, findName string) ([]string, error)
- func GetListOfFilesFromS3(iClient interface{}, path string) ([]string, error)
- func PerformCopy(srcClient, dstClient interface{}, srcPrefix, dstPrefix string, ...) error
- func TestImplementationsExist(srcPrefix, dstPrefix string) error
- func Upload(dstClient interface{}, dstPrefix, dstPath, srcPath string, reader io.Reader) error
- func UploadToAbs(ctx context.Context, iClient interface{}, toPath, fromPath string, ...) error
- func UploadToGcs(ctx context.Context, iClient interface{}, toPath, fromPath string, ...) error
- func UploadToK8s(iClient interface{}, toPath, fromPath string, reader io.Reader) error
- func UploadToS3(iClient interface{}, toPath, fromPath string, reader io.Reader) error
- type FromToPair
- type K8sClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadFromAbs ¶
DownloadFromAbs downloads a single file from azure blob storage
func DownloadFromGcs ¶
DownloadFromGcs downloads a single file from GCS
func DownloadFromK8s ¶
DownloadFromK8s downloads a single file from Kubernetes
func DownloadFromS3 ¶
DownloadFromS3 downloads a single file from S3
func Exec ¶
func Exec(client K8sClient, namespace, podName, containerName string, command []string, stdin io.Reader, stdout io.Writer) ([]byte, error)
Exec executes a command in a given container
func GetClientToAbs ¶
GetClientToAbs checks the connection to azure blob storage and returns the tested client (pipeline)
func GetClientToGcs ¶
GetClientToGcs checks the connection to GCS and returns the tested client Set environment variable GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account-key.json This environment variable will be automatically picked up by the client
func GetClientToS3 ¶
GetClientToS3 checks the connection to S3 and returns the tested client
func GetClients ¶
GetClients gets the clients for the source and destination
func GetListOfFiles ¶
GetListOfFiles gets relative paths from the provided path
func GetListOfFilesFromAbs ¶
GetListOfFilesFromAbs gets list of files in path from azure blob storage (recursive)
func GetListOfFilesFromGcs ¶
GetListOfFilesFromGcs gets list of files in path from GCS (recursive)
func GetListOfFilesFromK8s ¶
GetListOfFilesFromK8s gets list of files in path from Kubernetes (recursive)
func GetListOfFilesFromS3 ¶
GetListOfFilesFromS3 gets list of files in path from S3 (recursive)
func PerformCopy ¶
func PerformCopy(srcClient, dstClient interface{}, srcPrefix, dstPrefix string, fromToPaths []FromToPair, parallel int, bufferSize float64) error
PerformCopy performs the actual copy action
func TestImplementationsExist ¶
TestImplementationsExist checks that implementations exist for the desired action
func UploadToAbs ¶
func UploadToAbs(ctx context.Context, iClient interface{}, toPath, fromPath string, reader io.Reader) error
UploadToAbs uploads a single file to azure blob storage
func UploadToGcs ¶
func UploadToGcs(ctx context.Context, iClient interface{}, toPath, fromPath string, reader io.Reader) error
UploadToGCS uploads a single file to GCS
func UploadToK8s ¶
UploadToK8s uploads a single file to Kubernetes
Types ¶
type FromToPair ¶
FromToPair is a pair of FromPath and ToPath
func GetFromToPaths ¶
func GetFromToPaths(srcClient interface{}, srcPrefix, srcPath, dstPath string) ([]FromToPair, error)
GetFromToPaths gets from and to paths to perform the copy on