Documentation ¶
Index ¶
- Constants
- func CommonBuildOptions(c *cobra.Command) (*buildah.CommonBuildOptions, error)
- func GetBindMount(args []string) (specs.Mount, error)
- func GetTmpfsMount(args []string) (specs.Mount, error)
- func GetVolumes(volumes []string, mounts []string) ([]specs.Mount, error)
- func IDMappingOptions(c *cobra.Command, isolation buildah.Isolation) (usernsOptions buildah.NamespaceOptions, idmapOptions *buildah.IDMappingOptions, ...)
- func IsolationOption(c *cobra.Command) (buildah.Isolation, error)
- func NamespaceOptions(c *cobra.Command) (namespaceOptions buildah.NamespaceOptions, ...)
- func ParseVolume(volume string) (specs.Mount, error)
- func ParseVolumes(volumes []string) error
- func RegistryFromFullName(input string) string
- func ScrubServer(server string) string
- func SystemContextFromOptions(c *cobra.Command) (*types.SystemContext, error)
- func ValidateVolumeCtrDir(ctrDir string) error
- func ValidateVolumeHostDir(hostDir string) error
- func ValidateVolumeOpts(options []string) ([]string, error)
Constants ¶
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" // TypeBind is the type for mounting host dir TypeBind = "bind" // TypeTmpfs is the type for mounting tmpfs TypeTmpfs = "tmpfs" )
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 GetBindMount ¶ added in v1.9.1
GetBindMount parses a single bind mount entry from the --mount flag.
func GetTmpfsMount ¶ added in v1.9.1
GetTmpfsMount parses a single tmpfs mount entry from the --mount flag
func GetVolumes ¶ added in v1.9.1
GetVolumes gets the volumes from --volume and --mount
func IDMappingOptions ¶
func IDMappingOptions(c *cobra.Command, isolation buildah.Isolation) (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 ParseVolume ¶ added in v1.8.1
ParseVolume parses the input of --volume
func ParseVolumes ¶
ParseVolumes validates the host and container paths passed in to the --volume flag
func RegistryFromFullName ¶ added in v1.8.2
RegistryFromFullName gets the registry from the input. If the input is of the form quay.io/myuser/myimage, it will parse it and just return quay.io It also returns true if a full image name was given
func ScrubServer ¶ added in v1.8.2
ScrubServer removes 'http://' or 'https://' from the front of the server/registry string if either is there. This will be mostly used for user input from 'buildah login' and 'buildah logout'.
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.
func ValidateVolumeCtrDir ¶ added in v1.8.3
ValidateVolumeCtrDir validates a volume mount's destination directory.
func ValidateVolumeHostDir ¶ added in v1.8.3
ValidateVolumeHostDir validates a volume mount's source directory
func ValidateVolumeOpts ¶ added in v1.8.3
ValidateVolumeOpts validates a volume's options
Types ¶
This section is empty.