@@ -63,7 +63,7 @@ func (a *Annotator) GetOriginalConfiguration(obj runtime.Object) ([]byte, error)
6363 // Try to base64 decode, and fallback to non-base64 encoded content for backwards compatibility.
6464 if decoded , err := base64 .StdEncoding .DecodeString (original ); err == nil {
6565 if http .DetectContentType (decoded ) == "application/zip" {
66- return UnZipAnnotation (decoded )
66+ return unZipAnnotation (decoded )
6767 }
6868 }
6969
@@ -86,7 +86,7 @@ func (a *Annotator) SetOriginalConfiguration(obj runtime.Object, original []byte
8686 annots = map [string ]string {}
8787 }
8888
89- annots [a .key ], err = ZipAndBase64EncodeAnnotation (original )
89+ annots [a .key ], err = zipAndBase64EncodeAnnotation (original )
9090 if err != nil {
9191 return err
9292 }
@@ -130,7 +130,7 @@ func (a *Annotator) GetModifiedConfiguration(obj runtime.Object, annotate bool)
130130 }
131131
132132 if annotate {
133- annots [a .key ], err = ZipAndBase64EncodeAnnotation (modified )
133+ annots [a .key ], err = zipAndBase64EncodeAnnotation (modified )
134134 if err != nil {
135135 return nil , err
136136 }
@@ -168,7 +168,7 @@ func (a *Annotator) SetLastAppliedAnnotation(obj runtime.Object) error {
168168 return a .SetOriginalConfiguration (obj , modifiedWithoutNulls )
169169}
170170
171- func ZipAndBase64EncodeAnnotation (original []byte ) (string , error ) {
171+ func zipAndBase64EncodeAnnotation (original []byte ) (string , error ) {
172172 // Create a buffer to write our archive to.
173173 buf := new (bytes.Buffer )
174174
@@ -193,7 +193,7 @@ func ZipAndBase64EncodeAnnotation(original []byte) (string, error) {
193193 return base64 .StdEncoding .EncodeToString (buf .Bytes ()), nil
194194}
195195
196- func UnZipAnnotation (original []byte ) ([]byte , error ) {
196+ func unZipAnnotation (original []byte ) ([]byte , error ) {
197197 annotation , err := ioutil .ReadAll (bytes .NewReader (original ))
198198 if err != nil {
199199 return nil , err
0 commit comments