Documentation
¶
Overview ¶
Package runmount provides utilities for working with RUN --mount options.
BuildKit's instructions.GetMounts() uses deferred evaluation - it returns default values until RunCommand.Expand() is called with an expander. This package provides helpers to eagerly parse mount options for static analysis.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatMount ¶
func FormatMount(m *instructions.Mount) string
FormatMount formats a mount for output in a RUN instruction.
func FormatMounts ¶
func FormatMounts(mounts []*instructions.Mount) string
FormatMounts formats multiple mounts for a RUN instruction.
func GetMounts ¶
func GetMounts(run *instructions.RunCommand) []*instructions.Mount
GetMounts returns parsed mount configurations from a RUN command. Unlike instructions.GetMounts(), this eagerly parses mount options by calling Expand() with an identity expander if needed.
This is safe for static analysis - any ARG/ENV variables in mount options will be preserved as literal strings.
func MountsEqual ¶
func MountsEqual(a, b []*instructions.Mount) bool
MountsEqual compares two mount slices for semantic equality. Order-independent comparison of mount configurations.
Types ¶
This section is empty.