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

Method Upload

pkg/casclient/casclient.go:39–39  ·  view source on GitHub ↗
(ctx context.Context, r io.Reader, filename, digest string)

Source from the content-addressed store, hash-verified

37type Uploader interface {
38 UploadFile(ctx context.Context, filepath string) (*UpDownStatus, error)
39 Upload(ctx context.Context, r io.Reader, filename, digest string) (*UpDownStatus, error)
40 // Whether the CAS is ready to accept uploads
41 IsReady(ctx context.Context) (bool, error)
42}

Callers 7

TestUploadMethod · 0.65
TestExistsMethod · 0.65
TestDescribeMethod · 0.65
TestDownloadMethod · 0.65
SetupTestMethod · 0.65
uploadAndCraftFunction · 0.65

Calls

no outgoing calls

Tested by 6

TestUploadMethod · 0.52
TestExistsMethod · 0.52
TestDescribeMethod · 0.52
TestDownloadMethod · 0.52
SetupTestMethod · 0.52