Documentation
¶
Overview ¶
Package composefile reads and edits Compose documents as text. Pinning an image rewrites exactly the bytes of one image scalar and nothing else, so comments, anchors, key order, and formatting survive an apply untouched — the file an operator reviews after a Transaction is the file they wrote, one digest longer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReplaceServiceImage ¶
ReplaceServiceImage rewrites one service's image scalar, requiring it to still read as expected, and returns the new document text. The replacement is written as a double-quoted scalar.
func ServiceImage ¶
ServiceImage returns one service's image reference exactly as written. A service whose image is absent, non-scalar, or reached through an alias has no literal reference and is an error: Ripen only ever pins images it can read back verbatim.
Types ¶
This section is empty.