MCPcopy Create free account
hub / github.com/bufbuild/buf / UploadWithLabels

Function UploadWithLabels

private/bufpkg/bufmodule/uploader.go:45–49  ·  view source on GitHub ↗

UploadWithLabels returns a new UploadOption that adds the given labels. This can be called multiple times. The unique result set of labels will be used. We only ever allow one of labels or tags to be set.

(labels ...string)

Source from the content-addressed store, hash-verified

43// This can be called multiple times. The unique result set of labels will be used.
44// We only ever allow one of labels or tags to be set.
45func UploadWithLabels(labels ...string) UploadOption {
46 return func(uploadOptions *uploadOptions) {
47 uploadOptions.labels = append(uploadOptions.labels, labels...)
48 }
49}
50
51// UploadWithTags returns a new UploadOption that adds the given tags. This is handled
52// separately from labels because we need to resolve the default label(s) when uploading.

Callers 3

runFunction · 0.92
getLabelUploadOptionFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…