gcs

package
v3.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 20 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactDriver

type ArtifactDriver struct {
	ServiceAccountKey string
}

ArtifactDriver is a driver for GCS

func (*ArtifactDriver) Delete added in v3.4.0

func (h *ArtifactDriver) Delete(s *wfv1.Artifact) error

Delete deletes an artifact from GCS

func (*ArtifactDriver) IsDirectory added in v3.4.0

func (g *ArtifactDriver) IsDirectory(artifact *wfv1.Artifact) (bool, error)

func (*ArtifactDriver) ListObjects added in v3.1.0

func (g *ArtifactDriver) ListObjects(artifact *wfv1.Artifact) ([]string, error)

func (*ArtifactDriver) Load

func (g *ArtifactDriver) Load(inputArtifact *wfv1.Artifact, path string) error

Load function downloads objects from GCS

func (*ArtifactDriver) OpenStream added in v3.4.0

func (g *ArtifactDriver) OpenStream(a *wfv1.Artifact) (io.ReadCloser, error)

func (*ArtifactDriver) Save

func (g *ArtifactDriver) Save(path string, outputArtifact *wfv1.Artifact) error

Save an artifact to GCS compliant storage, e.g., uploading a local file to GCS bucket

Jump to

Keyboard shortcuts

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