- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for base64decode (0.29 sec)
-
staging/src/k8s.io/cli-runtime/pkg/printers/template.go
template *template.Template } func NewGoTemplatePrinter(tmpl []byte) (*GoTemplatePrinter, error) { t, err := template.New("output"). Funcs(template.FuncMap{ "exists": exists, "base64decode": base64decode, }). Parse(string(tmpl)) if err != nil { return nil, err } return &GoTemplatePrinter{ rawTemplate: string(tmpl), template: t, }, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 23:00:24 UTC 2019 - 3.4K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/printers/template_test.go
{ name: "support base64 decoding of secret data", template: "{{ .data.username | base64decode }}", obj: &v1.Secret{ Data: map[string][]byte{ "username": []byte("hunter"), }, }, expectOut: "hunter", }, { name: "test error path for base64 decoding", template: "{{ .data.username | base64decode }}", obj: &badlyMarshaledSecret{}, expectErr: func(err error) (string, bool) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 22 23:10:00 UTC 2019 - 7.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/httpstream/wsstream/stream.go
if timeout > 0 { ws.SetDeadline(time.Now().Add(timeout)) } } func messageCopy(ws *websocket.Conn, r io.Reader, base64Encode, ping bool, timeout time.Duration) error { buf := make([]byte, 2048) if ping { resetTimeout(ws, timeout) if base64Encode { if err := websocket.Message.Send(ws, ""); err != nil { return err } } else {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 07 18:21:43 UTC 2023 - 5.2K bytes - Viewed (0)