MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / NewArtifactUpload

Function NewArtifactUpload

app/cli/pkg/action/artifact_upload.go:43–45  ·  view source on GitHub ↗
(opts *ArtifactUploadOpts)

Source from the content-addressed store, hash-verified

41}
42
43func NewArtifactUpload(opts *ArtifactUploadOpts) *ArtifactUpload {
44 return &ArtifactUpload{opts.ActionsOpts, opts.ArtifactsCASConn}
45}
46
47func (a *ArtifactUpload) Run(filePath string) (*CASArtifact, error) {
48 client := casclient.New(a.artifactsCASConn, casclient.WithLogger(a.Logger))

Callers 1

newArtifactUploadCmdFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected