MCPcopy
hub / github.com/loft-sh/devpod / EncodeOptions

Function EncodeOptions

pkg/client/clientimplementation/proxy_client.go:372–377  ·  view source on GitHub ↗
(options any, name string)

Source from the content-addressed store, hash-verified

370}
371
372func EncodeOptions(options any, name string) map[string]string {
373 raw, _ := json.Marshal(options)
374 return map[string]string{
375 name: string(raw),
376 }
377}
378
379func DecodeOptionsFromEnv(name string, into any) (bool, error) {
380 raw := os.Getenv(name)

Callers 4

UpMethod · 0.85
SshMethod · 0.85
DeleteMethod · 0.85
StatusMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected