MCPcopy Create free account
hub / github.com/awslabs/amazon-eks-ami / EncodeInternalNodeConfig

Function EncodeInternalNodeConfig

nodeadm/internal/api/bridge/encode.go:30–32  ·  view source on GitHub ↗

EncodeInternalNodeConfig marshals the given internal NodeConfig object to JSON using the internal group version. JSON is used because it's simply easier than YAML to work with in scripting contexts.

(nodeConfig *internalapi.NodeConfig)

Source from the content-addressed store, hash-verified

28// EncodeInternalNodeConfig marshals the given internal NodeConfig object to JSON using the internal group version.
29// JSON is used because it's simply easier than YAML to work with in scripting contexts.
30func EncodeInternalNodeConfig(nodeConfig *internalapi.NodeConfig) ([]byte, error) {
31 return EncodeNodeConfig(nodeConfig, InternalGroupVersion)
32}

Callers

nothing calls this directly

Calls 1

EncodeNodeConfigFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…