tetl

package
v1.3.30 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package tetl provides helpers for ETL.

  • Copyright (c) 2018-2025, NVIDIA CORPORATION. All rights reserved.

Index

Constants

View Source
const (
	NonExistImage = "non-exist-image"
	InvalidYaml   = "invalid-yaml"
	Tar2TF        = "tar2tf"
	Echo          = "transformer-echo"
	EchoGolang    = "echo-go"
	MD5           = "transformer-md5"
	HashWithArgs  = "hash-with-args"
	Tar2tfFilters = "tar2tf-filters"
)

Variables

View Source
var (
	EchoTransform  = func(r io.Reader) io.Reader { return r }
	NumpyTransform = func(_ io.Reader) io.Reader { return bytes.NewReader([]byte("\x00\x00\x01\x00\x02\x00\x03\x00")) }
	MD5Transform   = func(r io.Reader) io.Reader {
		data, _ := io.ReadAll(r)
		return bytes.NewReader([]byte(cos.ChecksumB2S(data, cos.ChecksumMD5)))
	}
)

Functions

func CheckNoRunningETLContainers

func CheckNoRunningETLContainers(t *testing.T, params api.BaseParams)

func ETLBucketWithCleanup added in v1.3.16

func ETLBucketWithCleanup(t *testing.T, bp api.BaseParams, bckFrom, bckTo cmn.Bck, msg *apc.TCBMsg) string

func ETLBucketWithCmp added in v1.3.28

func ETLBucketWithCmp(t *testing.T, bp api.BaseParams, bckFrom, bckTo cmn.Bck, msg *apc.TCBMsg, cmp func(r1, r2 io.Reader) bool)

func ETLCheckStage added in v1.3.28

func ETLCheckStage(t *testing.T, params api.BaseParams, etlName string, stage etl.Stage)

func GetTransformYaml

func GetTransformYaml(etlName string) ([]byte, error)

func InitSpec added in v1.3.16

func InitSpec(t *testing.T, bp api.BaseParams, etlName, commType, argType string) (xid, name string)

func ListObjectsWithRetry added in v1.3.28

func ListObjectsWithRetry(bp api.BaseParams, bckTo cmn.Bck, prefix string, expectedCount int, opts tools.WaitRetryOpts) (err error)

func ReportXactionStatus

func ReportXactionStatus(bp api.BaseParams, xid string, stopCh *cos.StopCh, interval time.Duration, totalObj int)

func SpecToInitMsg

func SpecToInitMsg(spec []byte) (*etl.InitSpecMsg, error)

func StopAndDeleteETL

func StopAndDeleteETL(t *testing.T, bp api.BaseParams, etlName string)

func WaitForAborted

func WaitForAborted(bp api.BaseParams, xid, kind string, timeout time.Duration) error

func WaitForETLAborted added in v1.3.30

func WaitForETLAborted(t *testing.T, bp api.BaseParams)

func WaitForFinished

func WaitForFinished(bp api.BaseParams, xid, kind string, timeout time.Duration) (err error)

NOTE: relies on x-kind to choose the waiting method TODO -- FIXME: remove and simplify - here and everywhere

Types

This section is empty.

Jump to

Keyboard shortcuts

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