NewJSONImageInputConfig returns an input config for a JSON image.
( location string, compression string, )
| 291 | |
| 292 | // NewJSONImageInputConfig returns an input config for a JSON image. |
| 293 | func NewJSONImageInputConfig( |
| 294 | location string, |
| 295 | compression string, |
| 296 | ) (InputConfig, error) { |
| 297 | if location == "" { |
| 298 | return nil, errors.New("empty location for JSON image") |
| 299 | } |
| 300 | return &inputConfig{ |
| 301 | inputConfigType: InputConfigTypeJSONImage, |
| 302 | location: location, |
| 303 | compression: compression, |
| 304 | }, nil |
| 305 | } |
| 306 | |
| 307 | // NewTextImageInputConfig returns an input config for a text image. |
| 308 | func NewTextImageInputConfig( |
no outgoing calls
no test coverage detected
searching dependent graphs…