Documentation ¶
Index ¶
- Constants
- func CommonBuildOptions(c *cobra.Command) (*buildah.CommonBuildOptions, error)
- func IDMappingOptions(c *cobra.Command) (usernsOptions buildah.NamespaceOptions, idmapOptions *buildah.IDMappingOptions, ...)
- func IsolationOption(c *cobra.Command) (buildah.Isolation, error)
- func NamespaceOptions(c *cobra.Command) (namespaceOptions buildah.NamespaceOptions, ...)
- func ParseVolumes(volumes []string) error
- func SystemContextFromOptions(c *cobra.Command) (*types.SystemContext, error)
Constants ¶
View Source
const ( // SeccompDefaultPath defines the default seccomp path SeccompDefaultPath = "/usr/share/containers/seccomp.json" // SeccompOverridePath if this exists it overrides the default seccomp path SeccompOverridePath = "/etc/crio/seccomp.json" )
Variables ¶
This section is empty.
Functions ¶
func CommonBuildOptions ¶
func CommonBuildOptions(c *cobra.Command) (*buildah.CommonBuildOptions, error)
CommonBuildOptions parses the build options from the bud cli
func IDMappingOptions ¶
func IDMappingOptions(c *cobra.Command) (usernsOptions buildah.NamespaceOptions, idmapOptions *buildah.IDMappingOptions, err error)
IDMappingOptions parses the build options related to user namespaces and ID mapping.
func IsolationOption ¶
IsolationOption parses the --isolation flag.
func NamespaceOptions ¶
func NamespaceOptions(c *cobra.Command) (namespaceOptions buildah.NamespaceOptions, networkPolicy buildah.NetworkConfigurationPolicy, err error)
NamespaceOptions parses the build options for all namespaces except for user namespace.
func ParseVolumes ¶
ParseVolumes validates the host and container paths passed in to the --volume flag
func SystemContextFromOptions ¶
func SystemContextFromOptions(c *cobra.Command) (*types.SystemContext, error)
SystemContextFromOptions returns a SystemContext populated with values per the input parameters provided by the caller for the use in authentication.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.