NewYAMLImageInputConfig returns an input config for a yaml image.
( location string, compression string, )
| 321 | |
| 322 | // NewYAMLImageInputConfig returns an input config for a yaml image. |
| 323 | func NewYAMLImageInputConfig( |
| 324 | location string, |
| 325 | compression string, |
| 326 | ) (InputConfig, error) { |
| 327 | if location == "" { |
| 328 | return nil, errors.New("empty location for yaml image") |
| 329 | } |
| 330 | return &inputConfig{ |
| 331 | inputConfigType: InputConfigTypeYAMLImage, |
| 332 | location: location, |
| 333 | compression: compression, |
| 334 | }, nil |
| 335 | } |
| 336 | |
| 337 | // *** PRIVATE *** |
| 338 |
no outgoing calls
no test coverage detected
searching dependent graphs…