- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for NewYAMLOrJSONDecoder (0.18 sec)
-
pilot/pkg/config/kube/crd/conversion.go
var others []IstioKind reader := bytes.NewReader([]byte(inputs)) empty := IstioKind{} // We store configs as a YaML stream; there may be more than one decoder. yamlDecoder := kubeyaml.NewYAMLOrJSONDecoder(reader, 512*1024) for { obj := IstioKind{} err := yamlDecoder.Decode(&obj) if err == io.EOF { break } if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 25 18:26:16 UTC 2024 - 6.3K bytes - Viewed (0) -
pkg/config/crd/validator.go
data, err := os.Open(file) if err != nil { return nil, fmt.Errorf("failed to read input yaml file: %v", err) } closers = append(closers, data) yamlDecoder := kubeyaml.NewYAMLOrJSONDecoder(data, 512*1024) for { un := &unstructured.Unstructured{} err = yamlDecoder.Decode(&un) if err == io.EOF { break } if err != nil { return nil, err }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 17 15:38:40 UTC 2023 - 8.3K bytes - Viewed (0)