WithReference is used to set the content upload reference used by the diff operation. This allows the caller to track the upload through the content store.
(ref string)
| 107 | // the diff operation. This allows the caller to track the upload through |
| 108 | // the content store. |
| 109 | func WithReference(ref string) Opt { |
| 110 | return func(c *Config) error { |
| 111 | c.Reference = ref |
| 112 | return nil |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | // WithLabels is used to set content labels on the created diff content. |
| 117 | func WithLabels(labels map[string]string) Opt { |
no outgoing calls
no test coverage detected
searching dependent graphs…