(data string)
| 432 | }) |
| 433 | |
| 434 | func pemDecodeKubeConfigCertData(data string) *pem.Block { |
| 435 | decodedData, err := base64.StdEncoding.DecodeString(data) |
| 436 | Expect(err).NotTo(HaveOccurred()) |
| 437 | pemDecodedBlock, rest := pem.Decode(decodedData) |
| 438 | Expect(rest).To(BeEmpty()) |
| 439 | return pemDecodedBlock |
| 440 | } |
| 441 | |
| 442 | func base64Decode(encoded string) string { |
| 443 | decoded, err := base64.StdEncoding.DecodeString(encoded) |
no outgoing calls
no test coverage detected