Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for MarshalWithJSONPB (0.95 sec)

  1. operator/pkg/util/yaml.go

    	if err != nil {
    		return err.Error()
    	}
    	yb, err := yaml.JSONToYAML([]byte(js))
    	if err != nil {
    		return err.Error()
    	}
    	return string(yb)
    }
    
    // MarshalWithJSONPB returns a YAML string representation of val (using jsonpb).
    func MarshalWithJSONPB(val proto.Message) (string, error) {
    	return protomarshal.ToYAML(val)
    }
    
    // UnmarshalWithJSONPB unmarshals y into out using gogo jsonpb (required for many proto defined structs).
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Jan 14 02:41:27 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  2. operator/pkg/translate/translate.go

    // IOPStoIOPstr takes an IstioOperatorSpec and returns a corresponding IstioOperator string with the given name and namespace.
    func IOPStoIOPstr(iops proto.Message, name, namespace string) (string, error) {
    	iopsStr, err := util.MarshalWithJSONPB(iops)
    	if err != nil {
    		return "", err
    	}
    	spec, err := tpath.AddSpecRoot(iopsStr)
    	if err != nil {
    		return "", err
    	}
    
    	tmpl := `
    apiVersion: install.istio.io/v1alpha1
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 12 19:43:09 UTC 2024
    - 36.3K bytes
    - Viewed (0)
Back to top