MCPcopy
hub / github.com/argoproj/argo-workflows / OpenStream

Method OpenStream

workflow/artifacts/git/git.go:209–212  ·  view source on GitHub ↗
(ctx context.Context, a *wfv1.Artifact)

Source from the content-addressed store, hash-verified

207}
208
209func (g *ArtifactDriver) OpenStream(ctx context.Context, a *wfv1.Artifact) (io.ReadCloser, error) {
210 // todo: this is a temporary implementation which loads file to disk first
211 return common.LoadToStream(ctx, a, g)
212}
213
214func (g *ArtifactDriver) ListObjects(ctx context.Context, artifact *wfv1.Artifact) ([]string, error) {
215 return nil, fmt.Errorf("ListObjects is currently not supported for this artifact type, but it will be in a future version")

Callers

nothing calls this directly

Calls 1

LoadToStreamFunction · 0.92

Tested by

no test coverage detected