Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseMapping ¶
ParseMapping takes a mapping string of the form "host:container[:size]" and returns the corresponding rspec.IDMapping. An error is returned if not enough fields are provided or are otherwise invalid. The default size is 1.
func ToContainer ¶
ToContainer takes an unmapped host ID and translates it to a remapped container ID using the provided ID mapping. If no mapping is provided, then the mapping is a no-op. If there is no mapping for the given ID an error is returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.