NewTextImageInputConfig returns an input config for a text image.
( location string, compression string, )
| 306 | |
| 307 | // NewTextImageInputConfig returns an input config for a text image. |
| 308 | func NewTextImageInputConfig( |
| 309 | location string, |
| 310 | compression string, |
| 311 | ) (InputConfig, error) { |
| 312 | if location == "" { |
| 313 | return nil, errors.New("empty location for text image") |
| 314 | } |
| 315 | return &inputConfig{ |
| 316 | inputConfigType: InputConfigTypeTextImage, |
| 317 | location: location, |
| 318 | compression: compression, |
| 319 | }, nil |
| 320 | } |
| 321 | |
| 322 | // NewYAMLImageInputConfig returns an input config for a yaml image. |
| 323 | func NewYAMLImageInputConfig( |
no outgoing calls
no test coverage detected
searching dependent graphs…