puller

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSanePath

func CheckSanePath(path string, baseFolder string) error

checkSanePath just to make sure we don't delete or overwrite somewhere where we are not supposed to

func ExtractTarGz

func ExtractTarGz(checkOnly bool, archivePath string, basePath string, maxArchiveSize int64) error

func FormatArchiveKey

func FormatArchiveKey(clusterName string, runID string, archiveName string) string

func IsTarGz

func IsTarGz(filePath string, maxArchiveSize int64) (bool, error)

Types

type DataPuller

type DataPuller interface {
	Pull(ctx context.Context, clusterName string, runID string) (string, error)
	Extract(ctx context.Context, archivePath string) error
	Close(ctx context.Context, basePath string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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