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)
| 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. |
| 45 | func 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. |
no outgoing calls
no test coverage detected
searching dependent graphs…