hdfs

package
v4.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 15 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateArtifact

func ValidateArtifact(errPrefix string, art *wfv1.HDFSArtifact) error

ValidateArtifact validates HDFS artifact

Types

type ArtifactDriver

type ArtifactDriver struct {
	Addresses              []string // comma-separated name nodes
	Path                   string
	Force                  bool
	HDFSUser               string
	KrbOptions             *KrbOptions
	DataTransferProtection string
}

ArtifactDriver is a driver for HDFS

func CreateDriver

func CreateDriver(ctx context.Context, ci resource.Interface, art *wfv1.HDFSArtifact) (*ArtifactDriver, error)

CreateDriver constructs ArtifactDriver

func (*ArtifactDriver) Delete

func (driver *ArtifactDriver) Delete(ctx context.Context, s *wfv1.Artifact) error

Delete is unsupported for the hdfs artifacts

func (*ArtifactDriver) IsDirectory

func (driver *ArtifactDriver) IsDirectory(ctx context.Context, artifact *wfv1.Artifact) (bool, error)

func (*ArtifactDriver) ListObjects

func (driver *ArtifactDriver) ListObjects(ctx context.Context, artifact *wfv1.Artifact) ([]string, error)

func (*ArtifactDriver) Load

func (driver *ArtifactDriver) Load(ctx context.Context, _ *wfv1.Artifact, path string) error

Load downloads artifacts from HDFS compliant storage

func (*ArtifactDriver) OpenStream

func (driver *ArtifactDriver) OpenStream(ctx context.Context, a *wfv1.Artifact) (io.ReadCloser, error)

func (*ArtifactDriver) Save

func (driver *ArtifactDriver) Save(ctx context.Context, path string, outputArtifact *wfv1.Artifact) error

Save saves an artifact to HDFS compliant storage

func (*ArtifactDriver) SaveStream added in v4.1.0

func (driver *ArtifactDriver) SaveStream(ctx context.Context, reader io.Reader, outputArtifact *wfv1.Artifact) error

SaveStream saves an artifact from an io.Reader to HDFS compliant storage

type CCacheOptions

type CCacheOptions struct {
	CCache credentials.CCache
}

CCacheOptions is options for ccache

type KeytabOptions

type KeytabOptions struct {
	Keytab   keytab.Keytab
	Username string
	Realm    string
}

KeytabOptions is options for keytab

type KrbOptions

type KrbOptions struct {
	CCacheOptions        *CCacheOptions
	KeytabOptions        *KeytabOptions
	Config               string
	ServicePrincipalName string
}

KrbOptions is options for Kerberos

Jump to

Keyboard shortcuts

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