@@ -38,7 +38,7 @@ func GetSupportBundleFromURI(bundleURI string) (*troubleshootv1beta2.SupportBund
3838}
3939
4040// ParseSupportBundle parses a support bundle from a byte array into a SupportBundle object
41- // Deprecated: use loader.LoadSpecs instead
41+ // We will deprecate this in favour of use loader.LoadSpecs once the new API is stable
4242func ParseSupportBundle (doc []byte , followURI bool ) (* troubleshootv1beta2.SupportBundle , error ) {
4343 doc , err := docrewrite .ConvertToV1Beta2 (doc )
4444 if err != nil {
@@ -102,13 +102,13 @@ func ParseSupportBundle(doc []byte, followURI bool) (*troubleshootv1beta2.Suppor
102102}
103103
104104// ParseSupportBundle parses a support bundle from a byte array into a SupportBundle object
105- // Deprecated: use loader.LoadSpecs instead
105+ // We will deprecate this in favour of use loader.LoadSpecs once the new API is stable
106106func ParseSupportBundleFromDoc (doc []byte ) (* troubleshootv1beta2.SupportBundle , error ) {
107107 return ParseSupportBundle (doc , true )
108108}
109109
110110// GetRedactorFromURI parses a redactor from a URI into a Redactor object
111- // Deprecated: use loader.LoadSpecs instead
111+ // We will deprecate this in favour of use loader.LoadSpecs once the new API is stable
112112func GetRedactorFromURI (redactorURI string ) (* troubleshootv1beta2.Redactor , error ) {
113113 redactorContent , err := LoadRedactorSpec (redactorURI )
114114 if err != nil {
@@ -127,7 +127,7 @@ func GetRedactorFromURI(redactorURI string) (*troubleshootv1beta2.Redactor, erro
127127}
128128
129129// GetRedactorsFromURIs parses redactors from a URIs Redactor objects
130- // Deprecated: use loader.LoadSpecs instead
130+ // We will deprecate this in favour of use loader.LoadSpecs once the new API is stable
131131func GetRedactorsFromURIs (redactorURIs []string ) ([]* troubleshootv1beta2.Redact , error ) {
132132 redactors := []* troubleshootv1beta2.Redact {}
133133 for _ , redactor := range redactorURIs {
@@ -263,7 +263,7 @@ func loadSpecFromURL(arg string) ([]byte, error) {
263263}
264264
265265// ParseRedactorsFromDocs parses a slice of YAML docs and returns a slice of Redactors
266- // Deprecated: use loader.LoadSpecs instead
266+ // We will deprecate this in favour of use loader.LoadSpecs once the new API is stable
267267func ParseRedactorsFromDocs (docs []string ) ([]* troubleshootv1beta2.Redact , error ) {
268268 var redactors []* troubleshootv1beta2.Redact
269269
0 commit comments