MCPcopy Create free account
hub / github.com/cozystack/talm / SerializeConfiguration

Function SerializeConfiguration

pkg/engine/engine.go:241–248  ·  view source on GitHub ↗

SerializeConfiguration serializes the configuration bundle for machineType.

(configBundle *bundle.Bundle, machineType machine.Type)

Source from the content-addressed store, hash-verified

239
240// SerializeConfiguration serializes the configuration bundle for machineType.
241func SerializeConfiguration(configBundle *bundle.Bundle, machineType machine.Type) ([]byte, error) {
242 out, err := configBundle.Serialize(encoder.CommentsDisabled, machineType)
243 if err != nil {
244 return nil, errors.Wrap(err, "serializing config bundle")
245 }
246
247 return out, nil
248}
249
250// MergeFileAsPatch overlays the YAML body of patchFile onto rendered using
251// Talos's strategic-merge config patcher.

Calls

no outgoing calls